You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

671 lines
29 KiB

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