diff --git a/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffRequest.java b/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffRequest.java index 1e2c157e0c1e..31b24df25572 100644 --- a/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffRequest.java +++ b/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffRequest.java @@ -1202,10 +1202,12 @@ public com.google.protobuf.Parser getParserForType() { * * *
-   * Required. The ThreatList to update.
+   * The ThreatList to update.
    * 
* - * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1; + * + * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getThreatTypeValue() { return threatType_; @@ -1214,10 +1216,12 @@ public int getThreatTypeValue() { * * *
-   * Required. The ThreatList to update.
+   * The ThreatList to update.
    * 
* - * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1; + * + * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.webrisk.v1beta1.ThreatType getThreatType() { @SuppressWarnings("deprecation") @@ -1248,10 +1252,11 @@ public com.google.protobuf.ByteString getVersionToken() { * * *
-   * The constraints associated with this request.
+   * Required. The constraints associated with this request.
    * 
* - * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3; + * + * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public boolean hasConstraints() { @@ -1261,10 +1266,11 @@ public boolean hasConstraints() { * * *
-   * The constraints associated with this request.
+   * Required. The constraints associated with this request.
    * 
* - * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3; + * + * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints getConstraints() { @@ -1276,10 +1282,11 @@ public com.google.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints getCo * * *
-   * The constraints associated with this request.
+   * Required. The constraints associated with this request.
    * 
* - * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3; + * + * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.webrisk.v1beta1.ComputeThreatListDiffRequest.ConstraintsOrBuilder @@ -1653,10 +1660,12 @@ public Builder mergeFrom( * * *
-     * Required. The ThreatList to update.
+     * The ThreatList to update.
      * 
* - * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1; + * + * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getThreatTypeValue() { return threatType_; @@ -1665,10 +1674,12 @@ public int getThreatTypeValue() { * * *
-     * Required. The ThreatList to update.
+     * The ThreatList to update.
      * 
* - * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1; + * + * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setThreatTypeValue(int value) { threatType_ = value; @@ -1679,10 +1690,12 @@ public Builder setThreatTypeValue(int value) { * * *
-     * Required. The ThreatList to update.
+     * The ThreatList to update.
      * 
* - * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1; + * + * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.webrisk.v1beta1.ThreatType getThreatType() { @SuppressWarnings("deprecation") @@ -1694,10 +1707,12 @@ public com.google.webrisk.v1beta1.ThreatType getThreatType() { * * *
-     * Required. The ThreatList to update.
+     * The ThreatList to update.
      * 
* - * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1; + * + * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setThreatType(com.google.webrisk.v1beta1.ThreatType value) { if (value == null) { @@ -1712,10 +1727,12 @@ public Builder setThreatType(com.google.webrisk.v1beta1.ThreatType value) { * * *
-     * Required. The ThreatList to update.
+     * The ThreatList to update.
      * 
* - * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1; + * + * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearThreatType() { @@ -1784,10 +1801,11 @@ public Builder clearVersionToken() { * * *
-     * The constraints associated with this request.
+     * Required. The constraints associated with this request.
      * 
* - * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3; + * + * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public boolean hasConstraints() { @@ -1797,10 +1815,11 @@ public boolean hasConstraints() { * * *
-     * The constraints associated with this request.
+     * Required. The constraints associated with this request.
      * 
* - * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3; + * + * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints getConstraints() { @@ -1817,10 +1836,11 @@ public com.google.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints getCo * * *
-     * The constraints associated with this request.
+     * Required. The constraints associated with this request.
      * 
* - * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3; + * + * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setConstraints( @@ -1841,10 +1861,11 @@ public Builder setConstraints( * * *
-     * The constraints associated with this request.
+     * Required. The constraints associated with this request.
      * 
* - * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3; + * + * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setConstraints( @@ -1863,10 +1884,11 @@ public Builder setConstraints( * * *
-     * The constraints associated with this request.
+     * Required. The constraints associated with this request.
      * 
* - * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3; + * + * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder mergeConstraints( @@ -1892,10 +1914,11 @@ public Builder mergeConstraints( * * *
-     * The constraints associated with this request.
+     * Required. The constraints associated with this request.
      * 
* - * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3; + * + * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearConstraints() { @@ -1913,10 +1936,11 @@ public Builder clearConstraints() { * * *
-     * The constraints associated with this request.
+     * Required. The constraints associated with this request.
      * 
* - * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3; + * + * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints.Builder @@ -1929,10 +1953,11 @@ public Builder clearConstraints() { * * *
-     * The constraints associated with this request.
+     * Required. The constraints associated with this request.
      * 
* - * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3; + * + * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.webrisk.v1beta1.ComputeThreatListDiffRequest.ConstraintsOrBuilder @@ -1950,10 +1975,11 @@ public Builder clearConstraints() { * * *
-     * The constraints associated with this request.
+     * Required. The constraints associated with this request.
      * 
* - * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3; + * + * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffRequestOrBuilder.java index f5aa74938329..6c49f786a423 100644 --- a/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffRequestOrBuilder.java @@ -12,20 +12,24 @@ public interface ComputeThreatListDiffRequestOrBuilder * * *
-   * Required. The ThreatList to update.
+   * The ThreatList to update.
    * 
* - * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1; + * + * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ int getThreatTypeValue(); /** * * *
-   * Required. The ThreatList to update.
+   * The ThreatList to update.
    * 
* - * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1; + * + * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.webrisk.v1beta1.ThreatType getThreatType(); @@ -45,10 +49,11 @@ public interface ComputeThreatListDiffRequestOrBuilder * * *
-   * The constraints associated with this request.
+   * Required. The constraints associated with this request.
    * 
* - * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3; + * + * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED]; * */ boolean hasConstraints(); @@ -56,10 +61,11 @@ public interface ComputeThreatListDiffRequestOrBuilder * * *
-   * The constraints associated with this request.
+   * Required. The constraints associated with this request.
    * 
* - * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3; + * + * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED]; * */ com.google.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints getConstraints(); @@ -67,10 +73,11 @@ public interface ComputeThreatListDiffRequestOrBuilder * * *
-   * The constraints associated with this request.
+   * Required. The constraints associated with this request.
    * 
* - * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3; + * + * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED]; * */ com.google.webrisk.v1beta1.ComputeThreatListDiffRequest.ConstraintsOrBuilder diff --git a/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffResponse.java b/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffResponse.java index f95919b1da51..033f310222d9 100644 --- a/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffResponse.java +++ b/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffResponse.java @@ -865,7 +865,7 @@ public com.google.protobuf.Parser getParserForType() { * * *
-   * The type of response. This may indicate that an action is required by the
+   * The type of response. This may indicate that an action must be taken by the
    * client when the response is received.
    * 
* @@ -880,7 +880,7 @@ public int getResponseTypeValue() { * * *
-   * The type of response. This may indicate that an action is required by the
+   * The type of response. This may indicate that an action must be taken by the
    * client when the response is received.
    * 
* @@ -1547,7 +1547,7 @@ public Builder mergeFrom( * * *
-     * The type of response. This may indicate that an action is required by the
+     * The type of response. This may indicate that an action must be taken by the
      * client when the response is received.
      * 
* @@ -1562,7 +1562,7 @@ public int getResponseTypeValue() { * * *
-     * The type of response. This may indicate that an action is required by the
+     * The type of response. This may indicate that an action must be taken by the
      * client when the response is received.
      * 
* @@ -1579,7 +1579,7 @@ public Builder setResponseTypeValue(int value) { * * *
-     * The type of response. This may indicate that an action is required by the
+     * The type of response. This may indicate that an action must be taken by the
      * client when the response is received.
      * 
* @@ -1600,7 +1600,7 @@ public com.google.webrisk.v1beta1.ComputeThreatListDiffResponse.ResponseType get * * *
-     * The type of response. This may indicate that an action is required by the
+     * The type of response. This may indicate that an action must be taken by the
      * client when the response is received.
      * 
* @@ -1622,7 +1622,7 @@ public Builder setResponseType( * * *
-     * The type of response. This may indicate that an action is required by the
+     * The type of response. This may indicate that an action must be taken by the
      * client when the response is received.
      * 
* diff --git a/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffResponseOrBuilder.java index 26eea2bff852..6772fef14f51 100644 --- a/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffResponseOrBuilder.java @@ -12,7 +12,7 @@ public interface ComputeThreatListDiffResponseOrBuilder * * *
-   * The type of response. This may indicate that an action is required by the
+   * The type of response. This may indicate that an action must be taken by the
    * client when the response is received.
    * 
* @@ -25,7 +25,7 @@ public interface ComputeThreatListDiffResponseOrBuilder * * *
-   * The type of response. This may indicate that an action is required by the
+   * The type of response. This may indicate that an action must be taken by the
    * client when the response is received.
    * 
* diff --git a/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesRequest.java b/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesRequest.java index f63873869132..3e6cac4375eb 100644 --- a/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesRequest.java +++ b/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesRequest.java @@ -156,7 +156,9 @@ public com.google.webrisk.v1beta1.ThreatType convert(java.lang.Integer from) { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getThreatTypesList() { return new com.google.protobuf.Internal.ListAdapter< @@ -170,7 +172,9 @@ public java.util.List getThreatTypesList( * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getThreatTypesCount() { return threatTypes_.size(); @@ -182,7 +186,9 @@ public int getThreatTypesCount() { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index) { return threatTypes_converter_.convert(threatTypes_.get(index)); @@ -194,7 +200,9 @@ public com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index) { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getThreatTypesValueList() { return threatTypes_; @@ -206,7 +214,9 @@ public java.util.List getThreatTypesValueList() { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getThreatTypesValue(int index) { return threatTypes_.get(index); @@ -641,7 +651,9 @@ private void ensureThreatTypesIsMutable() { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getThreatTypesList() { return new com.google.protobuf.Internal.ListAdapter< @@ -655,7 +667,9 @@ public java.util.List getThreatTypesList( * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getThreatTypesCount() { return threatTypes_.size(); @@ -667,7 +681,9 @@ public int getThreatTypesCount() { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index) { return threatTypes_converter_.convert(threatTypes_.get(index)); @@ -679,7 +695,9 @@ public com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index) { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setThreatTypes(int index, com.google.webrisk.v1beta1.ThreatType value) { if (value == null) { @@ -697,7 +715,9 @@ public Builder setThreatTypes(int index, com.google.webrisk.v1beta1.ThreatType v * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addThreatTypes(com.google.webrisk.v1beta1.ThreatType value) { if (value == null) { @@ -715,7 +735,9 @@ public Builder addThreatTypes(com.google.webrisk.v1beta1.ThreatType value) { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllThreatTypes( java.lang.Iterable values) { @@ -733,7 +755,9 @@ public Builder addAllThreatTypes( * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearThreatTypes() { threatTypes_ = java.util.Collections.emptyList(); @@ -748,7 +772,9 @@ public Builder clearThreatTypes() { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getThreatTypesValueList() { return java.util.Collections.unmodifiableList(threatTypes_); @@ -760,7 +786,9 @@ public java.util.List getThreatTypesValueList() { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getThreatTypesValue(int index) { return threatTypes_.get(index); @@ -772,7 +800,9 @@ public int getThreatTypesValue(int index) { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setThreatTypesValue(int index, int value) { ensureThreatTypesIsMutable(); @@ -787,7 +817,9 @@ public Builder setThreatTypesValue(int index, int value) { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addThreatTypesValue(int value) { ensureThreatTypesIsMutable(); @@ -802,7 +834,9 @@ public Builder addThreatTypesValue(int value) { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllThreatTypesValue(java.lang.Iterable values) { ensureThreatTypesIsMutable(); diff --git a/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesRequestOrBuilder.java index b6ec6f5c601d..ae092be7581f 100644 --- a/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesRequestOrBuilder.java @@ -27,7 +27,9 @@ public interface SearchHashesRequestOrBuilder * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ java.util.List getThreatTypesList(); /** @@ -37,7 +39,9 @@ public interface SearchHashesRequestOrBuilder * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ int getThreatTypesCount(); /** @@ -47,7 +51,9 @@ public interface SearchHashesRequestOrBuilder * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index); /** @@ -57,7 +63,9 @@ public interface SearchHashesRequestOrBuilder * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ java.util.List getThreatTypesValueList(); /** @@ -67,7 +75,9 @@ public interface SearchHashesRequestOrBuilder * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ int getThreatTypesValue(int index); } diff --git a/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisRequest.java b/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisRequest.java index c0482228c00f..6e2ce6105634 100644 --- a/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisRequest.java +++ b/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisRequest.java @@ -127,10 +127,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The URI to be checked for matches.
+   * Required. The URI to be checked for matches.
    * 
* - * string uri = 1; + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.lang.String getUri() { java.lang.Object ref = uri_; @@ -147,10 +147,10 @@ public java.lang.String getUri() { * * *
-   * The URI to be checked for matches.
+   * Required. The URI to be checked for matches.
    * 
* - * string uri = 1; + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; @@ -185,7 +185,9 @@ public com.google.webrisk.v1beta1.ThreatType convert(java.lang.Integer from) { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getThreatTypesList() { return new com.google.protobuf.Internal.ListAdapter< @@ -199,7 +201,9 @@ public java.util.List getThreatTypesList( * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getThreatTypesCount() { return threatTypes_.size(); @@ -211,7 +215,9 @@ public int getThreatTypesCount() { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index) { return threatTypes_converter_.convert(threatTypes_.get(index)); @@ -223,7 +229,9 @@ public com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index) { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getThreatTypesValueList() { return threatTypes_; @@ -235,7 +243,9 @@ public java.util.List getThreatTypesValueList() { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getThreatTypesValue(int index) { return threatTypes_.get(index); @@ -611,10 +621,10 @@ public Builder mergeFrom( * * *
-     * The URI to be checked for matches.
+     * Required. The URI to be checked for matches.
      * 
* - * string uri = 1; + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.lang.String getUri() { java.lang.Object ref = uri_; @@ -631,10 +641,10 @@ public java.lang.String getUri() { * * *
-     * The URI to be checked for matches.
+     * Required. The URI to be checked for matches.
      * 
* - * string uri = 1; + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; @@ -651,10 +661,10 @@ public com.google.protobuf.ByteString getUriBytes() { * * *
-     * The URI to be checked for matches.
+     * Required. The URI to be checked for matches.
      * 
* - * string uri = 1; + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUri(java.lang.String value) { if (value == null) { @@ -669,10 +679,10 @@ public Builder setUri(java.lang.String value) { * * *
-     * The URI to be checked for matches.
+     * Required. The URI to be checked for matches.
      * 
* - * string uri = 1; + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUri() { @@ -684,10 +694,10 @@ public Builder clearUri() { * * *
-     * The URI to be checked for matches.
+     * Required. The URI to be checked for matches.
      * 
* - * string uri = 1; + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -715,7 +725,9 @@ private void ensureThreatTypesIsMutable() { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getThreatTypesList() { return new com.google.protobuf.Internal.ListAdapter< @@ -729,7 +741,9 @@ public java.util.List getThreatTypesList( * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getThreatTypesCount() { return threatTypes_.size(); @@ -741,7 +755,9 @@ public int getThreatTypesCount() { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index) { return threatTypes_converter_.convert(threatTypes_.get(index)); @@ -753,7 +769,9 @@ public com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index) { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setThreatTypes(int index, com.google.webrisk.v1beta1.ThreatType value) { if (value == null) { @@ -771,7 +789,9 @@ public Builder setThreatTypes(int index, com.google.webrisk.v1beta1.ThreatType v * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addThreatTypes(com.google.webrisk.v1beta1.ThreatType value) { if (value == null) { @@ -789,7 +809,9 @@ public Builder addThreatTypes(com.google.webrisk.v1beta1.ThreatType value) { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllThreatTypes( java.lang.Iterable values) { @@ -807,7 +829,9 @@ public Builder addAllThreatTypes( * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearThreatTypes() { threatTypes_ = java.util.Collections.emptyList(); @@ -822,7 +846,9 @@ public Builder clearThreatTypes() { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getThreatTypesValueList() { return java.util.Collections.unmodifiableList(threatTypes_); @@ -834,7 +860,9 @@ public java.util.List getThreatTypesValueList() { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getThreatTypesValue(int index) { return threatTypes_.get(index); @@ -846,7 +874,9 @@ public int getThreatTypesValue(int index) { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setThreatTypesValue(int index, int value) { ensureThreatTypesIsMutable(); @@ -861,7 +891,9 @@ public Builder setThreatTypesValue(int index, int value) { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addThreatTypesValue(int value) { ensureThreatTypesIsMutable(); @@ -876,7 +908,9 @@ public Builder addThreatTypesValue(int value) { * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllThreatTypesValue(java.lang.Iterable values) { ensureThreatTypesIsMutable(); diff --git a/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisRequestOrBuilder.java index f9a50618b673..a4955d36d2c9 100644 --- a/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisRequestOrBuilder.java @@ -12,20 +12,20 @@ public interface SearchUrisRequestOrBuilder * * *
-   * The URI to be checked for matches.
+   * Required. The URI to be checked for matches.
    * 
* - * string uri = 1; + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; */ java.lang.String getUri(); /** * * *
-   * The URI to be checked for matches.
+   * Required. The URI to be checked for matches.
    * 
* - * string uri = 1; + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.ByteString getUriBytes(); @@ -36,7 +36,9 @@ public interface SearchUrisRequestOrBuilder * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ java.util.List getThreatTypesList(); /** @@ -46,7 +48,9 @@ public interface SearchUrisRequestOrBuilder * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ int getThreatTypesCount(); /** @@ -56,7 +60,9 @@ public interface SearchUrisRequestOrBuilder * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index); /** @@ -66,7 +72,9 @@ public interface SearchUrisRequestOrBuilder * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ java.util.List getThreatTypesValueList(); /** @@ -76,7 +84,9 @@ public interface SearchUrisRequestOrBuilder * Required. The ThreatLists to search in. * * - * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2; + * + * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ int getThreatTypesValue(int index); } diff --git a/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/WebRiskProto.java b/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/WebRiskProto.java index 84fc047a9a8b..2ed42bd54dfd 100644 --- a/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/WebRiskProto.java +++ b/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/WebRiskProto.java @@ -83,84 +83,90 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n*google/cloud/webrisk/v1beta1/webrisk.p" + "roto\022\034google.cloud.webrisk.v1beta1\032\034goog" - + "le/api/annotations.proto\032\037google/protobu" - + "f/timestamp.proto\"\350\002\n\034ComputeThreatListD" - + "iffRequest\022=\n\013threat_type\030\001 \001(\0162(.google" - + ".cloud.webrisk.v1beta1.ThreatType\022\025\n\rver" - + "sion_token\030\002 \001(\014\022[\n\013constraints\030\003 \001(\0132F." - + "google.cloud.webrisk.v1beta1.ComputeThre" - + "atListDiffRequest.Constraints\032\224\001\n\013Constr" - + "aints\022\030\n\020max_diff_entries\030\001 \001(\005\022\034\n\024max_d" - + "atabase_entries\030\002 \001(\005\022M\n\026supported_compr" - + "essions\030\003 \003(\0162-.google.cloud.webrisk.v1b" - + "eta1.CompressionType\"\232\004\n\035ComputeThreatLi" - + "stDiffResponse\022_\n\rresponse_type\030\004 \001(\0162H." - + "google.cloud.webrisk.v1beta1.ComputeThre" - + "atListDiffResponse.ResponseType\022E\n\taddit" - + "ions\030\005 \001(\01322.google.cloud.webrisk.v1beta" - + "1.ThreatEntryAdditions\022C\n\010removals\030\006 \001(\013" - + "21.google.cloud.webrisk.v1beta1.ThreatEn" - + "tryRemovals\022\031\n\021new_version_token\030\007 \001(\014\022V" - + "\n\010checksum\030\010 \001(\0132D.google.cloud.webrisk." - + "v1beta1.ComputeThreatListDiffResponse.Ch" - + "ecksum\0229\n\025recommended_next_diff\030\002 \001(\0132\032." - + "google.protobuf.Timestamp\032\032\n\010Checksum\022\016\n" - + "\006sha256\030\001 \001(\014\"B\n\014ResponseType\022\035\n\031RESPONS" - + "E_TYPE_UNSPECIFIED\020\000\022\010\n\004DIFF\020\001\022\t\n\005RESET\020" - + "\002\"`\n\021SearchUrisRequest\022\013\n\003uri\030\001 \001(\t\022>\n\014t" - + "hreat_types\030\002 \003(\0162(.google.cloud.webrisk" - + ".v1beta1.ThreatType\"\336\001\n\022SearchUrisRespon" - + "se\022J\n\006threat\030\001 \001(\0132:.google.cloud.webris" - + "k.v1beta1.SearchUrisResponse.ThreatUri\032|" - + "\n\tThreatUri\022>\n\014threat_types\030\001 \003(\0162(.goog" - + "le.cloud.webrisk.v1beta1.ThreatType\022/\n\013e" - + "xpire_time\030\002 \001(\0132\032.google.protobuf.Times" - + "tamp\"j\n\023SearchHashesRequest\022\023\n\013hash_pref" - + "ix\030\001 \001(\014\022>\n\014threat_types\030\002 \003(\0162(.google." - + "cloud.webrisk.v1beta1.ThreatType\"\256\002\n\024Sea" - + "rchHashesResponse\022N\n\007threats\030\001 \003(\0132=.goo" - + "gle.cloud.webrisk.v1beta1.SearchHashesRe" - + "sponse.ThreatHash\0228\n\024negative_expire_tim" - + "e\030\002 \001(\0132\032.google.protobuf.Timestamp\032\213\001\n\n" - + "ThreatHash\022>\n\014threat_types\030\001 \003(\0162(.googl" - + "e.cloud.webrisk.v1beta1.ThreatType\022\014\n\004ha" - + "sh\030\002 \001(\014\022/\n\013expire_time\030\003 \001(\0132\032.google.p" - + "rotobuf.Timestamp\"\231\001\n\024ThreatEntryAdditio" - + "ns\022;\n\nraw_hashes\030\001 \003(\0132\'.google.cloud.we" - + "brisk.v1beta1.RawHashes\022D\n\013rice_hashes\030\002" - + " \001(\0132/.google.cloud.webrisk.v1beta1.Rice" - + "DeltaEncoding\"\233\001\n\023ThreatEntryRemovals\022=\n" - + "\013raw_indices\030\001 \001(\0132(.google.cloud.webris" - + "k.v1beta1.RawIndices\022E\n\014rice_indices\030\002 \001" - + "(\0132/.google.cloud.webrisk.v1beta1.RiceDe" - + "ltaEncoding\"\035\n\nRawIndices\022\017\n\007indices\030\001 \003" - + "(\005\"4\n\tRawHashes\022\023\n\013prefix_size\030\001 \001(\005\022\022\n\n" - + "raw_hashes\030\002 \001(\014\"k\n\021RiceDeltaEncoding\022\023\n" - + "\013first_value\030\001 \001(\003\022\026\n\016rice_parameter\030\002 \001" - + "(\005\022\023\n\013entry_count\030\003 \001(\005\022\024\n\014encoded_data\030" - + "\004 \001(\014*e\n\nThreatType\022\033\n\027THREAT_TYPE_UNSPE" - + "CIFIED\020\000\022\013\n\007MALWARE\020\001\022\026\n\022SOCIAL_ENGINEER" - + "ING\020\002\022\025\n\021UNWANTED_SOFTWARE\020\003*F\n\017Compress" - + "ionType\022 \n\034COMPRESSION_TYPE_UNSPECIFIED\020" - + "\000\022\007\n\003RAW\020\001\022\010\n\004RICE\020\0022\374\003\n\025WebRiskServiceV" - + "1Beta1\022\272\001\n\025ComputeThreatListDiff\022:.googl" - + "e.cloud.webrisk.v1beta1.ComputeThreatLis" - + "tDiffRequest\032;.google.cloud.webrisk.v1be" - + "ta1.ComputeThreatListDiffResponse\"(\202\323\344\223\002" - + "\"\022 /v1beta1/threatLists:computeDiff\022\215\001\n\n" - + "SearchUris\022/.google.cloud.webrisk.v1beta" - + "1.SearchUrisRequest\0320.google.cloud.webri" - + "sk.v1beta1.SearchUrisResponse\"\034\202\323\344\223\002\026\022\024/" - + "v1beta1/uris:search\022\225\001\n\014SearchHashes\0221.g" - + "oogle.cloud.webrisk.v1beta1.SearchHashes" - + "Request\0322.google.cloud.webrisk.v1beta1.S" - + "earchHashesResponse\"\036\202\323\344\223\002\030\022\026/v1beta1/ha" - + "shes:searchB\266\001\n\032com.google.webrisk.v1bet" - + "a1B\014WebRiskProtoP\001ZCgoogle.golang.org/ge" - + "nproto/googleapis/cloud/webrisk/v1beta1;" - + "webrisk\242\002\004GCWR\252\002\034Google.Cloud.WebRisk.V1" - + "Beta1\312\002\034Google\\Cloud\\WebRisk\\V1beta1b\006pr" - + "oto3" + + "le/api/annotations.proto\032\027google/api/cli" + + "ent.proto\032\037google/api/field_behavior.pro" + + "to\032\037google/protobuf/timestamp.proto\"\362\002\n\034" + + "ComputeThreatListDiffRequest\022B\n\013threat_t" + + "ype\030\001 \001(\0162(.google.cloud.webrisk.v1beta1" + + ".ThreatTypeB\003\340A\002\022\025\n\rversion_token\030\002 \001(\014\022" + + "`\n\013constraints\030\003 \001(\0132F.google.cloud.webr" + + "isk.v1beta1.ComputeThreatListDiffRequest" + + ".ConstraintsB\003\340A\002\032\224\001\n\013Constraints\022\030\n\020max" + + "_diff_entries\030\001 \001(\005\022\034\n\024max_database_entr" + + "ies\030\002 \001(\005\022M\n\026supported_compressions\030\003 \003(" + + "\0162-.google.cloud.webrisk.v1beta1.Compres" + + "sionType\"\232\004\n\035ComputeThreatListDiffRespon" + + "se\022_\n\rresponse_type\030\004 \001(\0162H.google.cloud" + + ".webrisk.v1beta1.ComputeThreatListDiffRe" + + "sponse.ResponseType\022E\n\tadditions\030\005 \001(\01322" + + ".google.cloud.webrisk.v1beta1.ThreatEntr" + + "yAdditions\022C\n\010removals\030\006 \001(\01321.google.cl" + + "oud.webrisk.v1beta1.ThreatEntryRemovals\022" + + "\031\n\021new_version_token\030\007 \001(\014\022V\n\010checksum\030\010" + + " \001(\0132D.google.cloud.webrisk.v1beta1.Comp" + + "uteThreatListDiffResponse.Checksum\0229\n\025re" + + "commended_next_diff\030\002 \001(\0132\032.google.proto" + + "buf.Timestamp\032\032\n\010Checksum\022\016\n\006sha256\030\001 \001(" + + "\014\"B\n\014ResponseType\022\035\n\031RESPONSE_TYPE_UNSPE" + + "CIFIED\020\000\022\010\n\004DIFF\020\001\022\t\n\005RESET\020\002\"j\n\021SearchU" + + "risRequest\022\020\n\003uri\030\001 \001(\tB\003\340A\002\022C\n\014threat_t" + + "ypes\030\002 \003(\0162(.google.cloud.webrisk.v1beta" + + "1.ThreatTypeB\003\340A\002\"\336\001\n\022SearchUrisResponse" + + "\022J\n\006threat\030\001 \001(\0132:.google.cloud.webrisk." + + "v1beta1.SearchUrisResponse.ThreatUri\032|\n\t" + + "ThreatUri\022>\n\014threat_types\030\001 \003(\0162(.google" + + ".cloud.webrisk.v1beta1.ThreatType\022/\n\013exp" + + "ire_time\030\002 \001(\0132\032.google.protobuf.Timesta" + + "mp\"o\n\023SearchHashesRequest\022\023\n\013hash_prefix" + + "\030\001 \001(\014\022C\n\014threat_types\030\002 \003(\0162(.google.cl" + + "oud.webrisk.v1beta1.ThreatTypeB\003\340A\002\"\256\002\n\024" + + "SearchHashesResponse\022N\n\007threats\030\001 \003(\0132=." + + "google.cloud.webrisk.v1beta1.SearchHashe" + + "sResponse.ThreatHash\0228\n\024negative_expire_" + + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\032\213" + + "\001\n\nThreatHash\022>\n\014threat_types\030\001 \003(\0162(.go" + + "ogle.cloud.webrisk.v1beta1.ThreatType\022\014\n" + + "\004hash\030\002 \001(\014\022/\n\013expire_time\030\003 \001(\0132\032.googl" + + "e.protobuf.Timestamp\"\231\001\n\024ThreatEntryAddi" + + "tions\022;\n\nraw_hashes\030\001 \003(\0132\'.google.cloud" + + ".webrisk.v1beta1.RawHashes\022D\n\013rice_hashe" + + "s\030\002 \001(\0132/.google.cloud.webrisk.v1beta1.R" + + "iceDeltaEncoding\"\233\001\n\023ThreatEntryRemovals" + + "\022=\n\013raw_indices\030\001 \001(\0132(.google.cloud.web" + + "risk.v1beta1.RawIndices\022E\n\014rice_indices\030" + + "\002 \001(\0132/.google.cloud.webrisk.v1beta1.Ric" + + "eDeltaEncoding\"\035\n\nRawIndices\022\017\n\007indices\030" + + "\001 \003(\005\"4\n\tRawHashes\022\023\n\013prefix_size\030\001 \001(\005\022" + + "\022\n\nraw_hashes\030\002 \001(\014\"k\n\021RiceDeltaEncoding" + + "\022\023\n\013first_value\030\001 \001(\003\022\026\n\016rice_parameter\030" + + "\002 \001(\005\022\023\n\013entry_count\030\003 \001(\005\022\024\n\014encoded_da" + + "ta\030\004 \001(\014*e\n\nThreatType\022\033\n\027THREAT_TYPE_UN" + + "SPECIFIED\020\000\022\013\n\007MALWARE\020\001\022\026\n\022SOCIAL_ENGIN" + + "EERING\020\002\022\025\n\021UNWANTED_SOFTWARE\020\003*F\n\017Compr" + + "essionType\022 \n\034COMPRESSION_TYPE_UNSPECIFI" + + "ED\020\000\022\007\n\003RAW\020\001\022\010\n\004RICE\020\0022\236\005\n\025WebRiskServi" + + "ceV1Beta1\022\342\001\n\025ComputeThreatListDiff\022:.go" + + "ogle.cloud.webrisk.v1beta1.ComputeThreat" + + "ListDiffRequest\032;.google.cloud.webrisk.v" + + "1beta1.ComputeThreatListDiffResponse\"P\202\323" + + "\344\223\002\"\022 /v1beta1/threatLists:computeDiff\332A" + + "%threat_type,version_token,constraints\022\240" + + "\001\n\nSearchUris\022/.google.cloud.webrisk.v1b" + + "eta1.SearchUrisRequest\0320.google.cloud.we" + + "brisk.v1beta1.SearchUrisResponse\"/\202\323\344\223\002\026" + + "\022\024/v1beta1/uris:search\332A\020uri,threat_type" + + "s\022\260\001\n\014SearchHashes\0221.google.cloud.webris" + + "k.v1beta1.SearchHashesRequest\0322.google.c" + + "loud.webrisk.v1beta1.SearchHashesRespons" + + "e\"9\202\323\344\223\002\030\022\026/v1beta1/hashes:search\332A\030hash" + + "_prefix,threat_types\032J\312A\026webrisk.googlea" + + "pis.com\322A.https://www.googleapis.com/aut" + + "h/cloud-platformB\266\001\n\032com.google.webrisk." + + "v1beta1B\014WebRiskProtoP\001ZCgoogle.golang.o" + + "rg/genproto/googleapis/cloud/webrisk/v1b" + + "eta1;webrisk\242\002\004GCWR\252\002\034Google.Cloud.WebRi" + + "sk.V1Beta1\312\002\034Google\\Cloud\\WebRisk\\V1beta" + + "1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -174,6 +180,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }, assigner); @@ -312,10 +320,16 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( }); 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); 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.protobuf.TimestampProto.getDescriptor(); } diff --git a/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/proto/google/cloud/webrisk/v1beta1/webrisk.proto b/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/proto/google/cloud/webrisk/v1beta1/webrisk.proto index c6b5f7c90ce8..7f8021d16b3e 100644 --- a/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/proto/google/cloud/webrisk/v1beta1/webrisk.proto +++ b/google-api-grpc/proto-google-cloud-webrisk-v1beta1/src/main/proto/google/cloud/webrisk/v1beta1/webrisk.proto @@ -18,6 +18,8 @@ syntax = "proto3"; package google.cloud.webrisk.v1beta1; import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.WebRisk.V1Beta1"; @@ -31,12 +33,15 @@ option php_namespace = "Google\\Cloud\\WebRisk\\V1beta1"; // Web Risk v1beta1 API defines an interface to detect malicious URLs on your // website and in client applications. service WebRiskServiceV1Beta1 { + option (google.api.default_host) = "webrisk.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + // Gets the most recent threat list diffs. - rpc ComputeThreatListDiff(ComputeThreatListDiffRequest) - returns (ComputeThreatListDiffResponse) { + rpc ComputeThreatListDiff(ComputeThreatListDiffRequest) returns (ComputeThreatListDiffResponse) { option (google.api.http) = { get: "/v1beta1/threatLists:computeDiff" }; + option (google.api.method_signature) = "threat_type,version_token,constraints"; } // This method is used to check whether a URI is on a given threatList. @@ -44,6 +49,7 @@ service WebRiskServiceV1Beta1 { option (google.api.http) = { get: "/v1beta1/uris:search" }; + option (google.api.method_signature) = "uri,threat_types"; } // Gets the full hashes that match the requested hash prefix. @@ -55,6 +61,7 @@ service WebRiskServiceV1Beta1 { option (google.api.http) = { get: "/v1beta1/hashes:search" }; + option (google.api.method_signature) = "hash_prefix,threat_types"; } } @@ -76,15 +83,15 @@ message ComputeThreatListDiffRequest { repeated CompressionType supported_compressions = 3; } - // Required. The ThreatList to update. - ThreatType threat_type = 1; + // The ThreatList to update. + ThreatType threat_type = 1 [(google.api.field_behavior) = REQUIRED]; // The current version token of the client for the requested list (the // client version that was received from the last successful diff). bytes version_token = 2; - // The constraints associated with this request. - Constraints constraints = 3; + // Required. The constraints associated with this request. + Constraints constraints = 3 [(google.api.field_behavior) = REQUIRED]; } message ComputeThreatListDiffResponse { @@ -109,7 +116,7 @@ message ComputeThreatListDiffResponse { RESET = 2; } - // The type of response. This may indicate that an action is required by the + // The type of response. This may indicate that an action must be taken by the // client when the response is received. ResponseType response_type = 4; @@ -138,11 +145,11 @@ message ComputeThreatListDiffResponse { // Request to check URI entries against threatLists. message SearchUrisRequest { - // The URI to be checked for matches. - string uri = 1; + // Required. The URI to be checked for matches. + string uri = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The ThreatLists to search in. - repeated ThreatType threat_types = 2; + repeated ThreatType threat_types = 2 [(google.api.field_behavior) = REQUIRED]; } message SearchUrisResponse { @@ -167,7 +174,7 @@ message SearchHashesRequest { bytes hash_prefix = 1; // Required. The ThreatLists to search in. - repeated ThreatType threat_types = 2; + repeated ThreatType threat_types = 2 [(google.api.field_behavior) = REQUIRED]; } message SearchHashesResponse { diff --git a/google-cloud-clients/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/WebRiskServiceV1Beta1Client.java b/google-cloud-clients/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/WebRiskServiceV1Beta1Client.java index 42b6e048b8b9..ab73c659846b 100644 --- a/google-cloud-clients/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/WebRiskServiceV1Beta1Client.java +++ b/google-cloud-clients/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/WebRiskServiceV1Beta1Client.java @@ -172,10 +172,10 @@ public WebRiskServiceV1Beta1Stub getStub() { * } *
* - * @param threatType Required. The ThreatList to update. + * @param threatType The ThreatList to update. * @param versionToken The current version token of the client for the requested list (the client * version that was received from the last successful diff). - * @param constraints The constraints associated with this request. + * @param constraints Required. The constraints associated with this request. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ComputeThreatListDiffResponse computeThreatListDiff( @@ -257,7 +257,7 @@ public final ComputeThreatListDiffResponse computeThreatListDiff( * } *
* - * @param uri The URI to be checked for matches. + * @param uri Required. The URI to be checked for matches. * @param threatTypes Required. The ThreatLists to search in. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ diff --git a/google-cloud-clients/google-cloud-webrisk/synth.metadata b/google-cloud-clients/google-cloud-webrisk/synth.metadata index df393c3b8e46..3cd8950a6cef 100644 --- a/google-cloud-clients/google-cloud-webrisk/synth.metadata +++ b/google-cloud-clients/google-cloud-webrisk/synth.metadata @@ -1,18 +1,19 @@ { - "updateTime": "2019-09-10T08:02:15.636409Z", + "updateTime": "2019-10-09T07:59:25.711019Z", "sources": [ { "generator": { "name": "artman", - "version": "0.36.2", - "dockerImage": "googleapis/artman@sha256:0e6f3a668cd68afc768ecbe08817cf6e56a0e64fcbdb1c58c3b97492d12418a1" + "version": "0.38.0", + "dockerImage": "googleapis/artman@sha256:0d2f8d429110aeb8d82df6550ef4ede59d40df9062d260a1580fce688b0512bf" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "26e189ad03ba63591fb26eecb6aaade7ad39f57a" + "sha": "2dec8f98383214ad4fafa7680eb0cc46d6531976", + "internalRef": "273619851" } } ],