From cd9330af20e3ae09865cdef0c33eaa71908b22e9 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 27 Jan 2020 09:12:51 -0800 Subject: [PATCH] docs(regen): updated required field documentation for v1beta1 client (#55) --- .../ContainerAnalysisV1Beta1Client.java | 20 +- .../v1beta1/Containeranalysis.java | 129 ++++--- .../v1beta1/GetScanConfigRequest.java | 42 ++- .../GetScanConfigRequestOrBuilder.java | 12 +- .../v1beta1/ListScanConfigsRequest.java | 70 ++-- .../ListScanConfigsRequestOrBuilder.java | 20 +- .../v1beta1/UpdateScanConfigRequest.java | 114 ++++-- .../UpdateScanConfigRequestOrBuilder.java | 30 +- .../main/java/io/grafeas/v1beta1/Grafeas.java | 339 +++++++++--------- .../v1beta1/containeranalysis.proto | 69 ++-- .../v1beta1/grafeas/grafeas.proto | 4 + synth.metadata | 8 +- 12 files changed, 503 insertions(+), 354 deletions(-) diff --git a/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/ContainerAnalysisV1Beta1Client.java b/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/ContainerAnalysisV1Beta1Client.java index c92de5c5..28052123 100644 --- a/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/ContainerAnalysisV1Beta1Client.java +++ b/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/ContainerAnalysisV1Beta1Client.java @@ -559,7 +559,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * } * * - * @param name The name of the scan configuration in the form of + * @param name Required. The name of the scan configuration in the form of * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -582,7 +582,7 @@ public final ScanConfig getScanConfig(ScanConfigName name) { * } * * - * @param name The name of the scan configuration in the form of + * @param name Required. The name of the scan configuration in the form of * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -652,9 +652,9 @@ public final UnaryCallable getScanConfigCallab * } * * - * @param parent The name of the project to list scan configurations for in the form of + * @param parent Required. The name of the project to list scan configurations for in the form of * `projects/[PROJECT_ID]`. - * @param filter The filter expression. + * @param filter Required. The filter expression. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListScanConfigsPagedResponse listScanConfigs(ProjectName parent, String filter) { @@ -682,9 +682,9 @@ public final ListScanConfigsPagedResponse listScanConfigs(ProjectName parent, St * } * * - * @param parent The name of the project to list scan configurations for in the form of + * @param parent Required. The name of the project to list scan configurations for in the form of * `projects/[PROJECT_ID]`. - * @param filter The filter expression. + * @param filter Required. The filter expression. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListScanConfigsPagedResponse listScanConfigs(String parent, String filter) { @@ -789,9 +789,9 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest * } * * - * @param name The name of the scan configuration in the form of + * @param name Required. The name of the scan configuration in the form of * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. - * @param scanConfig The updated scan configuration. + * @param scanConfig Required. The updated scan configuration. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ScanConfig updateScanConfig(ScanConfigName name, ScanConfig scanConfig) { @@ -817,9 +817,9 @@ public final ScanConfig updateScanConfig(ScanConfigName name, ScanConfig scanCon * } * * - * @param name The name of the scan configuration in the form of + * @param name Required. The name of the scan configuration in the form of * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. - * @param scanConfig The updated scan configuration. + * @param scanConfig Required. The updated scan configuration. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ScanConfig updateScanConfig(String name, ScanConfig scanConfig) { diff --git a/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/Containeranalysis.java b/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/Containeranalysis.java index 6f192e21..5e8f727e 100644 --- a/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/Containeranalysis.java +++ b/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/Containeranalysis.java @@ -59,65 +59,81 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\nAgoogle/devtools/containeranalysis/v1be" + "ta1/containeranalysis.proto\022)google.devt" + "ools.containeranalysis.v1beta1\032\034google/a" - + "pi/annotations.proto\032\036google/iam/v1/iam_" - + "policy.proto\032\032google/iam/v1/policy.proto" - + "\032\037google/protobuf/timestamp.proto\"\242\001\n\nSc" - + "anConfig\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 " - + "\001(\t\022\017\n\007enabled\030\003 \001(\010\022/\n\013create_time\030\004 \001(" - + "\0132\032.google.protobuf.Timestamp\022/\n\013update_" - + "time\030\005 \001(\0132\032.google.protobuf.Timestamp\"$" - + "\n\024GetScanConfigRequest\022\014\n\004name\030\001 \001(\t\"_\n\026" - + "ListScanConfigsRequest\022\016\n\006parent\030\001 \001(\t\022\016" - + "\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npag" - + "e_token\030\004 \001(\t\"\177\n\027ListScanConfigsResponse" - + "\022K\n\014scan_configs\030\001 \003(\01325.google.devtools" - + ".containeranalysis.v1beta1.ScanConfig\022\027\n" - + "\017next_page_token\030\002 \001(\t\"s\n\027UpdateScanConf" - + "igRequest\022\014\n\004name\030\001 \001(\t\022J\n\013scan_config\030\002" - + " \001(\01325.google.devtools.containeranalysis" - + ".v1beta1.ScanConfig2\204\n\n\030ContainerAnalysi" - + "sV1Beta1\022\311\001\n\014SetIamPolicy\022\".google.iam.v" - + "1.SetIamPolicyRequest\032\025.google.iam.v1.Po" - + "licy\"~\202\323\344\223\002x\"3/v1beta1/{resource=project" - + "s/*/notes/*}:setIamPolicy:\001*Z>\"9/v1beta1" - + "/{resource=projects/*/occurrences/*}:set" - + "IamPolicy:\001*\022\311\001\n\014GetIamPolicy\022\".google.i" - + "am.v1.GetIamPolicyRequest\032\025.google.iam.v" - + "1.Policy\"~\202\323\344\223\002x\"3/v1beta1/{resource=pro" - + "jects/*/notes/*}:getIamPolicy:\001*Z>\"9/v1b" - + "eta1/{resource=projects/*/occurrences/*}" - + ":getIamPolicy:\001*\022\367\001\n\022TestIamPermissions\022" - + "(.google.iam.v1.TestIamPermissionsReques" - + "t\032).google.iam.v1.TestIamPermissionsResp" - + "onse\"\213\001\202\323\344\223\002\204\001\"9/v1beta1/{resource=proje" - + "cts/*/notes/*}:testIamPermissions:\001*ZD\"?" - + "/v1beta1/{resource=projects/*/occurrence" - + "s/*}:testIamPermissions:\001*\022\271\001\n\rGetScanCo" - + "nfig\022?.google.devtools.containeranalysis" - + ".v1beta1.GetScanConfigRequest\0325.google.d" - + "evtools.containeranalysis.v1beta1.ScanCo" - + "nfig\"0\202\323\344\223\002*\022(/v1beta1/{name=projects/*/" - + "scanConfigs/*}\022\312\001\n\017ListScanConfigs\022A.goo" + + "pi/annotations.proto\032\027google/api/client." + + "proto\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032\036google/iam/v1" + + "/iam_policy.proto\032\032google/iam/v1/policy." + + "proto\032\037google/protobuf/timestamp.proto\"\202" + + "\002\n\nScanConfig\022\014\n\004name\030\001 \001(\t\022\023\n\013descripti" + + "on\030\002 \001(\t\022\017\n\007enabled\030\003 \001(\010\022/\n\013create_time" + + "\030\004 \001(\0132\032.google.protobuf.Timestamp\022/\n\013up" + + "date_time\030\005 \001(\0132\032.google.protobuf.Timest" + + "amp:^\352A[\n+containeranalysis.googleapis.c" + + "om/ScanConfig\022,projects/{project}/scanCo" + + "nfigs/{scan_config}\"Y\n\024GetScanConfigRequ" + + "est\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+containeranal" + + "ysis.googleapis.com/ScanConfig\"\231\001\n\026ListS" + + "canConfigsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A" + + "-\n+cloudresourcemanager.googleapis.com/P" + + "roject\022\023\n\006filter\030\002 \001(\tB\003\340A\002\022\021\n\tpage_size" + + "\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"\177\n\027ListScanCo" + + "nfigsResponse\022K\n\014scan_configs\030\001 \003(\01325.go" + + "ogle.devtools.containeranalysis.v1beta1." + + "ScanConfig\022\027\n\017next_page_token\030\002 \001(\t\"\255\001\n\027" + + "UpdateScanConfigRequest\022A\n\004name\030\001 \001(\tB3\340" + + "A\002\372A-\n+containeranalysis.googleapis.com/" + + "ScanConfig\022O\n\013scan_config\030\002 \001(\01325.google" + + ".devtools.containeranalysis.v1beta1.Scan" + + "ConfigB\003\340A\0022\272\013\n\030ContainerAnalysisV1Beta1" + + "\022\334\001\n\014SetIamPolicy\022\".google.iam.v1.SetIam" + + "PolicyRequest\032\025.google.iam.v1.Policy\"\220\001\202" + + "\323\344\223\002x\"3/v1beta1/{resource=projects/*/not" + + "es/*}:setIamPolicy:\001*Z>\"9/v1beta1/{resou" + + "rce=projects/*/occurrences/*}:setIamPoli" + + "cy:\001*\332A\017resource,policy\022\325\001\n\014GetIamPolicy" + + "\022\".google.iam.v1.GetIamPolicyRequest\032\025.g" + + "oogle.iam.v1.Policy\"\211\001\202\323\344\223\002x\"3/v1beta1/{" + + "resource=projects/*/notes/*}:getIamPolic" + + "y:\001*Z>\"9/v1beta1/{resource=projects/*/oc" + + "currences/*}:getIamPolicy:\001*\332A\010resource\022" + + "\216\002\n\022TestIamPermissions\022(.google.iam.v1.T" + + "estIamPermissionsRequest\032).google.iam.v1" + + ".TestIamPermissionsResponse\"\242\001\202\323\344\223\002\204\001\"9/" + + "v1beta1/{resource=projects/*/notes/*}:te" + + "stIamPermissions:\001*ZD\"?/v1beta1/{resourc" + + "e=projects/*/occurrences/*}:testIamPermi" + + "ssions:\001*\332A\024resource,permissions\022\300\001\n\rGet" + + "ScanConfig\022?.google.devtools.containeran" + + "alysis.v1beta1.GetScanConfigRequest\0325.go" + + "ogle.devtools.containeranalysis.v1beta1." + + "ScanConfig\"7\202\323\344\223\002*\022(/v1beta1/{name=proje" + + "cts/*/scanConfigs/*}\332A\004name\022\332\001\n\017ListScan" + + "Configs\022A.google.devtools.containeranaly" + + "sis.v1beta1.ListScanConfigsRequest\032B.goo" + "gle.devtools.containeranalysis.v1beta1.L" - + "istScanConfigsRequest\032B.google.devtools." - + "containeranalysis.v1beta1.ListScanConfig" - + "sResponse\"0\202\323\344\223\002*\022(/v1beta1/{parent=proj" - + "ects/*}/scanConfigs\022\314\001\n\020UpdateScanConfig" - + "\022B.google.devtools.containeranalysis.v1b" - + "eta1.UpdateScanConfigRequest\0325.google.de" - + "vtools.containeranalysis.v1beta1.ScanCon" - + "fig\"=\202\323\344\223\0027\032(/v1beta1/{name=projects/*/s" - + "canConfigs/*}:\013scan_configB\212\001\n$com.googl" - + "e.containeranalysis.v1beta1P\001ZZgoogle.go" - + "lang.org/genproto/googleapis/devtools/co" - + "ntaineranalysis/v1beta1;containeranalysi" - + "s\242\002\003GCAb\006proto3" + + "istScanConfigsResponse\"@\202\323\344\223\002*\022(/v1beta1" + + "/{parent=projects/*}/scanConfigs\332A\rparen" + + "t,filter\022\337\001\n\020UpdateScanConfig\022B.google.d" + + "evtools.containeranalysis.v1beta1.Update" + + "ScanConfigRequest\0325.google.devtools.cont" + + "aineranalysis.v1beta1.ScanConfig\"P\202\323\344\223\0027" + + "\032(/v1beta1/{name=projects/*/scanConfigs/" + + "*}:\013scan_config\332A\020name,scan_config\032T\312A c" + + "ontaineranalysis.googleapis.com\322A.https:" + + "//www.googleapis.com/auth/cloud-platform" + + "B\212\001\n$com.google.containeranalysis.v1beta" + + "1P\001ZZgoogle.golang.org/genproto/googleap" + + "is/devtools/containeranalysis/v1beta1;co" + + "ntaineranalysis\242\002\003GCAb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), com.google.iam.v1.IamPolicyProto.getDescriptor(), com.google.iam.v1.PolicyProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -164,10 +180,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.iam.v1.IamPolicyProto.getDescriptor(); com.google.iam.v1.PolicyProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/GetScanConfigRequest.java b/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/GetScanConfigRequest.java index 2cc650bb..2d179c49 100644 --- a/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/GetScanConfigRequest.java +++ b/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/GetScanConfigRequest.java @@ -117,11 +117,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The name of the scan configuration in the form of
+   * Required. The name of the scan configuration in the form of
    * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -140,11 +142,13 @@ public java.lang.String getName() { * * *
-   * The name of the scan configuration in the form of
+   * Required. The name of the scan configuration in the form of
    * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -484,11 +488,13 @@ public Builder mergeFrom( * * *
-     * The name of the scan configuration in the form of
+     * Required. The name of the scan configuration in the form of
      * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -507,11 +513,13 @@ public java.lang.String getName() { * * *
-     * The name of the scan configuration in the form of
+     * Required. The name of the scan configuration in the form of
      * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -530,11 +538,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * The name of the scan configuration in the form of
+     * Required. The name of the scan configuration in the form of
      * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -552,11 +562,13 @@ public Builder setName(java.lang.String value) { * * *
-     * The name of the scan configuration in the form of
+     * Required. The name of the scan configuration in the form of
      * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -570,11 +582,13 @@ public Builder clearName() { * * *
-     * The name of the scan configuration in the form of
+     * Required. The name of the scan configuration in the form of
      * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/GetScanConfigRequestOrBuilder.java b/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/GetScanConfigRequestOrBuilder.java index f29d6ba1..1cff4236 100644 --- a/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/GetScanConfigRequestOrBuilder.java +++ b/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/GetScanConfigRequestOrBuilder.java @@ -27,11 +27,13 @@ public interface GetScanConfigRequestOrBuilder * * *
-   * The name of the scan configuration in the form of
+   * Required. The name of the scan configuration in the form of
    * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -40,11 +42,13 @@ public interface GetScanConfigRequestOrBuilder * * *
-   * The name of the scan configuration in the form of
+   * Required. The name of the scan configuration in the form of
    * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ diff --git a/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/ListScanConfigsRequest.java b/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/ListScanConfigsRequest.java index 52d1cae3..f647f925 100644 --- a/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/ListScanConfigsRequest.java +++ b/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/ListScanConfigsRequest.java @@ -138,11 +138,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The name of the project to list scan configurations for in the form of
+   * Required. The name of the project to list scan configurations for in the form of
    * `projects/[PROJECT_ID]`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -161,11 +163,13 @@ public java.lang.String getParent() { * * *
-   * The name of the project to list scan configurations for in the form of
+   * Required. The name of the project to list scan configurations for in the form of
    * `projects/[PROJECT_ID]`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -187,10 +191,10 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The filter expression.
+   * Required. The filter expression.
    * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The filter. */ @@ -209,10 +213,10 @@ public java.lang.String getFilter() { * * *
-   * The filter expression.
+   * Required. The filter expression.
    * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for filter. */ @@ -663,11 +667,13 @@ public Builder mergeFrom( * * *
-     * The name of the project to list scan configurations for in the form of
+     * Required. The name of the project to list scan configurations for in the form of
      * `projects/[PROJECT_ID]`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -686,11 +692,13 @@ public java.lang.String getParent() { * * *
-     * The name of the project to list scan configurations for in the form of
+     * Required. The name of the project to list scan configurations for in the form of
      * `projects/[PROJECT_ID]`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -709,11 +717,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * The name of the project to list scan configurations for in the form of
+     * Required. The name of the project to list scan configurations for in the form of
      * `projects/[PROJECT_ID]`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -731,11 +741,13 @@ public Builder setParent(java.lang.String value) { * * *
-     * The name of the project to list scan configurations for in the form of
+     * Required. The name of the project to list scan configurations for in the form of
      * `projects/[PROJECT_ID]`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -749,11 +761,13 @@ public Builder clearParent() { * * *
-     * The name of the project to list scan configurations for in the form of
+     * Required. The name of the project to list scan configurations for in the form of
      * `projects/[PROJECT_ID]`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for parent to set. * @return This builder for chaining. @@ -774,10 +788,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The filter expression.
+     * Required. The filter expression.
      * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The filter. */ @@ -796,10 +810,10 @@ public java.lang.String getFilter() { * * *
-     * The filter expression.
+     * Required. The filter expression.
      * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for filter. */ @@ -818,10 +832,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-     * The filter expression.
+     * Required. The filter expression.
      * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The filter to set. * @return This builder for chaining. @@ -839,10 +853,10 @@ public Builder setFilter(java.lang.String value) { * * *
-     * The filter expression.
+     * Required. The filter expression.
      * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -856,10 +870,10 @@ public Builder clearFilter() { * * *
-     * The filter expression.
+     * Required. The filter expression.
      * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for filter to set. * @return This builder for chaining. diff --git a/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/ListScanConfigsRequestOrBuilder.java b/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/ListScanConfigsRequestOrBuilder.java index 00aea815..46ddca61 100644 --- a/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/ListScanConfigsRequestOrBuilder.java +++ b/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/ListScanConfigsRequestOrBuilder.java @@ -27,11 +27,13 @@ public interface ListScanConfigsRequestOrBuilder * * *
-   * The name of the project to list scan configurations for in the form of
+   * Required. The name of the project to list scan configurations for in the form of
    * `projects/[PROJECT_ID]`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -40,11 +42,13 @@ public interface ListScanConfigsRequestOrBuilder * * *
-   * The name of the project to list scan configurations for in the form of
+   * Required. The name of the project to list scan configurations for in the form of
    * `projects/[PROJECT_ID]`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -54,10 +58,10 @@ public interface ListScanConfigsRequestOrBuilder * * *
-   * The filter expression.
+   * Required. The filter expression.
    * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The filter. */ @@ -66,10 +70,10 @@ public interface ListScanConfigsRequestOrBuilder * * *
-   * The filter expression.
+   * Required. The filter expression.
    * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for filter. */ diff --git a/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/UpdateScanConfigRequest.java b/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/UpdateScanConfigRequest.java index 905c08cd..53791279 100644 --- a/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/UpdateScanConfigRequest.java +++ b/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/UpdateScanConfigRequest.java @@ -133,11 +133,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The name of the scan configuration in the form of
+   * Required. The name of the scan configuration in the form of
    * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -156,11 +158,13 @@ public java.lang.String getName() { * * *
-   * The name of the scan configuration in the form of
+   * Required. The name of the scan configuration in the form of
    * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -182,10 +186,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * The updated scan configuration.
+   * Required. The updated scan configuration.
    * 
* - * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2; + * + * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the scanConfig field is set. */ @@ -196,10 +202,12 @@ public boolean hasScanConfig() { * * *
-   * The updated scan configuration.
+   * Required. The updated scan configuration.
    * 
* - * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2; + * + * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The scanConfig. */ @@ -212,10 +220,12 @@ public com.google.containeranalysis.v1beta1.ScanConfig getScanConfig() { * * *
-   * The updated scan configuration.
+   * Required. The updated scan configuration.
    * 
* - * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2; + * + * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.containeranalysis.v1beta1.ScanConfigOrBuilder getScanConfigOrBuilder() { return getScanConfig(); @@ -575,11 +585,13 @@ public Builder mergeFrom( * * *
-     * The name of the scan configuration in the form of
+     * Required. The name of the scan configuration in the form of
      * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -598,11 +610,13 @@ public java.lang.String getName() { * * *
-     * The name of the scan configuration in the form of
+     * Required. The name of the scan configuration in the form of
      * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -621,11 +635,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * The name of the scan configuration in the form of
+     * Required. The name of the scan configuration in the form of
      * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -643,11 +659,13 @@ public Builder setName(java.lang.String value) { * * *
-     * The name of the scan configuration in the form of
+     * Required. The name of the scan configuration in the form of
      * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -661,11 +679,13 @@ public Builder clearName() { * * *
-     * The name of the scan configuration in the form of
+     * Required. The name of the scan configuration in the form of
      * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for name to set. * @return This builder for chaining. @@ -691,10 +711,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * The updated scan configuration.
+     * Required. The updated scan configuration.
      * 
* - * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2; + * + * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the scanConfig field is set. */ @@ -705,10 +727,12 @@ public boolean hasScanConfig() { * * *
-     * The updated scan configuration.
+     * Required. The updated scan configuration.
      * 
* - * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2; + * + * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The scanConfig. */ @@ -725,10 +749,12 @@ public com.google.containeranalysis.v1beta1.ScanConfig getScanConfig() { * * *
-     * The updated scan configuration.
+     * Required. The updated scan configuration.
      * 
* - * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2; + * + * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setScanConfig(com.google.containeranalysis.v1beta1.ScanConfig value) { if (scanConfigBuilder_ == null) { @@ -747,10 +773,12 @@ public Builder setScanConfig(com.google.containeranalysis.v1beta1.ScanConfig val * * *
-     * The updated scan configuration.
+     * Required. The updated scan configuration.
      * 
* - * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2; + * + * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setScanConfig( com.google.containeranalysis.v1beta1.ScanConfig.Builder builderForValue) { @@ -767,10 +795,12 @@ public Builder setScanConfig( * * *
-     * The updated scan configuration.
+     * Required. The updated scan configuration.
      * 
* - * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2; + * + * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeScanConfig(com.google.containeranalysis.v1beta1.ScanConfig value) { if (scanConfigBuilder_ == null) { @@ -793,10 +823,12 @@ public Builder mergeScanConfig(com.google.containeranalysis.v1beta1.ScanConfig v * * *
-     * The updated scan configuration.
+     * Required. The updated scan configuration.
      * 
* - * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2; + * + * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearScanConfig() { if (scanConfigBuilder_ == null) { @@ -813,10 +845,12 @@ public Builder clearScanConfig() { * * *
-     * The updated scan configuration.
+     * Required. The updated scan configuration.
      * 
* - * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2; + * + * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.containeranalysis.v1beta1.ScanConfig.Builder getScanConfigBuilder() { @@ -827,10 +861,12 @@ public com.google.containeranalysis.v1beta1.ScanConfig.Builder getScanConfigBuil * * *
-     * The updated scan configuration.
+     * Required. The updated scan configuration.
      * 
* - * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2; + * + * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.containeranalysis.v1beta1.ScanConfigOrBuilder getScanConfigOrBuilder() { if (scanConfigBuilder_ != null) { @@ -845,10 +881,12 @@ public com.google.containeranalysis.v1beta1.ScanConfigOrBuilder getScanConfigOrB * * *
-     * The updated scan configuration.
+     * Required. The updated scan configuration.
      * 
* - * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2; + * + * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.containeranalysis.v1beta1.ScanConfig, diff --git a/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/UpdateScanConfigRequestOrBuilder.java b/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/UpdateScanConfigRequestOrBuilder.java index c2240b07..0ddd1b58 100644 --- a/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/UpdateScanConfigRequestOrBuilder.java +++ b/proto-google-cloud-containeranalysis-v1beta1/src/main/java/com/google/containeranalysis/v1beta1/UpdateScanConfigRequestOrBuilder.java @@ -27,11 +27,13 @@ public interface UpdateScanConfigRequestOrBuilder * * *
-   * The name of the scan configuration in the form of
+   * Required. The name of the scan configuration in the form of
    * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -40,11 +42,13 @@ public interface UpdateScanConfigRequestOrBuilder * * *
-   * The name of the scan configuration in the form of
+   * Required. The name of the scan configuration in the form of
    * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -54,10 +58,12 @@ public interface UpdateScanConfigRequestOrBuilder * * *
-   * The updated scan configuration.
+   * Required. The updated scan configuration.
    * 
* - * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2; + * + * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the scanConfig field is set. */ @@ -66,10 +72,12 @@ public interface UpdateScanConfigRequestOrBuilder * * *
-   * The updated scan configuration.
+   * Required. The updated scan configuration.
    * 
* - * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2; + * + * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The scanConfig. */ @@ -78,10 +86,12 @@ public interface UpdateScanConfigRequestOrBuilder * * *
-   * The updated scan configuration.
+   * Required. The updated scan configuration.
    * 
* - * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2; + * + * .google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.containeranalysis.v1beta1.ScanConfigOrBuilder getScanConfigOrBuilder(); } diff --git a/proto-google-cloud-containeranalysis-v1beta1/src/main/java/io/grafeas/v1beta1/Grafeas.java b/proto-google-cloud-containeranalysis-v1beta1/src/main/java/io/grafeas/v1beta1/Grafeas.java index 69025084..d6a66f91 100644 --- a/proto-google-cloud-containeranalysis-v1beta1/src/main/java/io/grafeas/v1beta1/Grafeas.java +++ b/proto-google-cloud-containeranalysis-v1beta1/src/main/java/io/grafeas/v1beta1/Grafeas.java @@ -142,179 +142,183 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n?google/devtools/containeranalysis/v1be" + "ta1/grafeas/grafeas.proto\022\017grafeas.v1bet" - + "a1\032\034google/api/annotations.proto\032Ggoogle" - + "/devtools/containeranalysis/v1beta1/atte" - + "station/attestation.proto\032;google/devtoo" - + "ls/containeranalysis/v1beta1/build/build" - + ".proto\032=google/devtools/containeranalysi" - + "s/v1beta1/common/common.proto\032Egoogle/de" - + "vtools/containeranalysis/v1beta1/deploym" - + "ent/deployment.proto\032Cgoogle/devtools/co" - + "ntaineranalysis/v1beta1/discovery/discov" - + "ery.proto\032;google/devtools/containeranal" - + "ysis/v1beta1/image/image.proto\032?google/d" - + "evtools/containeranalysis/v1beta1/packag" - + "e/package.proto\032Egoogle/devtools/contain" - + "eranalysis/v1beta1/provenance/provenance" - + ".proto\032Kgoogle/devtools/containeranalysi" - + "s/v1beta1/vulnerability/vulnerability.pr" - + "oto\032\033google/protobuf/empty.proto\032 google" - + "/protobuf/field_mask.proto\032\037google/proto" - + "buf/timestamp.proto\"\234\005\n\nOccurrence\022\014\n\004na" - + "me\030\001 \001(\t\022+\n\010resource\030\002 \001(\0132\031.grafeas.v1b" - + "eta1.Resource\022\021\n\tnote_name\030\003 \001(\t\022\'\n\004kind" - + "\030\004 \001(\0162\031.grafeas.v1beta1.NoteKind\022\023\n\013rem" - + "ediation\030\005 \001(\t\022/\n\013create_time\030\006 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022/\n\013update_time\030\007" - + " \001(\0132\032.google.protobuf.Timestamp\022?\n\rvuln" - + "erability\030\010 \001(\0132&.grafeas.v1beta1.vulner" - + "ability.DetailsH\000\022/\n\005build\030\t \001(\0132\036.grafe" - + "as.v1beta1.build.DetailsH\000\0227\n\rderived_im" - + "age\030\n \001(\0132\036.grafeas.v1beta1.image.Detail" - + "sH\000\0228\n\014installation\030\013 \001(\0132 .grafeas.v1be" - + "ta1.package.DetailsH\000\0229\n\ndeployment\030\014 \001(" - + "\0132#.grafeas.v1beta1.deployment.DetailsH\000" - + "\0228\n\ndiscovered\030\r \001(\0132\".grafeas.v1beta1.d" - + "iscovery.DetailsH\000\022;\n\013attestation\030\016 \001(\0132" - + "$.grafeas.v1beta1.attestation.DetailsH\000B" - + "\t\n\007details\"]\n\010Resource\022\014\n\004name\030\001 \001(\t\022\013\n\003" - + "uri\030\002 \001(\t\0226\n\014content_hash\030\003 \001(\0132 .grafea" - + "s.v1beta1.provenance.Hash\"\200\006\n\004Note\022\014\n\004na" - + "me\030\001 \001(\t\022\031\n\021short_description\030\002 \001(\t\022\030\n\020l" - + "ong_description\030\003 \001(\t\022\'\n\004kind\030\004 \001(\0162\031.gr" - + "afeas.v1beta1.NoteKind\0220\n\013related_url\030\005 " - + "\003(\0132\033.grafeas.v1beta1.RelatedUrl\0223\n\017expi" - + "ration_time\030\006 \001(\0132\032.google.protobuf.Time" - + "stamp\022/\n\013create_time\030\007 \001(\0132\032.google.prot" - + "obuf.Timestamp\022/\n\013update_time\030\010 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022\032\n\022related_note_" - + "names\030\t \003(\t\022E\n\rvulnerability\030\n \001(\0132,.gra" - + "feas.v1beta1.vulnerability.Vulnerability" - + "H\000\022-\n\005build\030\013 \001(\0132\034.grafeas.v1beta1.buil" - + "d.BuildH\000\0222\n\nbase_image\030\014 \001(\0132\034.grafeas." - + "v1beta1.image.BasisH\000\0223\n\007package\030\r \001(\0132 " - + ".grafeas.v1beta1.package.PackageH\000\022<\n\nde" - + "ployable\030\016 \001(\0132&.grafeas.v1beta1.deploym" - + "ent.DeployableH\000\0229\n\tdiscovery\030\017 \001(\0132$.gr" - + "afeas.v1beta1.discovery.DiscoveryH\000\022G\n\025a" - + "ttestation_authority\030\020 \001(\0132&.grafeas.v1b" - + "eta1.attestation.AuthorityH\000B\006\n\004type\"$\n\024" - + "GetOccurrenceRequest\022\014\n\004name\030\001 \001(\t\"_\n\026Li" - + "stOccurrencesRequest\022\016\n\006parent\030\001 \001(\t\022\016\n\006" - + "filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_" - + "token\030\004 \001(\t\"d\n\027ListOccurrencesResponse\0220" - + "\n\013occurrences\030\001 \003(\0132\033.grafeas.v1beta1.Oc" - + "currence\022\027\n\017next_page_token\030\002 \001(\t\"\'\n\027Del" - + "eteOccurrenceRequest\022\014\n\004name\030\001 \001(\t\"Z\n\027Cr" - + "eateOccurrenceRequest\022\016\n\006parent\030\001 \001(\t\022/\n" - + "\noccurrence\030\002 \001(\0132\033.grafeas.v1beta1.Occu" - + "rrence\"\211\001\n\027UpdateOccurrenceRequest\022\014\n\004na" - + "me\030\001 \001(\t\022/\n\noccurrence\030\002 \001(\0132\033.grafeas.v" - + "1beta1.Occurrence\022/\n\013update_mask\030\003 \001(\0132\032" - + ".google.protobuf.FieldMask\"\036\n\016GetNoteReq" - + "uest\022\014\n\004name\030\001 \001(\t\"(\n\030GetOccurrenceNoteR" - + "equest\022\014\n\004name\030\001 \001(\t\"Y\n\020ListNotesRequest" - + "\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage" - + "_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"R\n\021ListN" - + "otesResponse\022$\n\005notes\030\001 \003(\0132\025.grafeas.v1" - + "beta1.Note\022\027\n\017next_page_token\030\002 \001(\t\"!\n\021D" - + "eleteNoteRequest\022\014\n\004name\030\001 \001(\t\"Y\n\021Create" - + "NoteRequest\022\016\n\006parent\030\001 \001(\t\022\017\n\007note_id\030\002" - + " \001(\t\022#\n\004note\030\003 \001(\0132\025.grafeas.v1beta1.Not" - + "e\"w\n\021UpdateNoteRequest\022\014\n\004name\030\001 \001(\t\022#\n\004" - + "note\030\002 \001(\0132\025.grafeas.v1beta1.Note\022/\n\013upd" - + "ate_mask\030\003 \001(\0132\032.google.protobuf.FieldMa" - + "sk\"a\n\032ListNoteOccurrencesRequest\022\014\n\004name" - + "\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(" - + "\005\022\022\n\npage_token\030\004 \001(\t\"h\n\033ListNoteOccurre" + + "a1\032\034google/api/annotations.proto\032\027google" + + "/api/client.proto\032Ggoogle/devtools/conta" + + "ineranalysis/v1beta1/attestation/attesta" + + "tion.proto\032;google/devtools/containerana" + + "lysis/v1beta1/build/build.proto\032=google/" + + "devtools/containeranalysis/v1beta1/commo" + + "n/common.proto\032Egoogle/devtools/containe" + + "ranalysis/v1beta1/deployment/deployment." + + "proto\032Cgoogle/devtools/containeranalysis" + + "/v1beta1/discovery/discovery.proto\032;goog" + + "le/devtools/containeranalysis/v1beta1/im" + + "age/image.proto\032?google/devtools/contain" + + "eranalysis/v1beta1/package/package.proto" + + "\032Egoogle/devtools/containeranalysis/v1be" + + "ta1/provenance/provenance.proto\032Kgoogle/" + + "devtools/containeranalysis/v1beta1/vulne" + + "rability/vulnerability.proto\032\033google/pro" + + "tobuf/empty.proto\032 google/protobuf/field" + + "_mask.proto\032\037google/protobuf/timestamp.p" + + "roto\"\234\005\n\nOccurrence\022\014\n\004name\030\001 \001(\t\022+\n\010res" + + "ource\030\002 \001(\0132\031.grafeas.v1beta1.Resource\022\021" + + "\n\tnote_name\030\003 \001(\t\022\'\n\004kind\030\004 \001(\0162\031.grafea" + + "s.v1beta1.NoteKind\022\023\n\013remediation\030\005 \001(\t\022" + + "/\n\013create_time\030\006 \001(\0132\032.google.protobuf.T" + + "imestamp\022/\n\013update_time\030\007 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022?\n\rvulnerability\030\010 \001(\013" + + "2&.grafeas.v1beta1.vulnerability.Details" + + "H\000\022/\n\005build\030\t \001(\0132\036.grafeas.v1beta1.buil" + + "d.DetailsH\000\0227\n\rderived_image\030\n \001(\0132\036.gra" + + "feas.v1beta1.image.DetailsH\000\0228\n\014installa" + + "tion\030\013 \001(\0132 .grafeas.v1beta1.package.Det" + + "ailsH\000\0229\n\ndeployment\030\014 \001(\0132#.grafeas.v1b" + + "eta1.deployment.DetailsH\000\0228\n\ndiscovered\030" + + "\r \001(\0132\".grafeas.v1beta1.discovery.Detail" + + "sH\000\022;\n\013attestation\030\016 \001(\0132$.grafeas.v1bet" + + "a1.attestation.DetailsH\000B\t\n\007details\"]\n\010R" + + "esource\022\014\n\004name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\0226\n\014co" + + "ntent_hash\030\003 \001(\0132 .grafeas.v1beta1.prove" + + "nance.Hash\"\200\006\n\004Note\022\014\n\004name\030\001 \001(\t\022\031\n\021sho" + + "rt_description\030\002 \001(\t\022\030\n\020long_description" + + "\030\003 \001(\t\022\'\n\004kind\030\004 \001(\0162\031.grafeas.v1beta1.N" + + "oteKind\0220\n\013related_url\030\005 \003(\0132\033.grafeas.v" + + "1beta1.RelatedUrl\0223\n\017expiration_time\030\006 \001" + + "(\0132\032.google.protobuf.Timestamp\022/\n\013create" + + "_time\030\007 \001(\0132\032.google.protobuf.Timestamp\022" + + "/\n\013update_time\030\010 \001(\0132\032.google.protobuf.T" + + "imestamp\022\032\n\022related_note_names\030\t \003(\t\022E\n\r" + + "vulnerability\030\n \001(\0132,.grafeas.v1beta1.vu" + + "lnerability.VulnerabilityH\000\022-\n\005build\030\013 \001" + + "(\0132\034.grafeas.v1beta1.build.BuildH\000\0222\n\nba" + + "se_image\030\014 \001(\0132\034.grafeas.v1beta1.image.B" + + "asisH\000\0223\n\007package\030\r \001(\0132 .grafeas.v1beta" + + "1.package.PackageH\000\022<\n\ndeployable\030\016 \001(\0132" + + "&.grafeas.v1beta1.deployment.DeployableH" + + "\000\0229\n\tdiscovery\030\017 \001(\0132$.grafeas.v1beta1.d" + + "iscovery.DiscoveryH\000\022G\n\025attestation_auth" + + "ority\030\020 \001(\0132&.grafeas.v1beta1.attestatio" + + "n.AuthorityH\000B\006\n\004type\"$\n\024GetOccurrenceRe" + + "quest\022\014\n\004name\030\001 \001(\t\"_\n\026ListOccurrencesRe" + + "quest\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021\n" + + "\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"d\n\027" + + "ListOccurrencesResponse\0220\n\013occurrences\030\001" + + " \003(\0132\033.grafeas.v1beta1.Occurrence\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"\'\n\027DeleteOccurrenceRe" + + "quest\022\014\n\004name\030\001 \001(\t\"Z\n\027CreateOccurrenceR" + + "equest\022\016\n\006parent\030\001 \001(\t\022/\n\noccurrence\030\002 \001" + + "(\0132\033.grafeas.v1beta1.Occurrence\"\211\001\n\027Upda" + + "teOccurrenceRequest\022\014\n\004name\030\001 \001(\t\022/\n\nocc" + + "urrence\030\002 \001(\0132\033.grafeas.v1beta1.Occurren" + + "ce\022/\n\013update_mask\030\003 \001(\0132\032.google.protobu" + + "f.FieldMask\"\036\n\016GetNoteRequest\022\014\n\004name\030\001 " + + "\001(\t\"(\n\030GetOccurrenceNoteRequest\022\014\n\004name\030" + + "\001 \001(\t\"Y\n\020ListNotesRequest\022\016\n\006parent\030\001 \001(" + + "\t\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\n" + + "page_token\030\004 \001(\t\"R\n\021ListNotesResponse\022$\n" + + "\005notes\030\001 \003(\0132\025.grafeas.v1beta1.Note\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\"!\n\021DeleteNoteReques" + + "t\022\014\n\004name\030\001 \001(\t\"Y\n\021CreateNoteRequest\022\016\n\006" + + "parent\030\001 \001(\t\022\017\n\007note_id\030\002 \001(\t\022#\n\004note\030\003 " + + "\001(\0132\025.grafeas.v1beta1.Note\"w\n\021UpdateNote" + + "Request\022\014\n\004name\030\001 \001(\t\022#\n\004note\030\002 \001(\0132\025.gr" + + "afeas.v1beta1.Note\022/\n\013update_mask\030\003 \001(\0132" + + "\032.google.protobuf.FieldMask\"a\n\032ListNoteO" + + "ccurrencesRequest\022\014\n\004name\030\001 \001(\t\022\016\n\006filte" + + "r\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token" + + "\030\004 \001(\t\"h\n\033ListNoteOccurrencesResponse\0220\n" + + "\013occurrences\030\001 \003(\0132\033.grafeas.v1beta1.Occ" + + "urrence\022\027\n\017next_page_token\030\002 \001(\t\"\262\001\n\027Bat" + + "chCreateNotesRequest\022\016\n\006parent\030\001 \001(\t\022B\n\005" + + "notes\030\002 \003(\01323.grafeas.v1beta1.BatchCreat" + + "eNotesRequest.NotesEntry\032C\n\nNotesEntry\022\013" + + "\n\003key\030\001 \001(\t\022$\n\005value\030\002 \001(\0132\025.grafeas.v1b" + + "eta1.Note:\0028\001\"@\n\030BatchCreateNotesRespons" + + "e\022$\n\005notes\030\001 \003(\0132\025.grafeas.v1beta1.Note\"" + + "a\n\035BatchCreateOccurrencesRequest\022\016\n\006pare" + + "nt\030\001 \001(\t\0220\n\013occurrences\030\002 \003(\0132\033.grafeas." + + "v1beta1.Occurrence\"R\n\036BatchCreateOccurre" + "ncesResponse\0220\n\013occurrences\030\001 \003(\0132\033.graf" - + "eas.v1beta1.Occurrence\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\"\262\001\n\027BatchCreateNotesRequest\022\016\n\006p" - + "arent\030\001 \001(\t\022B\n\005notes\030\002 \003(\01323.grafeas.v1b" - + "eta1.BatchCreateNotesRequest.NotesEntry\032" - + "C\n\nNotesEntry\022\013\n\003key\030\001 \001(\t\022$\n\005value\030\002 \001(" - + "\0132\025.grafeas.v1beta1.Note:\0028\001\"@\n\030BatchCre" - + "ateNotesResponse\022$\n\005notes\030\001 \003(\0132\025.grafea" - + "s.v1beta1.Note\"a\n\035BatchCreateOccurrences" - + "Request\022\016\n\006parent\030\001 \001(\t\0220\n\013occurrences\030\002" - + " \003(\0132\033.grafeas.v1beta1.Occurrence\"R\n\036Bat" - + "chCreateOccurrencesResponse\0220\n\013occurrenc" - + "es\030\001 \003(\0132\033.grafeas.v1beta1.Occurrence\"K\n" - + ")GetVulnerabilityOccurrencesSummaryReque" - + "st\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\"\245\002\n\037V" - + "ulnerabilityOccurrencesSummary\022U\n\006counts" - + "\030\001 \003(\0132E.grafeas.v1beta1.VulnerabilityOc" - + "currencesSummary.FixableTotalByDigest\032\252\001" - + "\n\024FixableTotalByDigest\022+\n\010resource\030\001 \001(\013" - + "2\031.grafeas.v1beta1.Resource\0229\n\010severity\030" - + "\002 \001(\0162\'.grafeas.v1beta1.vulnerability.Se" - + "verity\022\025\n\rfixable_count\030\003 \001(\003\022\023\n\013total_c" - + "ount\030\004 \001(\0032\302\021\n\016GrafeasV1Beta1\022\205\001\n\rGetOcc" - + "urrence\022%.grafeas.v1beta1.GetOccurrenceR" - + "equest\032\033.grafeas.v1beta1.Occurrence\"0\202\323\344" - + "\223\002*\022(/v1beta1/{name=projects/*/occurrenc" - + "es/*}\022\226\001\n\017ListOccurrences\022\'.grafeas.v1be" - + "ta1.ListOccurrencesRequest\032(.grafeas.v1b" - + "eta1.ListOccurrencesResponse\"0\202\323\344\223\002*\022(/v" - + "1beta1/{parent=projects/*}/occurrences\022\206" - + "\001\n\020DeleteOccurrence\022(.grafeas.v1beta1.De" - + "leteOccurrenceRequest\032\026.google.protobuf." - + "Empty\"0\202\323\344\223\002**(/v1beta1/{name=projects/*" - + "/occurrences/*}\022\227\001\n\020CreateOccurrence\022(.g" - + "rafeas.v1beta1.CreateOccurrenceRequest\032\033" - + ".grafeas.v1beta1.Occurrence\"<\202\323\344\223\0026\"(/v1" - + "beta1/{parent=projects/*}/occurrences:\no" - + "ccurrence\022\272\001\n\026BatchCreateOccurrences\022..g" - + "rafeas.v1beta1.BatchCreateOccurrencesReq" - + "uest\032/.grafeas.v1beta1.BatchCreateOccurr" - + "encesResponse\"?\202\323\344\223\0029\"4/v1beta1/{parent=" - + "projects/*}/occurrences:batchCreate:\001*\022\227" - + "\001\n\020UpdateOccurrence\022(.grafeas.v1beta1.Up" - + "dateOccurrenceRequest\032\033.grafeas.v1beta1." - + "Occurrence\"<\202\323\344\223\00262(/v1beta1/{name=proje" - + "cts/*/occurrences/*}:\noccurrence\022\215\001\n\021Get" - + "OccurrenceNote\022).grafeas.v1beta1.GetOccu" - + "rrenceNoteRequest\032\025.grafeas.v1beta1.Note" - + "\"6\202\323\344\223\0020\022./v1beta1/{name=projects/*/occu" - + "rrences/*}/notes\022m\n\007GetNote\022\037.grafeas.v1" - + "beta1.GetNoteRequest\032\025.grafeas.v1beta1.N" - + "ote\"*\202\323\344\223\002$\022\"/v1beta1/{name=projects/*/n" - + "otes/*}\022~\n\tListNotes\022!.grafeas.v1beta1.L" - + "istNotesRequest\032\".grafeas.v1beta1.ListNo" - + "tesResponse\"*\202\323\344\223\002$\022\"/v1beta1/{parent=pr" - + "ojects/*}/notes\022t\n\nDeleteNote\022\".grafeas." - + "v1beta1.DeleteNoteRequest\032\026.google.proto" - + "buf.Empty\"*\202\323\344\223\002$*\"/v1beta1/{name=projec" - + "ts/*/notes/*}\022y\n\nCreateNote\022\".grafeas.v1" - + "beta1.CreateNoteRequest\032\025.grafeas.v1beta" - + "1.Note\"0\202\323\344\223\002*\"\"/v1beta1/{parent=project" - + "s/*}/notes:\004note\022\242\001\n\020BatchCreateNotes\022(." - + "grafeas.v1beta1.BatchCreateNotesRequest\032" - + ").grafeas.v1beta1.BatchCreateNotesRespon" - + "se\"9\202\323\344\223\0023\"./v1beta1/{parent=projects/*}" - + "/notes:batchCreate:\001*\022y\n\nUpdateNote\022\".gr" - + "afeas.v1beta1.UpdateNoteRequest\032\025.grafea" - + "s.v1beta1.Note\"0\202\323\344\223\002*2\"/v1beta1/{name=p" - + "rojects/*/notes/*}:\004note\022\250\001\n\023ListNoteOcc" - + "urrences\022+.grafeas.v1beta1.ListNoteOccur" - + "rencesRequest\032,.grafeas.v1beta1.ListNote" - + "OccurrencesResponse\"6\202\323\344\223\0020\022./v1beta1/{n" - + "ame=projects/*/notes/*}/occurrences\022\331\001\n\"" - + "GetVulnerabilityOccurrencesSummary\022:.gra" - + "feas.v1beta1.GetVulnerabilityOccurrences" - + "SummaryRequest\0320.grafeas.v1beta1.Vulnera" - + "bilityOccurrencesSummary\"E\202\323\344\223\002?\022=/v1bet" - + "a1/{parent=projects/*}/occurrences:vulne" - + "rabilitySummaryBv\n\022io.grafeas.v1beta1P\001Z" - + "Xgoogle.golang.org/genproto/googleapis/d" - + "evtools/containeranalysis/v1beta1/grafea" - + "s;grafeas\242\002\003GRAb\006proto3" + + "eas.v1beta1.Occurrence\"K\n)GetVulnerabili" + + "tyOccurrencesSummaryRequest\022\016\n\006parent\030\001 " + + "\001(\t\022\016\n\006filter\030\002 \001(\t\"\245\002\n\037VulnerabilityOcc" + + "urrencesSummary\022U\n\006counts\030\001 \003(\0132E.grafea" + + "s.v1beta1.VulnerabilityOccurrencesSummar" + + "y.FixableTotalByDigest\032\252\001\n\024FixableTotalB" + + "yDigest\022+\n\010resource\030\001 \001(\0132\031.grafeas.v1be" + + "ta1.Resource\0229\n\010severity\030\002 \001(\0162\'.grafeas" + + ".v1beta1.vulnerability.Severity\022\025\n\rfixab" + + "le_count\030\003 \001(\003\022\023\n\013total_count\030\004 \001(\0032\230\022\n\016" + + "GrafeasV1Beta1\022\205\001\n\rGetOccurrence\022%.grafe" + + "as.v1beta1.GetOccurrenceRequest\032\033.grafea" + + "s.v1beta1.Occurrence\"0\202\323\344\223\002*\022(/v1beta1/{" + + "name=projects/*/occurrences/*}\022\226\001\n\017ListO" + + "ccurrences\022\'.grafeas.v1beta1.ListOccurre" + + "ncesRequest\032(.grafeas.v1beta1.ListOccurr" + + "encesResponse\"0\202\323\344\223\002*\022(/v1beta1/{parent=" + + "projects/*}/occurrences\022\206\001\n\020DeleteOccurr" + + "ence\022(.grafeas.v1beta1.DeleteOccurrenceR" + + "equest\032\026.google.protobuf.Empty\"0\202\323\344\223\002**(" + + "/v1beta1/{name=projects/*/occurrences/*}" + + "\022\227\001\n\020CreateOccurrence\022(.grafeas.v1beta1." + + "CreateOccurrenceRequest\032\033.grafeas.v1beta" + + "1.Occurrence\"<\202\323\344\223\0026\"(/v1beta1/{parent=p" + + "rojects/*}/occurrences:\noccurrence\022\272\001\n\026B" + + "atchCreateOccurrences\022..grafeas.v1beta1." + + "BatchCreateOccurrencesRequest\032/.grafeas." + + "v1beta1.BatchCreateOccurrencesResponse\"?" + + "\202\323\344\223\0029\"4/v1beta1/{parent=projects/*}/occ" + + "urrences:batchCreate:\001*\022\227\001\n\020UpdateOccurr" + + "ence\022(.grafeas.v1beta1.UpdateOccurrenceR" + + "equest\032\033.grafeas.v1beta1.Occurrence\"<\202\323\344" + + "\223\00262(/v1beta1/{name=projects/*/occurrenc" + + "es/*}:\noccurrence\022\215\001\n\021GetOccurrenceNote\022" + + ").grafeas.v1beta1.GetOccurrenceNoteReque" + + "st\032\025.grafeas.v1beta1.Note\"6\202\323\344\223\0020\022./v1be" + + "ta1/{name=projects/*/occurrences/*}/note" + + "s\022m\n\007GetNote\022\037.grafeas.v1beta1.GetNoteRe" + + "quest\032\025.grafeas.v1beta1.Note\"*\202\323\344\223\002$\022\"/v" + + "1beta1/{name=projects/*/notes/*}\022~\n\tList" + + "Notes\022!.grafeas.v1beta1.ListNotesRequest" + + "\032\".grafeas.v1beta1.ListNotesResponse\"*\202\323" + + "\344\223\002$\022\"/v1beta1/{parent=projects/*}/notes" + + "\022t\n\nDeleteNote\022\".grafeas.v1beta1.DeleteN" + + "oteRequest\032\026.google.protobuf.Empty\"*\202\323\344\223" + + "\002$*\"/v1beta1/{name=projects/*/notes/*}\022y" + + "\n\nCreateNote\022\".grafeas.v1beta1.CreateNot" + + "eRequest\032\025.grafeas.v1beta1.Note\"0\202\323\344\223\002*\"" + + "\"/v1beta1/{parent=projects/*}/notes:\004not" + + "e\022\242\001\n\020BatchCreateNotes\022(.grafeas.v1beta1" + + ".BatchCreateNotesRequest\032).grafeas.v1bet" + + "a1.BatchCreateNotesResponse\"9\202\323\344\223\0023\"./v1" + + "beta1/{parent=projects/*}/notes:batchCre" + + "ate:\001*\022y\n\nUpdateNote\022\".grafeas.v1beta1.U" + + "pdateNoteRequest\032\025.grafeas.v1beta1.Note\"" + + "0\202\323\344\223\002*2\"/v1beta1/{name=projects/*/notes" + + "/*}:\004note\022\250\001\n\023ListNoteOccurrences\022+.graf" + + "eas.v1beta1.ListNoteOccurrencesRequest\032," + + ".grafeas.v1beta1.ListNoteOccurrencesResp" + + "onse\"6\202\323\344\223\0020\022./v1beta1/{name=projects/*/" + + "notes/*}/occurrences\022\331\001\n\"GetVulnerabilit" + + "yOccurrencesSummary\022:.grafeas.v1beta1.Ge" + + "tVulnerabilityOccurrencesSummaryRequest\032" + + "0.grafeas.v1beta1.VulnerabilityOccurrenc" + + "esSummary\"E\202\323\344\223\002?\022=/v1beta1/{parent=proj" + + "ects/*}/occurrences:vulnerabilitySummary" + + "\032T\312A containeranalysis.googleapis.com\322A." + + "https://www.googleapis.com/auth/cloud-pl" + + "atformBv\n\022io.grafeas.v1beta1P\001ZXgoogle.g" + + "olang.org/genproto/googleapis/devtools/c" + + "ontaineranalysis/v1beta1/grafeas;grafeas" + + "\242\002\003GRAb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), io.grafeas.v1beta1.attestation.AttestationOuterClass.getDescriptor(), io.grafeas.v1beta1.build.BuildOuterClass.getDescriptor(), io.grafeas.v1beta1.common.Common.getDescriptor(), @@ -568,10 +572,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.oauthScopes); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); io.grafeas.v1beta1.attestation.AttestationOuterClass.getDescriptor(); io.grafeas.v1beta1.build.BuildOuterClass.getDescriptor(); io.grafeas.v1beta1.common.Common.getDescriptor(); diff --git a/proto-google-cloud-containeranalysis-v1beta1/src/main/proto/google/devtools/containeranalysis/v1beta1/containeranalysis.proto b/proto-google-cloud-containeranalysis-v1beta1/src/main/proto/google/devtools/containeranalysis/v1beta1/containeranalysis.proto index b1515338..59f3ecd9 100644 --- a/proto-google-cloud-containeranalysis-v1beta1/src/main/proto/google/devtools/containeranalysis/v1beta1/containeranalysis.proto +++ b/proto-google-cloud-containeranalysis-v1beta1/src/main/proto/google/devtools/containeranalysis/v1beta1/containeranalysis.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,12 +11,16 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; package google.devtools.containeranalysis.v1beta1; import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/iam/v1/iam_policy.proto"; import "google/iam/v1/policy.proto"; import "google/protobuf/timestamp.proto"; @@ -40,6 +44,9 @@ option objc_class_prefix = "GCA"; // there would be one note for the vulnerability and an occurrence for each // image with the vulnerability referring to that note. service ContainerAnalysisV1Beta1 { + option (google.api.default_host) = "containeranalysis.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + // Sets the access control policy on the specified note or occurrence. // Requires `containeranalysis.notes.setIamPolicy` or // `containeranalysis.occurrences.setIamPolicy` permission if the resource is @@ -48,8 +55,7 @@ service ContainerAnalysisV1Beta1 { // The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for // notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for // occurrences. - rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) - returns (google.iam.v1.Policy) { + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v1beta1/{resource=projects/*/notes/*}:setIamPolicy" body: "*" @@ -58,6 +64,7 @@ service ContainerAnalysisV1Beta1 { body: "*" } }; + option (google.api.method_signature) = "resource,policy"; } // Gets the access control policy for a note or an occurrence resource. @@ -68,8 +75,7 @@ service ContainerAnalysisV1Beta1 { // The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for // notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for // occurrences. - rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) - returns (google.iam.v1.Policy) { + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v1beta1/{resource=projects/*/notes/*}:getIamPolicy" body: "*" @@ -78,6 +84,7 @@ service ContainerAnalysisV1Beta1 { body: "*" } }; + option (google.api.method_signature) = "resource"; } // Returns the permissions that a caller has on the specified note or @@ -87,8 +94,7 @@ service ContainerAnalysisV1Beta1 { // The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for // notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for // occurrences. - rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) - returns (google.iam.v1.TestIamPermissionsResponse) { + rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) { option (google.api.http) = { post: "/v1beta1/{resource=projects/*/notes/*}:testIamPermissions" body: "*" @@ -97,6 +103,7 @@ service ContainerAnalysisV1Beta1 { body: "*" } }; + option (google.api.method_signature) = "resource,permissions"; } // Gets the specified scan configuration. @@ -104,14 +111,15 @@ service ContainerAnalysisV1Beta1 { option (google.api.http) = { get: "/v1beta1/{name=projects/*/scanConfigs/*}" }; + option (google.api.method_signature) = "name"; } // Lists scan configurations for the specified project. - rpc ListScanConfigs(ListScanConfigsRequest) - returns (ListScanConfigsResponse) { + rpc ListScanConfigs(ListScanConfigsRequest) returns (ListScanConfigsResponse) { option (google.api.http) = { get: "/v1beta1/{parent=projects/*}/scanConfigs" }; + option (google.api.method_signature) = "parent,filter"; } // Updates the specified scan configuration. @@ -120,6 +128,7 @@ service ContainerAnalysisV1Beta1 { put: "/v1beta1/{name=projects/*/scanConfigs/*}" body: "scan_config" }; + option (google.api.method_signature) = "name,scan_config"; } } @@ -127,6 +136,11 @@ service ContainerAnalysisV1Beta1 { // particular type of analysis being run. For example, it can configure whether // vulnerability scanning is being done on Docker images or not. message ScanConfig { + option (google.api.resource) = { + type: "containeranalysis.googleapis.com/ScanConfig" + pattern: "projects/{project}/scanConfigs/{scan_config}" + }; + // Output only. The name of the scan configuration in the form of // `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. string name = 1; @@ -147,19 +161,29 @@ message ScanConfig { // Request to get a scan configuration. message GetScanConfigRequest { - // The name of the scan configuration in the form of + // Required. The name of the scan configuration in the form of // `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "containeranalysis.googleapis.com/ScanConfig" + } + ]; } // Request to list scan configurations. message ListScanConfigsRequest { - // The name of the project to list scan configurations for in the form of + // Required. The name of the project to list scan configurations for in the form of // `projects/[PROJECT_ID]`. - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; - // The filter expression. - string filter = 2; + // Required. The filter expression. + string filter = 2 [(google.api.field_behavior) = REQUIRED]; // The number of scan configs to return in the list. int32 page_size = 3; @@ -181,10 +205,15 @@ message ListScanConfigsResponse { // A request to update a scan configuration. message UpdateScanConfigRequest { - // The name of the scan configuration in the form of + // Required. The name of the scan configuration in the form of // `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. - string name = 1; - - // The updated scan configuration. - ScanConfig scan_config = 2; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "containeranalysis.googleapis.com/ScanConfig" + } + ]; + + // Required. The updated scan configuration. + ScanConfig scan_config = 2 [(google.api.field_behavior) = REQUIRED]; } diff --git a/proto-google-cloud-containeranalysis-v1beta1/src/main/proto/google/devtools/containeranalysis/v1beta1/grafeas/grafeas.proto b/proto-google-cloud-containeranalysis-v1beta1/src/main/proto/google/devtools/containeranalysis/v1beta1/grafeas/grafeas.proto index e096aa3e..8952164e 100644 --- a/proto-google-cloud-containeranalysis-v1beta1/src/main/proto/google/devtools/containeranalysis/v1beta1/grafeas/grafeas.proto +++ b/proto-google-cloud-containeranalysis-v1beta1/src/main/proto/google/devtools/containeranalysis/v1beta1/grafeas/grafeas.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package grafeas.v1beta1; import "google/api/annotations.proto"; +import "google/api/client.proto"; import "google/devtools/containeranalysis/v1beta1/attestation/attestation.proto"; import "google/devtools/containeranalysis/v1beta1/build/build.proto"; import "google/devtools/containeranalysis/v1beta1/common/common.proto"; @@ -50,6 +51,9 @@ option objc_class_prefix = "GRA"; // there would be one note for the vulnerability and an occurrence for each // image with the vulnerability referring to that note. service GrafeasV1Beta1 { + option (google.api.default_host) = "containeranalysis.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + // Gets the specified occurrence. rpc GetOccurrence(GetOccurrenceRequest) returns (Occurrence) { option (google.api.http) = { diff --git a/synth.metadata b/synth.metadata index 72ebe813..6e8d8069 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,5 +1,5 @@ { - "updateTime": "2020-01-23T08:39:39.739803Z", + "updateTime": "2020-01-25T08:42:25.784346Z", "sources": [ { "generator": { @@ -12,9 +12,9 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "8d16f76de065f530d395a4c7eabbf766d6a120fd", - "internalRef": "291008516", - "log": "8d16f76de065f530d395a4c7eabbf766d6a120fd\nGenerate Memcache v1beta2 API protos and gRPC ServiceConfig files\n\nPiperOrigin-RevId: 291008516\n\n3af1dabd93df9a9f17bf3624d3b875c11235360b\ngrafeas: Add containeranalysis default_host to Grafeas service\n\nPiperOrigin-RevId: 290965849\n\nbe2663fa95e31cba67d0cd62611a6674db9f74b7\nfix(google/maps/roads): add missing opening bracket\n\nPiperOrigin-RevId: 290964086\n\nfacc26550a0af0696e0534bc9cae9df14275aa7c\nUpdating v2 protos with the latest inline documentation (in comments) and adding a per-service .yaml file.\n\nPiperOrigin-RevId: 290952261\n\ncda99c1f7dc5e4ca9b1caeae1dc330838cbc1461\nChange api_name to 'asset' for v1p1beta1\n\nPiperOrigin-RevId: 290800639\n\n94e9e90c303a820ce40643d9129e7f0d2054e8a1\nAdds Google Maps Road service\n\nPiperOrigin-RevId: 290795667\n\na3b23dcb2eaecce98c600c7d009451bdec52dbda\nrpc: new message ErrorInfo, other comment updates\n\nPiperOrigin-RevId: 290781668\n\n26420ef4e46c37f193c0fbe53d6ebac481de460e\nAdd proto definition for Org Policy v1.\n\nPiperOrigin-RevId: 290771923\n\n7f0dab8177cf371ae019a082e2512de7ac102888\nPublish Routes Preferred API v1 service definitions.\n\nPiperOrigin-RevId: 290326986\n\nad6e508d0728e1d1bca6e3f328cd562718cb772d\nFix: Qualify resource type references with \"jobs.googleapis.com/\"\n\nPiperOrigin-RevId: 290285762\n\n58e770d568a2b78168ddc19a874178fee8265a9d\ncts client library\n\nPiperOrigin-RevId: 290146169\n\naf9daa4c3b4c4a8b7133b81588dd9ffd37270af2\nAdd more programming language options to public proto\n\nPiperOrigin-RevId: 290144091\n\nd9f2bbf2df301ef84641d4cec7c828736a0bd907\ntalent: add missing resource.proto dep to Bazel build target\n\nPiperOrigin-RevId: 290143164\n\n3b3968237451d027b42471cd28884a5a1faed6c7\nAnnotate Talent API.\nAdd gRPC service config for retry.\nUpdate bazel file with google.api.resource dependency.\n\nPiperOrigin-RevId: 290125172\n\n" + "sha": "3c39a1d6e23c1ef63c7fba4019c25e76c40dfe19", + "internalRef": "291420695", + "log": "3c39a1d6e23c1ef63c7fba4019c25e76c40dfe19\nKMS: add file-level message for CryptoKeyPath, it is defined in gapic yaml but not\nin proto files.\n\nPiperOrigin-RevId: 291420695\n\nc6f3f350b8387f8d1b85ed4506f30187ebaaddc3\ncontaineranalysis: update v1beta1 and bazel build with annotations\n\nPiperOrigin-RevId: 291401900\n\n92887d74b44e4e636252b7b8477d0d2570cd82db\nfix: fix the location of grpc config file.\n\nPiperOrigin-RevId: 291396015\n\ne26cab8afd19d396b929039dac5d874cf0b5336c\nexpr: add default_host and method_signature annotations to CelService\n\nPiperOrigin-RevId: 291240093\n\n06093ae3952441c34ec176d1f7431b8765cec0be\nirm: fix v1alpha2 bazel build by adding missing proto imports\n\nPiperOrigin-RevId: 291227940\n\na8a2514af326e4673063f9a3c9d0ef1091c87e6c\nAdd proto annotation for cloud/irm API\n\nPiperOrigin-RevId: 291217859\n\n" } }, {