1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/devtools/containeranalysis/v1/containeranalysis.proto 3 4package containeranalysis 5 6import ( 7 context "context" 8 fmt "fmt" 9 math "math" 10 11 proto "github.com/golang/protobuf/proto" 12 _ "github.com/golang/protobuf/ptypes/timestamp" 13 _ "google.golang.org/genproto/googleapis/api/annotations" 14 v1 "google.golang.org/genproto/googleapis/iam/v1" 15 grpc "google.golang.org/grpc" 16 codes "google.golang.org/grpc/codes" 17 status "google.golang.org/grpc/status" 18) 19 20// Reference imports to suppress errors if they are not otherwise used. 21var _ = proto.Marshal 22var _ = fmt.Errorf 23var _ = math.Inf 24 25// This is a compile-time assertion to ensure that this generated file 26// is compatible with the proto package it is being compiled against. 27// A compilation error at this line likely means your copy of the 28// proto package needs to be updated. 29const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 30 31func init() { 32 proto.RegisterFile("google/devtools/containeranalysis/v1/containeranalysis.proto", fileDescriptor_e74edb4ed33b4f81) 33} 34 35var fileDescriptor_e74edb4ed33b4f81 = []byte{ 36 // 428 bytes of a gzipped FileDescriptorProto 37 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x93, 0xc1, 0x8a, 0xd5, 0x30, 38 0x14, 0x86, 0x69, 0x45, 0x17, 0xc5, 0x8d, 0x05, 0x37, 0x45, 0x1c, 0x28, 0xb3, 0xd0, 0x2e, 0x12, 39 0xaa, 0x6e, 0x8c, 0x8a, 0x8c, 0x57, 0x28, 0xee, 0x06, 0x1d, 0x67, 0x31, 0x1b, 0xc9, 0x64, 0x8e, 40 0x25, 0xd2, 0xe4, 0xd4, 0x24, 0x2d, 0x8c, 0x22, 0x88, 0x0b, 0x5f, 0xc0, 0x37, 0x70, 0xe9, 0x4b, 41 0xf8, 0x10, 0xfa, 0x08, 0xae, 0xc4, 0x87, 0x90, 0xa6, 0xa9, 0xdc, 0x7b, 0x7b, 0xbd, 0x5c, 0x04, 42 0x97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0xef, 0xfc, 0x75, 0x09, 0x85, 0xe8, 0x8c, 0x01, 0x2d, 0x36, 0xae, 0x7a, 0x82, 54 0x6a, 0x1b, 0x41, 0xf5, 0x5f, 0x08, 0xea, 0x7f, 0x27, 0x58, 0x5b, 0x4d, 0x7f, 0x45, 0x49, 0x7a, 55 0x04, 0xd6, 0x0f, 0xc1, 0x28, 0x69, 0xed, 0xf0, 0x26, 0xd2, 0x1b, 0x6b, 0x1d, 0xe7, 0x96, 0x89, 56 0xe6, 0xe6, 0x0e, 0x4e, 0xdb, 0xa2, 0xb6, 0x90, 0xbf, 0x8f, 0x3c, 0xe2, 0x9b, 0x2d, 0x6d, 0xff, 57 0x20, 0xba, 0x59, 0xcc, 0x00, 0xfa, 0x30, 0x67, 0xbb, 0x82, 0x6e, 0x0c, 0x78, 0xf4, 0x3d, 0x4a, 58 0xf6, 0x04, 0xaa, 0xa9, 0xf3, 0xa6, 0x3b, 0x39, 0x8c, 0x4e, 0x9e, 0x07, 0xb9, 0xc6, 0x86, 0xeb, 59 0x9a, 0xa0, 0xa9, 0x69, 0x0d, 0xda, 0x3f, 0x65, 0x3a, 0x4a, 0xbc, 0x95, 0x76, 0xfb, 0xb1, 0xde, 60 0x9b, 0x0d, 0x3f, 0xc7, 0x17, 0xaa, 0xc5, 0xc1, 0x97, 0xb8, 0xa8, 0xc6, 0xf4, 0x45, 0x83, 0xdd, 61 0x19, 0x79, 0x0c, 0xfd, 0x91, 0xbf, 0xd9, 0xd9, 0x7d, 0x90, 0xe3, 0xf2, 0x67, 0xbc, 0x3f, 0x9a, 62 0x19, 0xf3, 0x6e, 0xc6, 0x66, 0x2e, 0xc6, 0x8e, 0xcb, 0xd3, 0x4b, 0xbe, 0xdb, 0xed, 0xdf, 0x01, 63 0x00, 0x00, 0xff, 0xff, 0xb6, 0xa4, 0x2b, 0x8c, 0x47, 0x04, 0x00, 0x00, 64} 65 66// Reference imports to suppress errors if they are not otherwise used. 67var _ context.Context 68var _ grpc.ClientConnInterface 69 70// This is a compile-time assertion to ensure that this generated file 71// is compatible with the grpc package it is being compiled against. 72const _ = grpc.SupportPackageIsVersion4 73 74// ContainerAnalysisClient is the client API for ContainerAnalysis service. 75// 76// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 77type ContainerAnalysisClient interface { 78 // Sets the access control policy on the specified note or occurrence. 79 // Requires `containeranalysis.notes.setIamPolicy` or 80 // `containeranalysis.occurrences.setIamPolicy` permission if the resource is 81 // a note or an occurrence, respectively. 82 // 83 // The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for 84 // notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for 85 // occurrences. 86 SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) 87 // Gets the access control policy for a note or an occurrence resource. 88 // Requires `containeranalysis.notes.setIamPolicy` or 89 // `containeranalysis.occurrences.setIamPolicy` permission if the resource is 90 // a note or occurrence, respectively. 91 // 92 // The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for 93 // notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for 94 // occurrences. 95 GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) 96 // Returns the permissions that a caller has on the specified note or 97 // occurrence. Requires list permission on the project (for example, 98 // `containeranalysis.notes.list`). 99 // 100 // The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for 101 // notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for 102 // occurrences. 103 TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error) 104} 105 106type containerAnalysisClient struct { 107 cc grpc.ClientConnInterface 108} 109 110func NewContainerAnalysisClient(cc grpc.ClientConnInterface) ContainerAnalysisClient { 111 return &containerAnalysisClient{cc} 112} 113 114func (c *containerAnalysisClient) SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) { 115 out := new(v1.Policy) 116 err := c.cc.Invoke(ctx, "/google.devtools.containeranalysis.v1.ContainerAnalysis/SetIamPolicy", in, out, opts...) 117 if err != nil { 118 return nil, err 119 } 120 return out, nil 121} 122 123func (c *containerAnalysisClient) GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) { 124 out := new(v1.Policy) 125 err := c.cc.Invoke(ctx, "/google.devtools.containeranalysis.v1.ContainerAnalysis/GetIamPolicy", in, out, opts...) 126 if err != nil { 127 return nil, err 128 } 129 return out, nil 130} 131 132func (c *containerAnalysisClient) TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error) { 133 out := new(v1.TestIamPermissionsResponse) 134 err := c.cc.Invoke(ctx, "/google.devtools.containeranalysis.v1.ContainerAnalysis/TestIamPermissions", in, out, opts...) 135 if err != nil { 136 return nil, err 137 } 138 return out, nil 139} 140 141// ContainerAnalysisServer is the server API for ContainerAnalysis service. 142type ContainerAnalysisServer interface { 143 // Sets the access control policy on the specified note or occurrence. 144 // Requires `containeranalysis.notes.setIamPolicy` or 145 // `containeranalysis.occurrences.setIamPolicy` permission if the resource is 146 // a note or an occurrence, respectively. 147 // 148 // The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for 149 // notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for 150 // occurrences. 151 SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error) 152 // Gets the access control policy for a note or an occurrence resource. 153 // Requires `containeranalysis.notes.setIamPolicy` or 154 // `containeranalysis.occurrences.setIamPolicy` permission if the resource is 155 // a note or occurrence, respectively. 156 // 157 // The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for 158 // notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for 159 // occurrences. 160 GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error) 161 // Returns the permissions that a caller has on the specified note or 162 // occurrence. Requires list permission on the project (for example, 163 // `containeranalysis.notes.list`). 164 // 165 // The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for 166 // notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for 167 // occurrences. 168 TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error) 169} 170 171// UnimplementedContainerAnalysisServer can be embedded to have forward compatible implementations. 172type UnimplementedContainerAnalysisServer struct { 173} 174 175func (*UnimplementedContainerAnalysisServer) SetIamPolicy(ctx context.Context, req *v1.SetIamPolicyRequest) (*v1.Policy, error) { 176 return nil, status.Errorf(codes.Unimplemented, "method SetIamPolicy not implemented") 177} 178func (*UnimplementedContainerAnalysisServer) GetIamPolicy(ctx context.Context, req *v1.GetIamPolicyRequest) (*v1.Policy, error) { 179 return nil, status.Errorf(codes.Unimplemented, "method GetIamPolicy not implemented") 180} 181func (*UnimplementedContainerAnalysisServer) TestIamPermissions(ctx context.Context, req *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error) { 182 return nil, status.Errorf(codes.Unimplemented, "method TestIamPermissions not implemented") 183} 184 185func RegisterContainerAnalysisServer(s *grpc.Server, srv ContainerAnalysisServer) { 186 s.RegisterService(&_ContainerAnalysis_serviceDesc, srv) 187} 188 189func _ContainerAnalysis_SetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 190 in := new(v1.SetIamPolicyRequest) 191 if err := dec(in); err != nil { 192 return nil, err 193 } 194 if interceptor == nil { 195 return srv.(ContainerAnalysisServer).SetIamPolicy(ctx, in) 196 } 197 info := &grpc.UnaryServerInfo{ 198 Server: srv, 199 FullMethod: "/google.devtools.containeranalysis.v1.ContainerAnalysis/SetIamPolicy", 200 } 201 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 202 return srv.(ContainerAnalysisServer).SetIamPolicy(ctx, req.(*v1.SetIamPolicyRequest)) 203 } 204 return interceptor(ctx, in, info, handler) 205} 206 207func _ContainerAnalysis_GetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 208 in := new(v1.GetIamPolicyRequest) 209 if err := dec(in); err != nil { 210 return nil, err 211 } 212 if interceptor == nil { 213 return srv.(ContainerAnalysisServer).GetIamPolicy(ctx, in) 214 } 215 info := &grpc.UnaryServerInfo{ 216 Server: srv, 217 FullMethod: "/google.devtools.containeranalysis.v1.ContainerAnalysis/GetIamPolicy", 218 } 219 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 220 return srv.(ContainerAnalysisServer).GetIamPolicy(ctx, req.(*v1.GetIamPolicyRequest)) 221 } 222 return interceptor(ctx, in, info, handler) 223} 224 225func _ContainerAnalysis_TestIamPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 226 in := new(v1.TestIamPermissionsRequest) 227 if err := dec(in); err != nil { 228 return nil, err 229 } 230 if interceptor == nil { 231 return srv.(ContainerAnalysisServer).TestIamPermissions(ctx, in) 232 } 233 info := &grpc.UnaryServerInfo{ 234 Server: srv, 235 FullMethod: "/google.devtools.containeranalysis.v1.ContainerAnalysis/TestIamPermissions", 236 } 237 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 238 return srv.(ContainerAnalysisServer).TestIamPermissions(ctx, req.(*v1.TestIamPermissionsRequest)) 239 } 240 return interceptor(ctx, in, info, handler) 241} 242 243var _ContainerAnalysis_serviceDesc = grpc.ServiceDesc{ 244 ServiceName: "google.devtools.containeranalysis.v1.ContainerAnalysis", 245 HandlerType: (*ContainerAnalysisServer)(nil), 246 Methods: []grpc.MethodDesc{ 247 { 248 MethodName: "SetIamPolicy", 249 Handler: _ContainerAnalysis_SetIamPolicy_Handler, 250 }, 251 { 252 MethodName: "GetIamPolicy", 253 Handler: _ContainerAnalysis_GetIamPolicy_Handler, 254 }, 255 { 256 MethodName: "TestIamPermissions", 257 Handler: _ContainerAnalysis_TestIamPermissions_Handler, 258 }, 259 }, 260 Streams: []grpc.StreamDesc{}, 261 Metadata: "google/devtools/containeranalysis/v1/containeranalysis.proto", 262} 263