1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/devtools/containeranalysis/v1beta1/containeranalysis.proto 3 4package containeranalysis // import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1" 5 6import proto "github.com/golang/protobuf/proto" 7import fmt "fmt" 8import math "math" 9import timestamp "github.com/golang/protobuf/ptypes/timestamp" 10import _ "google.golang.org/genproto/googleapis/api/annotations" 11import v1 "google.golang.org/genproto/googleapis/iam/v1" 12 13import ( 14 context "golang.org/x/net/context" 15 grpc "google.golang.org/grpc" 16) 17 18// Reference imports to suppress errors if they are not otherwise used. 19var _ = proto.Marshal 20var _ = fmt.Errorf 21var _ = math.Inf 22 23// This is a compile-time assertion to ensure that this generated file 24// is compatible with the proto package it is being compiled against. 25// A compilation error at this line likely means your copy of the 26// proto package needs to be updated. 27const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 28 29// A scan configuration specifies whether Cloud components in a project have a 30// particular type of analysis being run. For example, it can configure whether 31// vulnerability scanning is being done on Docker images or not. 32type ScanConfig struct { 33 // Output only. The name of the scan configuration in the form of 34 // `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. 35 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 36 // Output only. A human-readable description of what the scan configuration 37 // does. 38 Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` 39 // Whether the scan is enabled. 40 Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"` 41 // Output only. The time this scan config was created. 42 CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` 43 // Output only. The time this scan config was last updated. 44 UpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` 45 XXX_NoUnkeyedLiteral struct{} `json:"-"` 46 XXX_unrecognized []byte `json:"-"` 47 XXX_sizecache int32 `json:"-"` 48} 49 50func (m *ScanConfig) Reset() { *m = ScanConfig{} } 51func (m *ScanConfig) String() string { return proto.CompactTextString(m) } 52func (*ScanConfig) ProtoMessage() {} 53func (*ScanConfig) Descriptor() ([]byte, []int) { 54 return fileDescriptor_containeranalysis_a170acd3c74dfdfb, []int{0} 55} 56func (m *ScanConfig) XXX_Unmarshal(b []byte) error { 57 return xxx_messageInfo_ScanConfig.Unmarshal(m, b) 58} 59func (m *ScanConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 60 return xxx_messageInfo_ScanConfig.Marshal(b, m, deterministic) 61} 62func (dst *ScanConfig) XXX_Merge(src proto.Message) { 63 xxx_messageInfo_ScanConfig.Merge(dst, src) 64} 65func (m *ScanConfig) XXX_Size() int { 66 return xxx_messageInfo_ScanConfig.Size(m) 67} 68func (m *ScanConfig) XXX_DiscardUnknown() { 69 xxx_messageInfo_ScanConfig.DiscardUnknown(m) 70} 71 72var xxx_messageInfo_ScanConfig proto.InternalMessageInfo 73 74func (m *ScanConfig) GetName() string { 75 if m != nil { 76 return m.Name 77 } 78 return "" 79} 80 81func (m *ScanConfig) GetDescription() string { 82 if m != nil { 83 return m.Description 84 } 85 return "" 86} 87 88func (m *ScanConfig) GetEnabled() bool { 89 if m != nil { 90 return m.Enabled 91 } 92 return false 93} 94 95func (m *ScanConfig) GetCreateTime() *timestamp.Timestamp { 96 if m != nil { 97 return m.CreateTime 98 } 99 return nil 100} 101 102func (m *ScanConfig) GetUpdateTime() *timestamp.Timestamp { 103 if m != nil { 104 return m.UpdateTime 105 } 106 return nil 107} 108 109// Request to get a scan configuration. 110type GetScanConfigRequest struct { 111 // The name of the scan configuration in the form of 112 // `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. 113 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 114 XXX_NoUnkeyedLiteral struct{} `json:"-"` 115 XXX_unrecognized []byte `json:"-"` 116 XXX_sizecache int32 `json:"-"` 117} 118 119func (m *GetScanConfigRequest) Reset() { *m = GetScanConfigRequest{} } 120func (m *GetScanConfigRequest) String() string { return proto.CompactTextString(m) } 121func (*GetScanConfigRequest) ProtoMessage() {} 122func (*GetScanConfigRequest) Descriptor() ([]byte, []int) { 123 return fileDescriptor_containeranalysis_a170acd3c74dfdfb, []int{1} 124} 125func (m *GetScanConfigRequest) XXX_Unmarshal(b []byte) error { 126 return xxx_messageInfo_GetScanConfigRequest.Unmarshal(m, b) 127} 128func (m *GetScanConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 129 return xxx_messageInfo_GetScanConfigRequest.Marshal(b, m, deterministic) 130} 131func (dst *GetScanConfigRequest) XXX_Merge(src proto.Message) { 132 xxx_messageInfo_GetScanConfigRequest.Merge(dst, src) 133} 134func (m *GetScanConfigRequest) XXX_Size() int { 135 return xxx_messageInfo_GetScanConfigRequest.Size(m) 136} 137func (m *GetScanConfigRequest) XXX_DiscardUnknown() { 138 xxx_messageInfo_GetScanConfigRequest.DiscardUnknown(m) 139} 140 141var xxx_messageInfo_GetScanConfigRequest proto.InternalMessageInfo 142 143func (m *GetScanConfigRequest) GetName() string { 144 if m != nil { 145 return m.Name 146 } 147 return "" 148} 149 150// Request to list scan configurations. 151type ListScanConfigsRequest struct { 152 // The name of the project to list scan configurations for in the form of 153 // `projects/[PROJECT_ID]`. 154 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 155 // The filter expression. 156 Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` 157 // The number of scan configs to return in the list. 158 PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 159 // Token to provide to skip to a particular spot in the list. 160 PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 161 XXX_NoUnkeyedLiteral struct{} `json:"-"` 162 XXX_unrecognized []byte `json:"-"` 163 XXX_sizecache int32 `json:"-"` 164} 165 166func (m *ListScanConfigsRequest) Reset() { *m = ListScanConfigsRequest{} } 167func (m *ListScanConfigsRequest) String() string { return proto.CompactTextString(m) } 168func (*ListScanConfigsRequest) ProtoMessage() {} 169func (*ListScanConfigsRequest) Descriptor() ([]byte, []int) { 170 return fileDescriptor_containeranalysis_a170acd3c74dfdfb, []int{2} 171} 172func (m *ListScanConfigsRequest) XXX_Unmarshal(b []byte) error { 173 return xxx_messageInfo_ListScanConfigsRequest.Unmarshal(m, b) 174} 175func (m *ListScanConfigsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 176 return xxx_messageInfo_ListScanConfigsRequest.Marshal(b, m, deterministic) 177} 178func (dst *ListScanConfigsRequest) XXX_Merge(src proto.Message) { 179 xxx_messageInfo_ListScanConfigsRequest.Merge(dst, src) 180} 181func (m *ListScanConfigsRequest) XXX_Size() int { 182 return xxx_messageInfo_ListScanConfigsRequest.Size(m) 183} 184func (m *ListScanConfigsRequest) XXX_DiscardUnknown() { 185 xxx_messageInfo_ListScanConfigsRequest.DiscardUnknown(m) 186} 187 188var xxx_messageInfo_ListScanConfigsRequest proto.InternalMessageInfo 189 190func (m *ListScanConfigsRequest) GetParent() string { 191 if m != nil { 192 return m.Parent 193 } 194 return "" 195} 196 197func (m *ListScanConfigsRequest) GetFilter() string { 198 if m != nil { 199 return m.Filter 200 } 201 return "" 202} 203 204func (m *ListScanConfigsRequest) GetPageSize() int32 { 205 if m != nil { 206 return m.PageSize 207 } 208 return 0 209} 210 211func (m *ListScanConfigsRequest) GetPageToken() string { 212 if m != nil { 213 return m.PageToken 214 } 215 return "" 216} 217 218// Response for listing scan configurations. 219type ListScanConfigsResponse struct { 220 // The scan configurations requested. 221 ScanConfigs []*ScanConfig `protobuf:"bytes,1,rep,name=scan_configs,json=scanConfigs,proto3" json:"scan_configs,omitempty"` 222 // The next pagination token in the list response. It should be used as 223 // `page_token` for the following request. An empty value means no more 224 // results. 225 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 226 XXX_NoUnkeyedLiteral struct{} `json:"-"` 227 XXX_unrecognized []byte `json:"-"` 228 XXX_sizecache int32 `json:"-"` 229} 230 231func (m *ListScanConfigsResponse) Reset() { *m = ListScanConfigsResponse{} } 232func (m *ListScanConfigsResponse) String() string { return proto.CompactTextString(m) } 233func (*ListScanConfigsResponse) ProtoMessage() {} 234func (*ListScanConfigsResponse) Descriptor() ([]byte, []int) { 235 return fileDescriptor_containeranalysis_a170acd3c74dfdfb, []int{3} 236} 237func (m *ListScanConfigsResponse) XXX_Unmarshal(b []byte) error { 238 return xxx_messageInfo_ListScanConfigsResponse.Unmarshal(m, b) 239} 240func (m *ListScanConfigsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 241 return xxx_messageInfo_ListScanConfigsResponse.Marshal(b, m, deterministic) 242} 243func (dst *ListScanConfigsResponse) XXX_Merge(src proto.Message) { 244 xxx_messageInfo_ListScanConfigsResponse.Merge(dst, src) 245} 246func (m *ListScanConfigsResponse) XXX_Size() int { 247 return xxx_messageInfo_ListScanConfigsResponse.Size(m) 248} 249func (m *ListScanConfigsResponse) XXX_DiscardUnknown() { 250 xxx_messageInfo_ListScanConfigsResponse.DiscardUnknown(m) 251} 252 253var xxx_messageInfo_ListScanConfigsResponse proto.InternalMessageInfo 254 255func (m *ListScanConfigsResponse) GetScanConfigs() []*ScanConfig { 256 if m != nil { 257 return m.ScanConfigs 258 } 259 return nil 260} 261 262func (m *ListScanConfigsResponse) GetNextPageToken() string { 263 if m != nil { 264 return m.NextPageToken 265 } 266 return "" 267} 268 269// A request to update a scan configuration. 270type UpdateScanConfigRequest struct { 271 // The name of the scan configuration in the form of 272 // `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. 273 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 274 // The updated scan configuration. 275 ScanConfig *ScanConfig `protobuf:"bytes,2,opt,name=scan_config,json=scanConfig,proto3" json:"scan_config,omitempty"` 276 XXX_NoUnkeyedLiteral struct{} `json:"-"` 277 XXX_unrecognized []byte `json:"-"` 278 XXX_sizecache int32 `json:"-"` 279} 280 281func (m *UpdateScanConfigRequest) Reset() { *m = UpdateScanConfigRequest{} } 282func (m *UpdateScanConfigRequest) String() string { return proto.CompactTextString(m) } 283func (*UpdateScanConfigRequest) ProtoMessage() {} 284func (*UpdateScanConfigRequest) Descriptor() ([]byte, []int) { 285 return fileDescriptor_containeranalysis_a170acd3c74dfdfb, []int{4} 286} 287func (m *UpdateScanConfigRequest) XXX_Unmarshal(b []byte) error { 288 return xxx_messageInfo_UpdateScanConfigRequest.Unmarshal(m, b) 289} 290func (m *UpdateScanConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 291 return xxx_messageInfo_UpdateScanConfigRequest.Marshal(b, m, deterministic) 292} 293func (dst *UpdateScanConfigRequest) XXX_Merge(src proto.Message) { 294 xxx_messageInfo_UpdateScanConfigRequest.Merge(dst, src) 295} 296func (m *UpdateScanConfigRequest) XXX_Size() int { 297 return xxx_messageInfo_UpdateScanConfigRequest.Size(m) 298} 299func (m *UpdateScanConfigRequest) XXX_DiscardUnknown() { 300 xxx_messageInfo_UpdateScanConfigRequest.DiscardUnknown(m) 301} 302 303var xxx_messageInfo_UpdateScanConfigRequest proto.InternalMessageInfo 304 305func (m *UpdateScanConfigRequest) GetName() string { 306 if m != nil { 307 return m.Name 308 } 309 return "" 310} 311 312func (m *UpdateScanConfigRequest) GetScanConfig() *ScanConfig { 313 if m != nil { 314 return m.ScanConfig 315 } 316 return nil 317} 318 319func init() { 320 proto.RegisterType((*ScanConfig)(nil), "google.devtools.containeranalysis.v1beta1.ScanConfig") 321 proto.RegisterType((*GetScanConfigRequest)(nil), "google.devtools.containeranalysis.v1beta1.GetScanConfigRequest") 322 proto.RegisterType((*ListScanConfigsRequest)(nil), "google.devtools.containeranalysis.v1beta1.ListScanConfigsRequest") 323 proto.RegisterType((*ListScanConfigsResponse)(nil), "google.devtools.containeranalysis.v1beta1.ListScanConfigsResponse") 324 proto.RegisterType((*UpdateScanConfigRequest)(nil), "google.devtools.containeranalysis.v1beta1.UpdateScanConfigRequest") 325} 326 327// Reference imports to suppress errors if they are not otherwise used. 328var _ context.Context 329var _ grpc.ClientConn 330 331// This is a compile-time assertion to ensure that this generated file 332// is compatible with the grpc package it is being compiled against. 333const _ = grpc.SupportPackageIsVersion4 334 335// ContainerAnalysisV1Beta1Client is the client API for ContainerAnalysisV1Beta1 service. 336// 337// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 338type ContainerAnalysisV1Beta1Client interface { 339 // Sets the access control policy on the specified note or occurrence. 340 // Requires `containeranalysis.notes.setIamPolicy` or 341 // `containeranalysis.occurrences.setIamPolicy` permission if the resource is 342 // a note or an occurrence, respectively. 343 // 344 // The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for 345 // notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for 346 // occurrences. 347 SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) 348 // Gets the access control policy for a note or an occurrence resource. 349 // Requires `containeranalysis.notes.setIamPolicy` or 350 // `containeranalysis.occurrences.setIamPolicy` permission if the resource is 351 // a note or occurrence, respectively. 352 // 353 // The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for 354 // notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for 355 // occurrences. 356 GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) 357 // Returns the permissions that a caller has on the specified note or 358 // occurrence. Requires list permission on the project (for example, 359 // `containeranalysis.notes.list`). 360 // 361 // The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for 362 // notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for 363 // occurrences. 364 TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error) 365 // Gets the specified scan configuration. 366 GetScanConfig(ctx context.Context, in *GetScanConfigRequest, opts ...grpc.CallOption) (*ScanConfig, error) 367 // Lists scan configurations for the specified project. 368 ListScanConfigs(ctx context.Context, in *ListScanConfigsRequest, opts ...grpc.CallOption) (*ListScanConfigsResponse, error) 369 // Updates the specified scan configuration. 370 UpdateScanConfig(ctx context.Context, in *UpdateScanConfigRequest, opts ...grpc.CallOption) (*ScanConfig, error) 371} 372 373type containerAnalysisV1Beta1Client struct { 374 cc *grpc.ClientConn 375} 376 377func NewContainerAnalysisV1Beta1Client(cc *grpc.ClientConn) ContainerAnalysisV1Beta1Client { 378 return &containerAnalysisV1Beta1Client{cc} 379} 380 381func (c *containerAnalysisV1Beta1Client) SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) { 382 out := new(v1.Policy) 383 err := c.cc.Invoke(ctx, "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/SetIamPolicy", in, out, opts...) 384 if err != nil { 385 return nil, err 386 } 387 return out, nil 388} 389 390func (c *containerAnalysisV1Beta1Client) GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) { 391 out := new(v1.Policy) 392 err := c.cc.Invoke(ctx, "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/GetIamPolicy", in, out, opts...) 393 if err != nil { 394 return nil, err 395 } 396 return out, nil 397} 398 399func (c *containerAnalysisV1Beta1Client) TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error) { 400 out := new(v1.TestIamPermissionsResponse) 401 err := c.cc.Invoke(ctx, "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/TestIamPermissions", in, out, opts...) 402 if err != nil { 403 return nil, err 404 } 405 return out, nil 406} 407 408func (c *containerAnalysisV1Beta1Client) GetScanConfig(ctx context.Context, in *GetScanConfigRequest, opts ...grpc.CallOption) (*ScanConfig, error) { 409 out := new(ScanConfig) 410 err := c.cc.Invoke(ctx, "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/GetScanConfig", in, out, opts...) 411 if err != nil { 412 return nil, err 413 } 414 return out, nil 415} 416 417func (c *containerAnalysisV1Beta1Client) ListScanConfigs(ctx context.Context, in *ListScanConfigsRequest, opts ...grpc.CallOption) (*ListScanConfigsResponse, error) { 418 out := new(ListScanConfigsResponse) 419 err := c.cc.Invoke(ctx, "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/ListScanConfigs", in, out, opts...) 420 if err != nil { 421 return nil, err 422 } 423 return out, nil 424} 425 426func (c *containerAnalysisV1Beta1Client) UpdateScanConfig(ctx context.Context, in *UpdateScanConfigRequest, opts ...grpc.CallOption) (*ScanConfig, error) { 427 out := new(ScanConfig) 428 err := c.cc.Invoke(ctx, "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/UpdateScanConfig", in, out, opts...) 429 if err != nil { 430 return nil, err 431 } 432 return out, nil 433} 434 435// ContainerAnalysisV1Beta1Server is the server API for ContainerAnalysisV1Beta1 service. 436type ContainerAnalysisV1Beta1Server interface { 437 // Sets the access control policy on the specified note or occurrence. 438 // Requires `containeranalysis.notes.setIamPolicy` or 439 // `containeranalysis.occurrences.setIamPolicy` permission if the resource is 440 // a note or an occurrence, respectively. 441 // 442 // The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for 443 // notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for 444 // occurrences. 445 SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error) 446 // Gets the access control policy for a note or an occurrence resource. 447 // Requires `containeranalysis.notes.setIamPolicy` or 448 // `containeranalysis.occurrences.setIamPolicy` permission if the resource is 449 // a note or occurrence, respectively. 450 // 451 // The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for 452 // notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for 453 // occurrences. 454 GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error) 455 // Returns the permissions that a caller has on the specified note or 456 // occurrence. Requires list permission on the project (for example, 457 // `containeranalysis.notes.list`). 458 // 459 // The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for 460 // notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for 461 // occurrences. 462 TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error) 463 // Gets the specified scan configuration. 464 GetScanConfig(context.Context, *GetScanConfigRequest) (*ScanConfig, error) 465 // Lists scan configurations for the specified project. 466 ListScanConfigs(context.Context, *ListScanConfigsRequest) (*ListScanConfigsResponse, error) 467 // Updates the specified scan configuration. 468 UpdateScanConfig(context.Context, *UpdateScanConfigRequest) (*ScanConfig, error) 469} 470 471func RegisterContainerAnalysisV1Beta1Server(s *grpc.Server, srv ContainerAnalysisV1Beta1Server) { 472 s.RegisterService(&_ContainerAnalysisV1Beta1_serviceDesc, srv) 473} 474 475func _ContainerAnalysisV1Beta1_SetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 476 in := new(v1.SetIamPolicyRequest) 477 if err := dec(in); err != nil { 478 return nil, err 479 } 480 if interceptor == nil { 481 return srv.(ContainerAnalysisV1Beta1Server).SetIamPolicy(ctx, in) 482 } 483 info := &grpc.UnaryServerInfo{ 484 Server: srv, 485 FullMethod: "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/SetIamPolicy", 486 } 487 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 488 return srv.(ContainerAnalysisV1Beta1Server).SetIamPolicy(ctx, req.(*v1.SetIamPolicyRequest)) 489 } 490 return interceptor(ctx, in, info, handler) 491} 492 493func _ContainerAnalysisV1Beta1_GetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 494 in := new(v1.GetIamPolicyRequest) 495 if err := dec(in); err != nil { 496 return nil, err 497 } 498 if interceptor == nil { 499 return srv.(ContainerAnalysisV1Beta1Server).GetIamPolicy(ctx, in) 500 } 501 info := &grpc.UnaryServerInfo{ 502 Server: srv, 503 FullMethod: "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/GetIamPolicy", 504 } 505 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 506 return srv.(ContainerAnalysisV1Beta1Server).GetIamPolicy(ctx, req.(*v1.GetIamPolicyRequest)) 507 } 508 return interceptor(ctx, in, info, handler) 509} 510 511func _ContainerAnalysisV1Beta1_TestIamPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 512 in := new(v1.TestIamPermissionsRequest) 513 if err := dec(in); err != nil { 514 return nil, err 515 } 516 if interceptor == nil { 517 return srv.(ContainerAnalysisV1Beta1Server).TestIamPermissions(ctx, in) 518 } 519 info := &grpc.UnaryServerInfo{ 520 Server: srv, 521 FullMethod: "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/TestIamPermissions", 522 } 523 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 524 return srv.(ContainerAnalysisV1Beta1Server).TestIamPermissions(ctx, req.(*v1.TestIamPermissionsRequest)) 525 } 526 return interceptor(ctx, in, info, handler) 527} 528 529func _ContainerAnalysisV1Beta1_GetScanConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 530 in := new(GetScanConfigRequest) 531 if err := dec(in); err != nil { 532 return nil, err 533 } 534 if interceptor == nil { 535 return srv.(ContainerAnalysisV1Beta1Server).GetScanConfig(ctx, in) 536 } 537 info := &grpc.UnaryServerInfo{ 538 Server: srv, 539 FullMethod: "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/GetScanConfig", 540 } 541 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 542 return srv.(ContainerAnalysisV1Beta1Server).GetScanConfig(ctx, req.(*GetScanConfigRequest)) 543 } 544 return interceptor(ctx, in, info, handler) 545} 546 547func _ContainerAnalysisV1Beta1_ListScanConfigs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 548 in := new(ListScanConfigsRequest) 549 if err := dec(in); err != nil { 550 return nil, err 551 } 552 if interceptor == nil { 553 return srv.(ContainerAnalysisV1Beta1Server).ListScanConfigs(ctx, in) 554 } 555 info := &grpc.UnaryServerInfo{ 556 Server: srv, 557 FullMethod: "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/ListScanConfigs", 558 } 559 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 560 return srv.(ContainerAnalysisV1Beta1Server).ListScanConfigs(ctx, req.(*ListScanConfigsRequest)) 561 } 562 return interceptor(ctx, in, info, handler) 563} 564 565func _ContainerAnalysisV1Beta1_UpdateScanConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 566 in := new(UpdateScanConfigRequest) 567 if err := dec(in); err != nil { 568 return nil, err 569 } 570 if interceptor == nil { 571 return srv.(ContainerAnalysisV1Beta1Server).UpdateScanConfig(ctx, in) 572 } 573 info := &grpc.UnaryServerInfo{ 574 Server: srv, 575 FullMethod: "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/UpdateScanConfig", 576 } 577 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 578 return srv.(ContainerAnalysisV1Beta1Server).UpdateScanConfig(ctx, req.(*UpdateScanConfigRequest)) 579 } 580 return interceptor(ctx, in, info, handler) 581} 582 583var _ContainerAnalysisV1Beta1_serviceDesc = grpc.ServiceDesc{ 584 ServiceName: "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1", 585 HandlerType: (*ContainerAnalysisV1Beta1Server)(nil), 586 Methods: []grpc.MethodDesc{ 587 { 588 MethodName: "SetIamPolicy", 589 Handler: _ContainerAnalysisV1Beta1_SetIamPolicy_Handler, 590 }, 591 { 592 MethodName: "GetIamPolicy", 593 Handler: _ContainerAnalysisV1Beta1_GetIamPolicy_Handler, 594 }, 595 { 596 MethodName: "TestIamPermissions", 597 Handler: _ContainerAnalysisV1Beta1_TestIamPermissions_Handler, 598 }, 599 { 600 MethodName: "GetScanConfig", 601 Handler: _ContainerAnalysisV1Beta1_GetScanConfig_Handler, 602 }, 603 { 604 MethodName: "ListScanConfigs", 605 Handler: _ContainerAnalysisV1Beta1_ListScanConfigs_Handler, 606 }, 607 { 608 MethodName: "UpdateScanConfig", 609 Handler: _ContainerAnalysisV1Beta1_UpdateScanConfig_Handler, 610 }, 611 }, 612 Streams: []grpc.StreamDesc{}, 613 Metadata: "google/devtools/containeranalysis/v1beta1/containeranalysis.proto", 614} 615 616func init() { 617 proto.RegisterFile("google/devtools/containeranalysis/v1beta1/containeranalysis.proto", fileDescriptor_containeranalysis_a170acd3c74dfdfb) 618} 619 620var fileDescriptor_containeranalysis_a170acd3c74dfdfb = []byte{ 621 // 766 bytes of a gzipped FileDescriptorProto 622 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcd, 0x4e, 0x1b, 0x49, 623 0x10, 0x56, 0xf3, 0xb7, 0xd0, 0x06, 0xb1, 0x6a, 0xed, 0x82, 0x35, 0xfb, 0x67, 0x8d, 0x56, 0x2b, 624 0xe3, 0xc3, 0xcc, 0x1a, 0xb4, 0x5a, 0x05, 0x44, 0x90, 0x21, 0x92, 0x15, 0x29, 0x07, 0x64, 0x08, 625 0x8a, 0xb8, 0x58, 0xed, 0x71, 0x31, 0xea, 0xc4, 0xd3, 0x3d, 0x99, 0x6e, 0x5b, 0x40, 0x44, 0x0e, 626 0x11, 0xb9, 0x24, 0xc7, 0x1c, 0x73, 0xcb, 0x5b, 0xe4, 0x11, 0x12, 0xe5, 0x16, 0x29, 0x4f, 0x90, 627 0x77, 0xc8, 0x35, 0x9a, 0x9e, 0x1e, 0x7b, 0xb0, 0x0d, 0xd8, 0xa0, 0x9c, 0xa0, 0xeb, 0xfb, 0xaa, 628 0xea, 0xfb, 0xaa, 0xdd, 0x65, 0xe3, 0x8a, 0x2f, 0x84, 0xdf, 0x02, 0xb7, 0x09, 0x1d, 0x25, 0x44, 629 0x4b, 0xba, 0x9e, 0xe0, 0x8a, 0x32, 0x0e, 0x11, 0xe5, 0xb4, 0x75, 0x22, 0x99, 0x74, 0x3b, 0xe5, 630 0x06, 0x28, 0x5a, 0x1e, 0x44, 0x9c, 0x30, 0x12, 0x4a, 0x90, 0x95, 0xa4, 0x84, 0x93, 0x96, 0x70, 631 0x06, 0x89, 0xa6, 0x84, 0xf5, 0xbb, 0xe9, 0x46, 0x43, 0xe6, 0x52, 0xce, 0x85, 0xa2, 0x8a, 0x09, 632 0x6e, 0x0a, 0x59, 0x7f, 0x1a, 0x94, 0xd1, 0xc0, 0xed, 0x94, 0xe3, 0x3f, 0xf5, 0x50, 0xb4, 0x98, 633 0x77, 0x62, 0x70, 0xeb, 0x22, 0x7e, 0x01, 0xfb, 0xcb, 0x60, 0xfa, 0xd4, 0x68, 0x1f, 0xb9, 0x8a, 634 0x05, 0x20, 0x15, 0x0d, 0xc2, 0x84, 0x60, 0x7f, 0x41, 0x18, 0xef, 0x79, 0x94, 0xef, 0x08, 0x7e, 635 0xc4, 0x7c, 0x42, 0xf0, 0x14, 0xa7, 0x01, 0xe4, 0x51, 0x01, 0x15, 0xe7, 0x6a, 0xfa, 0x7f, 0x52, 636 0xc0, 0xb9, 0x26, 0x48, 0x2f, 0x62, 0x61, 0xac, 0x2a, 0x3f, 0xa1, 0xa1, 0x6c, 0x88, 0xe4, 0xf1, 637 0x4f, 0xc0, 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