From 29aca28ecf4cd3ca9f7c30dc7da273269d83e1e8 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 26 Dec 2019 09:53:08 -0800 Subject: [PATCH] fix: use Key directly rather than a resource name for Key (#25) --- ...captchaEnterpriseServiceV1Beta1Client.java | 8 +- .../v1beta1/AndroidKeySettings.java | 41 ++ .../v1beta1/AndroidKeySettingsOrBuilder.java | 10 + .../v1beta1/AnnotateAssessmentRequest.java | 49 +- .../AnnotateAssessmentRequestOrBuilder.java | 8 + .../v1beta1/AnnotateAssessmentResponse.java | 6 + .../v1beta1/Assessment.java | 130 +++++- .../v1beta1/AssessmentName.java | 2 +- .../v1beta1/AssessmentOrBuilder.java | 26 ++ .../v1beta1/CreateAssessmentRequest.java | 31 +- .../CreateAssessmentRequestOrBuilder.java | 8 + .../v1beta1/CreateKeyRequest.java | 31 +- .../v1beta1/CreateKeyRequestOrBuilder.java | 8 + .../v1beta1/DeleteKeyRequest.java | 23 +- .../v1beta1/DeleteKeyRequestOrBuilder.java | 4 + .../recaptchaenterprise/v1beta1/Event.java | 87 +++- .../v1beta1/EventOrBuilder.java | 20 + .../v1beta1/GetKeyRequest.java | 23 +- .../v1beta1/GetKeyRequestOrBuilder.java | 4 + .../v1beta1/IOSKeySettings.java | 41 ++ .../v1beta1/IOSKeySettingsOrBuilder.java | 10 + .../recaptchaenterprise/v1beta1/Key.java | 74 ++- .../recaptchaenterprise/v1beta1/KeyName.java | 2 +- .../v1beta1/KeyOrBuilder.java | 20 + .../v1beta1/ListKeysRequest.java | 48 +- .../v1beta1/ListKeysRequestOrBuilder.java | 10 + .../v1beta1/ListKeysResponse.java | 25 +- .../v1beta1/ListKeysResponseOrBuilder.java | 4 + .../v1beta1/ProjectName.java | 2 +- .../v1beta1/RecaptchaEnterpriseProto.java | 181 ++++---- .../v1beta1/TokenProperties.java | 82 +++- .../v1beta1/TokenPropertiesOrBuilder.java | 18 + .../v1beta1/UpdateKeyRequest.java | 47 +- .../v1beta1/UpdateKeyRequestOrBuilder.java | 14 +- .../v1beta1/WebKeySettings.java | 134 +++++- .../v1beta1/WebKeySettingsOrBuilder.java | 22 + .../v1beta1/recaptchaenterprise.proto | 7 +- synth.metadata | 436 +++++++++++++++++- 38 files changed, 1518 insertions(+), 178 deletions(-) diff --git a/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java b/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java index ea728ad4..1255b452 100644 --- a/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java +++ b/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java @@ -571,9 +571,9 @@ public final UnaryCallable getKeyCallable() { * *

    * try (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = RecaptchaEnterpriseServiceV1Beta1Client.create()) {
-   *   KeyName key = KeyName.of("[PROJECT]", "[KEY]");
+   *   Key key = Key.newBuilder().build();
    *   UpdateKeyRequest request = UpdateKeyRequest.newBuilder()
-   *     .setKey(key.toString())
+   *     .setKey(key)
    *     .build();
    *   Key response = recaptchaEnterpriseServiceV1Beta1Client.updateKey(request);
    * }
@@ -594,9 +594,9 @@ public final Key updateKey(UpdateKeyRequest request) {
    *
    * 

    * try (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = RecaptchaEnterpriseServiceV1Beta1Client.create()) {
-   *   KeyName key = KeyName.of("[PROJECT]", "[KEY]");
+   *   Key key = Key.newBuilder().build();
    *   UpdateKeyRequest request = UpdateKeyRequest.newBuilder()
-   *     .setKey(key.toString())
+   *     .setKey(key)
    *     .build();
    *   ApiFuture<Key> future = recaptchaEnterpriseServiceV1Beta1Client.updateKeyCallable().futureCall(request);
    *   // Do something
diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AndroidKeySettings.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AndroidKeySettings.java
index e7921308..118d08c1 100644
--- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AndroidKeySettings.java
+++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AndroidKeySettings.java
@@ -41,6 +41,12 @@ private AndroidKeySettings() {
     allowedPackageNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
   }
 
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new AndroidKeySettings();
+  }
+
   @java.lang.Override
   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
@@ -123,6 +129,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string allowed_package_names = 1; + * + * @return A list containing the allowedPackageNames. */ public com.google.protobuf.ProtocolStringList getAllowedPackageNamesList() { return allowedPackageNames_; @@ -136,6 +144,8 @@ public com.google.protobuf.ProtocolStringList getAllowedPackageNamesList() { *
* * repeated string allowed_package_names = 1; + * + * @return The count of allowedPackageNames. */ public int getAllowedPackageNamesCount() { return allowedPackageNames_.size(); @@ -149,6 +159,9 @@ public int getAllowedPackageNamesCount() { * * * repeated string allowed_package_names = 1; + * + * @param index The index of the element to return. + * @return The allowedPackageNames at the given index. */ public java.lang.String getAllowedPackageNames(int index) { return allowedPackageNames_.get(index); @@ -162,6 +175,9 @@ public java.lang.String getAllowedPackageNames(int index) { * * * repeated string allowed_package_names = 1; + * + * @param index The index of the value to return. + * @return The bytes of the allowedPackageNames at the given index. */ public com.google.protobuf.ByteString getAllowedPackageNamesBytes(int index) { return allowedPackageNames_.getByteString(index); @@ -524,6 +540,8 @@ private void ensureAllowedPackageNamesIsMutable() { * * * repeated string allowed_package_names = 1; + * + * @return A list containing the allowedPackageNames. */ public com.google.protobuf.ProtocolStringList getAllowedPackageNamesList() { return allowedPackageNames_.getUnmodifiableView(); @@ -537,6 +555,8 @@ public com.google.protobuf.ProtocolStringList getAllowedPackageNamesList() { * * * repeated string allowed_package_names = 1; + * + * @return The count of allowedPackageNames. */ public int getAllowedPackageNamesCount() { return allowedPackageNames_.size(); @@ -550,6 +570,9 @@ public int getAllowedPackageNamesCount() { * * * repeated string allowed_package_names = 1; + * + * @param index The index of the element to return. + * @return The allowedPackageNames at the given index. */ public java.lang.String getAllowedPackageNames(int index) { return allowedPackageNames_.get(index); @@ -563,6 +586,9 @@ public java.lang.String getAllowedPackageNames(int index) { * * * repeated string allowed_package_names = 1; + * + * @param index The index of the value to return. + * @return The bytes of the allowedPackageNames at the given index. */ public com.google.protobuf.ByteString getAllowedPackageNamesBytes(int index) { return allowedPackageNames_.getByteString(index); @@ -576,6 +602,10 @@ public com.google.protobuf.ByteString getAllowedPackageNamesBytes(int index) { * * * repeated string allowed_package_names = 1; + * + * @param index The index to set the value at. + * @param value The allowedPackageNames to set. + * @return This builder for chaining. */ public Builder setAllowedPackageNames(int index, java.lang.String value) { if (value == null) { @@ -595,6 +625,9 @@ public Builder setAllowedPackageNames(int index, java.lang.String value) { * * * repeated string allowed_package_names = 1; + * + * @param value The allowedPackageNames to add. + * @return This builder for chaining. */ public Builder addAllowedPackageNames(java.lang.String value) { if (value == null) { @@ -614,6 +647,9 @@ public Builder addAllowedPackageNames(java.lang.String value) { * * * repeated string allowed_package_names = 1; + * + * @param values The allowedPackageNames to add. + * @return This builder for chaining. */ public Builder addAllAllowedPackageNames(java.lang.Iterable values) { ensureAllowedPackageNamesIsMutable(); @@ -630,6 +666,8 @@ public Builder addAllAllowedPackageNames(java.lang.Iterable va * * * repeated string allowed_package_names = 1; + * + * @return This builder for chaining. */ public Builder clearAllowedPackageNames() { allowedPackageNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -646,6 +684,9 @@ public Builder clearAllowedPackageNames() { * * * repeated string allowed_package_names = 1; + * + * @param value The bytes of the allowedPackageNames to add. + * @return This builder for chaining. */ public Builder addAllowedPackageNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AndroidKeySettingsOrBuilder.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AndroidKeySettingsOrBuilder.java index ad1400f1..fe34ffbd 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AndroidKeySettingsOrBuilder.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AndroidKeySettingsOrBuilder.java @@ -32,6 +32,8 @@ public interface AndroidKeySettingsOrBuilder * * * repeated string allowed_package_names = 1; + * + * @return A list containing the allowedPackageNames. */ java.util.List getAllowedPackageNamesList(); /** @@ -43,6 +45,8 @@ public interface AndroidKeySettingsOrBuilder * * * repeated string allowed_package_names = 1; + * + * @return The count of allowedPackageNames. */ int getAllowedPackageNamesCount(); /** @@ -54,6 +58,9 @@ public interface AndroidKeySettingsOrBuilder * * * repeated string allowed_package_names = 1; + * + * @param index The index of the element to return. + * @return The allowedPackageNames at the given index. */ java.lang.String getAllowedPackageNames(int index); /** @@ -65,6 +72,9 @@ public interface AndroidKeySettingsOrBuilder * * * repeated string allowed_package_names = 1; + * + * @param index The index of the value to return. + * @return The bytes of the allowedPackageNames at the given index. */ com.google.protobuf.ByteString getAllowedPackageNamesBytes(int index); } diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java index f65927f4..39008cfa 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java @@ -42,6 +42,12 @@ private AnnotateAssessmentRequest() { annotation_ = 0; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnnotateAssessmentRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private AnnotateAssessmentRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -197,12 +202,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static Annotation valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Annotation forNumber(int value) { switch (value) { case 0: @@ -275,6 +288,8 @@ private Annotation(int value) { * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -298,6 +313,8 @@ public java.lang.String getName() { * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -323,6 +340,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The enum numeric value on the wire for annotation. */ public int getAnnotationValue() { return annotation_; @@ -337,6 +356,8 @@ public int getAnnotationValue() { * * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The annotation. */ public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation getAnnotation() { @@ -705,6 +726,8 @@ public Builder mergeFrom( * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -728,6 +751,8 @@ public java.lang.String getName() { * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -751,6 +776,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -772,6 +800,8 @@ public Builder setName(java.lang.String value) { * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return This builder for chaining. */ public Builder clearName() { @@ -790,6 +820,9 @@ public Builder clearName() { * * 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. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -813,6 +846,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The enum numeric value on the wire for annotation. */ public int getAnnotationValue() { return annotation_; @@ -827,6 +862,9 @@ public int getAnnotationValue() { * * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param value The enum numeric value on the wire for annotation to set. + * @return This builder for chaining. */ public Builder setAnnotationValue(int value) { annotation_ = value; @@ -843,6 +881,8 @@ public Builder setAnnotationValue(int value) { * * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The annotation. */ public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation getAnnotation() { @@ -864,6 +904,9 @@ public Builder setAnnotationValue(int value) { * * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param value The annotation to set. + * @return This builder for chaining. */ public Builder setAnnotation( com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation value) { @@ -885,6 +928,8 @@ public Builder setAnnotation( * * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return This builder for chaining. */ public Builder clearAnnotation() { diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java index 560a4f0a..a4753707 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java @@ -34,6 +34,8 @@ public interface AnnotateAssessmentRequestOrBuilder * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The name. */ java.lang.String getName(); /** @@ -47,6 +49,8 @@ public interface AnnotateAssessmentRequestOrBuilder * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -60,6 +64,8 @@ public interface AnnotateAssessmentRequestOrBuilder * * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The enum numeric value on the wire for annotation. */ int getAnnotationValue(); /** @@ -72,6 +78,8 @@ public interface AnnotateAssessmentRequestOrBuilder * * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The annotation. */ com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation getAnnotation(); } diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponse.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponse.java index 1b1d5587..f85160d7 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponse.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponse.java @@ -39,6 +39,12 @@ private AnnotateAssessmentResponse(com.google.protobuf.GeneratedMessageV3.Builde private AnnotateAssessmentResponse() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnnotateAssessmentResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Assessment.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Assessment.java index 6f483b31..faeb1782 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Assessment.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Assessment.java @@ -42,6 +42,12 @@ private Assessment() { reasons_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Assessment(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -114,9 +120,9 @@ private Assessment( case 40: { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000010) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { reasons_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; + mutable_bitField0_ |= 0x00000001; } reasons_.add(rawValue); break; @@ -127,9 +133,9 @@ private Assessment( int oldLimit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000010) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { reasons_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; + mutable_bitField0_ |= 0x00000001; } reasons_.add(rawValue); } @@ -150,7 +156,7 @@ private Assessment( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000010) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { reasons_ = java.util.Collections.unmodifiableList(reasons_); } this.unknownFields = unknownFields.build(); @@ -320,12 +326,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static ClassificationReason valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static ClassificationReason forNumber(int value) { switch (value) { case 0: @@ -394,7 +408,6 @@ private ClassificationReason(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason) } - private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -406,6 +419,8 @@ private ClassificationReason(int value) { * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -427,6 +442,8 @@ public java.lang.String getName() { * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -450,6 +467,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * * .google.cloud.recaptchaenterprise.v1beta1.Event event = 2; + * + * @return Whether the event field is set. */ public boolean hasEvent() { return event_ != null; @@ -462,6 +481,8 @@ public boolean hasEvent() { * * * .google.cloud.recaptchaenterprise.v1beta1.Event event = 2; + * + * @return The event. */ public com.google.recaptchaenterprise.v1beta1.Event getEvent() { return event_ == null @@ -493,6 +514,8 @@ public com.google.recaptchaenterprise.v1beta1.EventOrBuilder getEventOrBuilder() * * * float score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. */ public float getScore() { return score_; @@ -510,6 +533,8 @@ public float getScore() { * * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return Whether the tokenProperties field is set. */ public boolean hasTokenProperties() { return tokenProperties_ != null; @@ -524,6 +549,8 @@ public boolean hasTokenProperties() { * * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The tokenProperties. */ public com.google.recaptchaenterprise.v1beta1.TokenProperties getTokenProperties() { return tokenProperties_ == null @@ -576,6 +603,8 @@ public com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason co * * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return A list containing the reasons. */ public java.util.List getReasonsList() { @@ -593,6 +622,8 @@ public com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason co * * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The reasons to add. */ public int getReasonsCount() { return reasons_.size(); @@ -607,6 +638,9 @@ public int getReasonsCount() { * * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param index The index of the element to return. + * @return The reasons at the given index. */ public com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason getReasons( int index) { @@ -622,6 +656,8 @@ public com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason ge * * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return A list containing the enum numeric values on the wire for reasons. */ public java.util.List getReasonsValueList() { return reasons_; @@ -636,6 +672,9 @@ public java.util.List getReasonsValueList() { * * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of reasons at the given index. */ public int getReasonsValue(int index) { return reasons_.get(index); @@ -927,7 +966,7 @@ public Builder clear() { tokenPropertiesBuilder_ = null; } reasons_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -956,7 +995,6 @@ public com.google.recaptchaenterprise.v1beta1.Assessment buildPartial() { com.google.recaptchaenterprise.v1beta1.Assessment result = new com.google.recaptchaenterprise.v1beta1.Assessment(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.name_ = name_; if (eventBuilder_ == null) { result.event_ = event_; @@ -969,12 +1007,11 @@ public com.google.recaptchaenterprise.v1beta1.Assessment buildPartial() { } else { result.tokenProperties_ = tokenPropertiesBuilder_.build(); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { reasons_ = java.util.Collections.unmodifiableList(reasons_); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000001); } result.reasons_ = reasons_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1041,7 +1078,7 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.Assessment other if (!other.reasons_.isEmpty()) { if (reasons_.isEmpty()) { reasons_ = other.reasons_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureReasonsIsMutable(); reasons_.addAll(other.reasons_); @@ -1090,6 +1127,8 @@ public Builder mergeFrom( * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1111,6 +1150,8 @@ public java.lang.String getName() { * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1132,6 +1173,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1151,6 +1195,8 @@ public Builder setName(java.lang.String value) { * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1167,6 +1213,9 @@ public Builder clearName() { * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1193,6 +1242,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * .google.cloud.recaptchaenterprise.v1beta1.Event event = 2; + * + * @return Whether the event field is set. */ public boolean hasEvent() { return eventBuilder_ != null || event_ != null; @@ -1205,6 +1256,8 @@ public boolean hasEvent() { * * * .google.cloud.recaptchaenterprise.v1beta1.Event event = 2; + * + * @return The event. */ public com.google.recaptchaenterprise.v1beta1.Event getEvent() { if (eventBuilder_ == null) { @@ -1371,6 +1424,8 @@ public com.google.recaptchaenterprise.v1beta1.EventOrBuilder getEventOrBuilder() * * * float score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. */ public float getScore() { return score_; @@ -1385,6 +1440,9 @@ public float getScore() { * * * float score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The score to set. + * @return This builder for chaining. */ public Builder setScore(float value) { @@ -1402,6 +1460,8 @@ public Builder setScore(float value) { * * * float score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. */ public Builder clearScore() { @@ -1426,6 +1486,8 @@ public Builder clearScore() { * * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return Whether the tokenProperties field is set. */ public boolean hasTokenProperties() { return tokenPropertiesBuilder_ != null || tokenProperties_ != null; @@ -1440,6 +1502,8 @@ public boolean hasTokenProperties() { * * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The tokenProperties. */ public com.google.recaptchaenterprise.v1beta1.TokenProperties getTokenProperties() { if (tokenPropertiesBuilder_ == null) { @@ -1617,9 +1681,9 @@ public Builder clearTokenProperties() { private java.util.List reasons_ = java.util.Collections.emptyList(); private void ensureReasonsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { reasons_ = new java.util.ArrayList(reasons_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000001; } } /** @@ -1632,6 +1696,8 @@ private void ensureReasonsIsMutable() { * * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return A list containing the reasons. */ public java.util.List getReasonsList() { @@ -1650,6 +1716,8 @@ private void ensureReasonsIsMutable() { * * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The count of reasons. */ public int getReasonsCount() { return reasons_.size(); @@ -1664,6 +1732,9 @@ public int getReasonsCount() { * * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param index The index of the element to return. + * @return The reasons at the given index. */ public com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason getReasons( int index) { @@ -1679,6 +1750,10 @@ public com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason ge * * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param index The index to set the value at. + * @param value The reasons to set. + * @return This builder for chaining. */ public Builder setReasons( int index, com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason value) { @@ -1700,6 +1775,9 @@ public Builder setReasons( * * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The reasons to add. + * @return This builder for chaining. */ public Builder addReasons( com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason value) { @@ -1721,6 +1799,9 @@ public Builder addReasons( * * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param values The reasons to add. + * @return This builder for chaining. */ public Builder addAllReasons( java.lang.Iterable< @@ -1743,10 +1824,12 @@ public Builder addAllReasons( * * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return This builder for chaining. */ public Builder clearReasons() { reasons_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1760,6 +1843,8 @@ public Builder clearReasons() { * * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return A list containing the enum numeric values on the wire for reasons. */ public java.util.List getReasonsValueList() { return java.util.Collections.unmodifiableList(reasons_); @@ -1774,6 +1859,9 @@ public java.util.List getReasonsValueList() { * * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of reasons at the given index. */ public int getReasonsValue(int index) { return reasons_.get(index); @@ -1788,6 +1876,10 @@ public int getReasonsValue(int index) { * * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of reasons at the given index. + * @return This builder for chaining. */ public Builder setReasonsValue(int index, int value) { ensureReasonsIsMutable(); @@ -1805,6 +1897,9 @@ public Builder setReasonsValue(int index, int value) { * * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The enum numeric value on the wire for reasons to add. + * @return This builder for chaining. */ public Builder addReasonsValue(int value) { ensureReasonsIsMutable(); @@ -1822,6 +1917,9 @@ public Builder addReasonsValue(int value) { * * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param values The enum numeric values on the wire for reasons to add. + * @return This builder for chaining. */ public Builder addAllReasonsValue(java.lang.Iterable values) { ensureReasonsIsMutable(); diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentName.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentName.java index 03b0681e..d81d9c81 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentName.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentName.java @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") public class AssessmentName implements ResourceName { diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentOrBuilder.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentOrBuilder.java index 556d7091..c6c91a56 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentOrBuilder.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentOrBuilder.java @@ -32,6 +32,8 @@ public interface AssessmentOrBuilder * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. */ java.lang.String getName(); /** @@ -43,6 +45,8 @@ public interface AssessmentOrBuilder * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -54,6 +58,8 @@ public interface AssessmentOrBuilder * * * .google.cloud.recaptchaenterprise.v1beta1.Event event = 2; + * + * @return Whether the event field is set. */ boolean hasEvent(); /** @@ -64,6 +70,8 @@ public interface AssessmentOrBuilder * * * .google.cloud.recaptchaenterprise.v1beta1.Event event = 2; + * + * @return The event. */ com.google.recaptchaenterprise.v1beta1.Event getEvent(); /** @@ -87,6 +95,8 @@ public interface AssessmentOrBuilder * * * float score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. */ float getScore(); @@ -100,6 +110,8 @@ public interface AssessmentOrBuilder * * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return Whether the tokenProperties field is set. */ boolean hasTokenProperties(); /** @@ -112,6 +124,8 @@ public interface AssessmentOrBuilder * * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The tokenProperties. */ com.google.recaptchaenterprise.v1beta1.TokenProperties getTokenProperties(); /** @@ -137,6 +151,8 @@ public interface AssessmentOrBuilder * * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return A list containing the reasons. */ java.util.List getReasonsList(); @@ -150,6 +166,8 @@ public interface AssessmentOrBuilder * * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The count of reasons. */ int getReasonsCount(); /** @@ -162,6 +180,9 @@ public interface AssessmentOrBuilder * * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param index The index of the element to return. + * @return The reasons at the given index. */ com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason getReasons(int index); /** @@ -174,6 +195,8 @@ public interface AssessmentOrBuilder * * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return A list containing the enum numeric values on the wire for reasons. */ java.util.List getReasonsValueList(); /** @@ -186,6 +209,9 @@ public interface AssessmentOrBuilder * * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of reasons at the given index. */ int getReasonsValue(int index); } diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequest.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequest.java index fec77ea7..0abacc13 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequest.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequest.java @@ -41,6 +41,12 @@ private CreateAssessmentRequest() { parent_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateAssessmentRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private CreateAssessmentRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -136,6 +141,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -159,6 +166,8 @@ public java.lang.String getParent() { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -184,6 +193,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return Whether the assessment field is set. */ public boolean hasAssessment() { return assessment_ != null; @@ -198,6 +209,8 @@ public boolean hasAssessment() { * * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The assessment. */ public com.google.recaptchaenterprise.v1beta1.Assessment getAssessment() { return assessment_ == null @@ -581,6 +594,8 @@ public Builder mergeFrom( * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -604,6 +619,8 @@ public java.lang.String getParent() { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -627,6 +644,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -648,6 +668,8 @@ public Builder setParent(java.lang.String value) { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -666,6 +688,9 @@ public Builder clearParent() { * * 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. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -694,6 +719,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return Whether the assessment field is set. */ public boolean hasAssessment() { return assessmentBuilder_ != null || assessment_ != null; @@ -708,6 +735,8 @@ public boolean hasAssessment() { * * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The assessment. */ public com.google.recaptchaenterprise.v1beta1.Assessment getAssessment() { if (assessmentBuilder_ == null) { diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequestOrBuilder.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequestOrBuilder.java index f722be35..e8c67d9a 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequestOrBuilder.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequestOrBuilder.java @@ -34,6 +34,8 @@ public interface CreateAssessmentRequestOrBuilder * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The parent. */ java.lang.String getParent(); /** @@ -47,6 +49,8 @@ public interface CreateAssessmentRequestOrBuilder * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -60,6 +64,8 @@ public interface CreateAssessmentRequestOrBuilder * * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return Whether the assessment field is set. */ boolean hasAssessment(); /** @@ -72,6 +78,8 @@ public interface CreateAssessmentRequestOrBuilder * * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The assessment. */ com.google.recaptchaenterprise.v1beta1.Assessment getAssessment(); /** diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateKeyRequest.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateKeyRequest.java index 4689ead0..c89b1a41 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateKeyRequest.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateKeyRequest.java @@ -41,6 +41,12 @@ private CreateKeyRequest() { parent_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateKeyRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private CreateKeyRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -135,6 +140,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -158,6 +165,8 @@ public java.lang.String getParent() { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -183,6 +192,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * .google.cloud.recaptchaenterprise.v1beta1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return Whether the key field is set. */ public boolean hasKey() { return key_ != null; @@ -197,6 +208,8 @@ public boolean hasKey() { * * .google.cloud.recaptchaenterprise.v1beta1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The key. */ public com.google.recaptchaenterprise.v1beta1.Key getKey() { return key_ == null ? com.google.recaptchaenterprise.v1beta1.Key.getDefaultInstance() : key_; @@ -575,6 +588,8 @@ public Builder mergeFrom( * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -598,6 +613,8 @@ public java.lang.String getParent() { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -621,6 +638,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -642,6 +662,8 @@ public Builder setParent(java.lang.String value) { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -660,6 +682,9 @@ public Builder clearParent() { * * 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. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -688,6 +713,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * .google.cloud.recaptchaenterprise.v1beta1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return Whether the key field is set. */ public boolean hasKey() { return keyBuilder_ != null || key_ != null; @@ -702,6 +729,8 @@ public boolean hasKey() { * * .google.cloud.recaptchaenterprise.v1beta1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The key. */ public com.google.recaptchaenterprise.v1beta1.Key getKey() { if (keyBuilder_ == null) { diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateKeyRequestOrBuilder.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateKeyRequestOrBuilder.java index c0e572cb..31d1b584 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateKeyRequestOrBuilder.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateKeyRequestOrBuilder.java @@ -34,6 +34,8 @@ public interface CreateKeyRequestOrBuilder * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The parent. */ java.lang.String getParent(); /** @@ -47,6 +49,8 @@ public interface CreateKeyRequestOrBuilder * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -60,6 +64,8 @@ public interface CreateKeyRequestOrBuilder * * .google.cloud.recaptchaenterprise.v1beta1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return Whether the key field is set. */ boolean hasKey(); /** @@ -72,6 +78,8 @@ public interface CreateKeyRequestOrBuilder * * .google.cloud.recaptchaenterprise.v1beta1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The key. */ com.google.recaptchaenterprise.v1beta1.Key getKey(); /** diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/DeleteKeyRequest.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/DeleteKeyRequest.java index b49f007f..a0b4cb99 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/DeleteKeyRequest.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/DeleteKeyRequest.java @@ -41,6 +41,12 @@ private DeleteKeyRequest() { name_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteKeyRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private DeleteKeyRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -119,6 +124,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -142,6 +149,8 @@ public java.lang.String getName() { * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -486,6 +495,8 @@ public Builder mergeFrom( * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -509,6 +520,8 @@ public java.lang.String getName() { * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -532,6 +545,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -553,6 +569,8 @@ public Builder setName(java.lang.String value) { * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return This builder for chaining. */ public Builder clearName() { @@ -571,6 +589,9 @@ public Builder clearName() { * * 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. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/DeleteKeyRequestOrBuilder.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/DeleteKeyRequestOrBuilder.java index 5eb225a3..ed7ee578 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/DeleteKeyRequestOrBuilder.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/DeleteKeyRequestOrBuilder.java @@ -34,6 +34,8 @@ public interface DeleteKeyRequestOrBuilder * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The name. */ java.lang.String getName(); /** @@ -47,6 +49,8 @@ public interface DeleteKeyRequestOrBuilder * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Event.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Event.java index 9d83e6ad..1d3fa508 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Event.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Event.java @@ -37,6 +37,12 @@ private Event() { expectedAction_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Event(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -50,7 +56,6 @@ private Event( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -141,6 +146,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The token. */ public java.lang.String getToken() { java.lang.Object ref = token_; @@ -162,6 +169,8 @@ public java.lang.String getToken() { * * * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { java.lang.Object ref = token_; @@ -186,6 +195,8 @@ public com.google.protobuf.ByteString getTokenBytes() { * * * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The siteKey. */ public java.lang.String getSiteKey() { java.lang.Object ref = siteKey_; @@ -207,6 +218,8 @@ public java.lang.String getSiteKey() { * * * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for siteKey. */ public com.google.protobuf.ByteString getSiteKeyBytes() { java.lang.Object ref = siteKey_; @@ -231,6 +244,8 @@ public com.google.protobuf.ByteString getSiteKeyBytes() { * * * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userAgent. */ public java.lang.String getUserAgent() { java.lang.Object ref = userAgent_; @@ -252,6 +267,8 @@ public java.lang.String getUserAgent() { * * * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userAgent. */ public com.google.protobuf.ByteString getUserAgentBytes() { java.lang.Object ref = userAgent_; @@ -275,6 +292,8 @@ public com.google.protobuf.ByteString getUserAgentBytes() { * * * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userIpAddress. */ public java.lang.String getUserIpAddress() { java.lang.Object ref = userIpAddress_; @@ -295,6 +314,8 @@ public java.lang.String getUserIpAddress() { * * * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userIpAddress. */ public com.google.protobuf.ByteString getUserIpAddressBytes() { java.lang.Object ref = userIpAddress_; @@ -320,6 +341,8 @@ public com.google.protobuf.ByteString getUserIpAddressBytes() { * * * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The expectedAction. */ public java.lang.String getExpectedAction() { java.lang.Object ref = expectedAction_; @@ -342,6 +365,8 @@ public java.lang.String getExpectedAction() { * * * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for expectedAction. */ public com.google.protobuf.ByteString getExpectedActionBytes() { java.lang.Object ref = expectedAction_; @@ -737,6 +762,8 @@ public Builder mergeFrom( * * * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The token. */ public java.lang.String getToken() { java.lang.Object ref = token_; @@ -758,6 +785,8 @@ public java.lang.String getToken() { * * * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { java.lang.Object ref = token_; @@ -779,6 +808,9 @@ public com.google.protobuf.ByteString getTokenBytes() { * * * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The token to set. + * @return This builder for chaining. */ public Builder setToken(java.lang.String value) { if (value == null) { @@ -798,6 +830,8 @@ public Builder setToken(java.lang.String value) { * * * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearToken() { @@ -814,6 +848,9 @@ public Builder clearToken() { * * * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for token to set. + * @return This builder for chaining. */ public Builder setTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -836,6 +873,8 @@ public Builder setTokenBytes(com.google.protobuf.ByteString value) { * * * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The siteKey. */ public java.lang.String getSiteKey() { java.lang.Object ref = siteKey_; @@ -857,6 +896,8 @@ public java.lang.String getSiteKey() { * * * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for siteKey. */ public com.google.protobuf.ByteString getSiteKeyBytes() { java.lang.Object ref = siteKey_; @@ -878,6 +919,9 @@ public com.google.protobuf.ByteString getSiteKeyBytes() { * * * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The siteKey to set. + * @return This builder for chaining. */ public Builder setSiteKey(java.lang.String value) { if (value == null) { @@ -897,6 +941,8 @@ public Builder setSiteKey(java.lang.String value) { * * * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearSiteKey() { @@ -913,6 +959,9 @@ public Builder clearSiteKey() { * * * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for siteKey to set. + * @return This builder for chaining. */ public Builder setSiteKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -935,6 +984,8 @@ public Builder setSiteKeyBytes(com.google.protobuf.ByteString value) { * * * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userAgent. */ public java.lang.String getUserAgent() { java.lang.Object ref = userAgent_; @@ -956,6 +1007,8 @@ public java.lang.String getUserAgent() { * * * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userAgent. */ public com.google.protobuf.ByteString getUserAgentBytes() { java.lang.Object ref = userAgent_; @@ -977,6 +1030,9 @@ public com.google.protobuf.ByteString getUserAgentBytes() { * * * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The userAgent to set. + * @return This builder for chaining. */ public Builder setUserAgent(java.lang.String value) { if (value == null) { @@ -996,6 +1052,8 @@ public Builder setUserAgent(java.lang.String value) { * * * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearUserAgent() { @@ -1012,6 +1070,9 @@ public Builder clearUserAgent() { * * * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for userAgent to set. + * @return This builder for chaining. */ public Builder setUserAgentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1033,6 +1094,8 @@ public Builder setUserAgentBytes(com.google.protobuf.ByteString value) { * * * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userIpAddress. */ public java.lang.String getUserIpAddress() { java.lang.Object ref = userIpAddress_; @@ -1053,6 +1116,8 @@ public java.lang.String getUserIpAddress() { * * * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userIpAddress. */ public com.google.protobuf.ByteString getUserIpAddressBytes() { java.lang.Object ref = userIpAddress_; @@ -1073,6 +1138,9 @@ public com.google.protobuf.ByteString getUserIpAddressBytes() { * * * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The userIpAddress to set. + * @return This builder for chaining. */ public Builder setUserIpAddress(java.lang.String value) { if (value == null) { @@ -1091,6 +1159,8 @@ public Builder setUserIpAddress(java.lang.String value) { * * * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearUserIpAddress() { @@ -1106,6 +1176,9 @@ public Builder clearUserIpAddress() { * * * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for userIpAddress to set. + * @return This builder for chaining. */ public Builder setUserIpAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1129,6 +1202,8 @@ public Builder setUserIpAddressBytes(com.google.protobuf.ByteString value) { * * * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The expectedAction. */ public java.lang.String getExpectedAction() { java.lang.Object ref = expectedAction_; @@ -1151,6 +1226,8 @@ public java.lang.String getExpectedAction() { * * * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for expectedAction. */ public com.google.protobuf.ByteString getExpectedActionBytes() { java.lang.Object ref = expectedAction_; @@ -1173,6 +1250,9 @@ public com.google.protobuf.ByteString getExpectedActionBytes() { * * * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The expectedAction to set. + * @return This builder for chaining. */ public Builder setExpectedAction(java.lang.String value) { if (value == null) { @@ -1193,6 +1273,8 @@ public Builder setExpectedAction(java.lang.String value) { * * * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearExpectedAction() { @@ -1210,6 +1292,9 @@ public Builder clearExpectedAction() { * * * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for expectedAction to set. + * @return This builder for chaining. */ public Builder setExpectedActionBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/EventOrBuilder.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/EventOrBuilder.java index 4b1d6dee..acbe2957 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/EventOrBuilder.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/EventOrBuilder.java @@ -32,6 +32,8 @@ public interface EventOrBuilder * * * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The token. */ java.lang.String getToken(); /** @@ -43,6 +45,8 @@ public interface EventOrBuilder * * * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); @@ -55,6 +59,8 @@ public interface EventOrBuilder * * * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The siteKey. */ java.lang.String getSiteKey(); /** @@ -66,6 +72,8 @@ public interface EventOrBuilder * * * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for siteKey. */ com.google.protobuf.ByteString getSiteKeyBytes(); @@ -78,6 +86,8 @@ public interface EventOrBuilder * * * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userAgent. */ java.lang.String getUserAgent(); /** @@ -89,6 +99,8 @@ public interface EventOrBuilder * * * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userAgent. */ com.google.protobuf.ByteString getUserAgentBytes(); @@ -100,6 +112,8 @@ public interface EventOrBuilder * * * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userIpAddress. */ java.lang.String getUserIpAddress(); /** @@ -110,6 +124,8 @@ public interface EventOrBuilder * * * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userIpAddress. */ com.google.protobuf.ByteString getUserIpAddressBytes(); @@ -123,6 +139,8 @@ public interface EventOrBuilder * * * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The expectedAction. */ java.lang.String getExpectedAction(); /** @@ -135,6 +153,8 @@ public interface EventOrBuilder * * * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for expectedAction. */ com.google.protobuf.ByteString getExpectedActionBytes(); } diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/GetKeyRequest.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/GetKeyRequest.java index facd6709..71702c23 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/GetKeyRequest.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/GetKeyRequest.java @@ -41,6 +41,12 @@ private GetKeyRequest() { name_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetKeyRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private GetKeyRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -119,6 +124,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -142,6 +149,8 @@ public java.lang.String getName() { * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -485,6 +494,8 @@ public Builder mergeFrom( * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -508,6 +519,8 @@ public java.lang.String getName() { * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -531,6 +544,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -552,6 +568,8 @@ public Builder setName(java.lang.String value) { * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return This builder for chaining. */ public Builder clearName() { @@ -570,6 +588,9 @@ public Builder clearName() { * * 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. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/GetKeyRequestOrBuilder.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/GetKeyRequestOrBuilder.java index 8c3220e0..c9a7f86b 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/GetKeyRequestOrBuilder.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/GetKeyRequestOrBuilder.java @@ -34,6 +34,8 @@ public interface GetKeyRequestOrBuilder * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The name. */ java.lang.String getName(); /** @@ -47,6 +49,8 @@ public interface GetKeyRequestOrBuilder * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/IOSKeySettings.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/IOSKeySettings.java index 492f0909..da872cd2 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/IOSKeySettings.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/IOSKeySettings.java @@ -41,6 +41,12 @@ private IOSKeySettings() { allowedBundleIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IOSKeySettings(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -123,6 +129,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * repeated string allowed_bundle_ids = 1; + * + * @return A list containing the allowedBundleIds. */ public com.google.protobuf.ProtocolStringList getAllowedBundleIdsList() { return allowedBundleIds_; @@ -136,6 +144,8 @@ public com.google.protobuf.ProtocolStringList getAllowedBundleIdsList() { * * * repeated string allowed_bundle_ids = 1; + * + * @return The count of allowedBundleIds. */ public int getAllowedBundleIdsCount() { return allowedBundleIds_.size(); @@ -149,6 +159,9 @@ public int getAllowedBundleIdsCount() { * * * repeated string allowed_bundle_ids = 1; + * + * @param index The index of the element to return. + * @return The allowedBundleIds at the given index. */ public java.lang.String getAllowedBundleIds(int index) { return allowedBundleIds_.get(index); @@ -162,6 +175,9 @@ public java.lang.String getAllowedBundleIds(int index) { * * * repeated string allowed_bundle_ids = 1; + * + * @param index The index of the value to return. + * @return The bytes of the allowedBundleIds at the given index. */ public com.google.protobuf.ByteString getAllowedBundleIdsBytes(int index) { return allowedBundleIds_.getByteString(index); @@ -524,6 +540,8 @@ private void ensureAllowedBundleIdsIsMutable() { * * * repeated string allowed_bundle_ids = 1; + * + * @return A list containing the allowedBundleIds. */ public com.google.protobuf.ProtocolStringList getAllowedBundleIdsList() { return allowedBundleIds_.getUnmodifiableView(); @@ -537,6 +555,8 @@ public com.google.protobuf.ProtocolStringList getAllowedBundleIdsList() { * * * repeated string allowed_bundle_ids = 1; + * + * @return The count of allowedBundleIds. */ public int getAllowedBundleIdsCount() { return allowedBundleIds_.size(); @@ -550,6 +570,9 @@ public int getAllowedBundleIdsCount() { * * * repeated string allowed_bundle_ids = 1; + * + * @param index The index of the element to return. + * @return The allowedBundleIds at the given index. */ public java.lang.String getAllowedBundleIds(int index) { return allowedBundleIds_.get(index); @@ -563,6 +586,9 @@ public java.lang.String getAllowedBundleIds(int index) { * * * repeated string allowed_bundle_ids = 1; + * + * @param index The index of the value to return. + * @return The bytes of the allowedBundleIds at the given index. */ public com.google.protobuf.ByteString getAllowedBundleIdsBytes(int index) { return allowedBundleIds_.getByteString(index); @@ -576,6 +602,10 @@ public com.google.protobuf.ByteString getAllowedBundleIdsBytes(int index) { * * * repeated string allowed_bundle_ids = 1; + * + * @param index The index to set the value at. + * @param value The allowedBundleIds to set. + * @return This builder for chaining. */ public Builder setAllowedBundleIds(int index, java.lang.String value) { if (value == null) { @@ -595,6 +625,9 @@ public Builder setAllowedBundleIds(int index, java.lang.String value) { * * * repeated string allowed_bundle_ids = 1; + * + * @param value The allowedBundleIds to add. + * @return This builder for chaining. */ public Builder addAllowedBundleIds(java.lang.String value) { if (value == null) { @@ -614,6 +647,9 @@ public Builder addAllowedBundleIds(java.lang.String value) { * * * repeated string allowed_bundle_ids = 1; + * + * @param values The allowedBundleIds to add. + * @return This builder for chaining. */ public Builder addAllAllowedBundleIds(java.lang.Iterable values) { ensureAllowedBundleIdsIsMutable(); @@ -630,6 +666,8 @@ public Builder addAllAllowedBundleIds(java.lang.Iterable value * * * repeated string allowed_bundle_ids = 1; + * + * @return This builder for chaining. */ public Builder clearAllowedBundleIds() { allowedBundleIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -646,6 +684,9 @@ public Builder clearAllowedBundleIds() { * * * repeated string allowed_bundle_ids = 1; + * + * @param value The bytes of the allowedBundleIds to add. + * @return This builder for chaining. */ public Builder addAllowedBundleIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/IOSKeySettingsOrBuilder.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/IOSKeySettingsOrBuilder.java index bdbaa9b7..10887772 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/IOSKeySettingsOrBuilder.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/IOSKeySettingsOrBuilder.java @@ -32,6 +32,8 @@ public interface IOSKeySettingsOrBuilder * * * repeated string allowed_bundle_ids = 1; + * + * @return A list containing the allowedBundleIds. */ java.util.List getAllowedBundleIdsList(); /** @@ -43,6 +45,8 @@ public interface IOSKeySettingsOrBuilder * * * repeated string allowed_bundle_ids = 1; + * + * @return The count of allowedBundleIds. */ int getAllowedBundleIdsCount(); /** @@ -54,6 +58,9 @@ public interface IOSKeySettingsOrBuilder * * * repeated string allowed_bundle_ids = 1; + * + * @param index The index of the element to return. + * @return The allowedBundleIds at the given index. */ java.lang.String getAllowedBundleIds(int index); /** @@ -65,6 +72,9 @@ public interface IOSKeySettingsOrBuilder * * * repeated string allowed_bundle_ids = 1; + * + * @param index The index of the value to return. + * @return The bytes of the allowedBundleIds at the given index. */ com.google.protobuf.ByteString getAllowedBundleIdsBytes(int index); } diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Key.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Key.java index 1aaafbfe..c283856b 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Key.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Key.java @@ -43,6 +43,12 @@ private Key() { displayName_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Key(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -56,7 +62,6 @@ private Key( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -178,7 +183,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int platformSettingsCase_ = 0; private java.lang.Object platformSettings_; - public enum PlatformSettingsCase implements com.google.protobuf.Internal.EnumLite { + public enum PlatformSettingsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { WEB_SETTINGS(3), ANDROID_SETTINGS(4), IOS_SETTINGS(5), @@ -188,7 +196,11 @@ public enum PlatformSettingsCase implements com.google.protobuf.Internal.EnumLit private PlatformSettingsCase(int value) { this.value = value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static PlatformSettingsCase valueOf(int value) { return forNumber(value); @@ -229,6 +241,8 @@ public PlatformSettingsCase getPlatformSettingsCase() { * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -250,6 +264,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -273,6 +289,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string display_name = 2; + * + * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; @@ -293,6 +311,8 @@ public java.lang.String getDisplayName() { * * * string display_name = 2; + * + * @return The bytes for displayName. */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; @@ -315,6 +335,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * * .google.cloud.recaptchaenterprise.v1beta1.WebKeySettings web_settings = 3; + * + * @return Whether the webSettings field is set. */ public boolean hasWebSettings() { return platformSettingsCase_ == 3; @@ -327,6 +349,8 @@ public boolean hasWebSettings() { * * * .google.cloud.recaptchaenterprise.v1beta1.WebKeySettings web_settings = 3; + * + * @return The webSettings. */ public com.google.recaptchaenterprise.v1beta1.WebKeySettings getWebSettings() { if (platformSettingsCase_ == 3) { @@ -359,6 +383,8 @@ public com.google.recaptchaenterprise.v1beta1.WebKeySettingsOrBuilder getWebSett * * * .google.cloud.recaptchaenterprise.v1beta1.AndroidKeySettings android_settings = 4; + * + * @return Whether the androidSettings field is set. */ public boolean hasAndroidSettings() { return platformSettingsCase_ == 4; @@ -371,6 +397,8 @@ public boolean hasAndroidSettings() { * * * .google.cloud.recaptchaenterprise.v1beta1.AndroidKeySettings android_settings = 4; + * + * @return The androidSettings. */ public com.google.recaptchaenterprise.v1beta1.AndroidKeySettings getAndroidSettings() { if (platformSettingsCase_ == 4) { @@ -404,6 +432,8 @@ public com.google.recaptchaenterprise.v1beta1.AndroidKeySettings getAndroidSetti * * * .google.cloud.recaptchaenterprise.v1beta1.IOSKeySettings ios_settings = 5; + * + * @return Whether the iosSettings field is set. */ public boolean hasIosSettings() { return platformSettingsCase_ == 5; @@ -416,6 +446,8 @@ public boolean hasIosSettings() { * * * .google.cloud.recaptchaenterprise.v1beta1.IOSKeySettings ios_settings = 5; + * + * @return The iosSettings. */ public com.google.recaptchaenterprise.v1beta1.IOSKeySettings getIosSettings() { if (platformSettingsCase_ == 5) { @@ -898,6 +930,8 @@ public Builder clearPlatformSettings() { * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -919,6 +953,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -940,6 +976,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -959,6 +998,8 @@ public Builder setName(java.lang.String value) { * * * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -975,6 +1016,9 @@ public Builder clearName() { * * * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -996,6 +1040,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * string display_name = 2; + * + * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; @@ -1016,6 +1062,8 @@ public java.lang.String getDisplayName() { * * * string display_name = 2; + * + * @return The bytes for displayName. */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; @@ -1036,6 +1084,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. */ public Builder setDisplayName(java.lang.String value) { if (value == null) { @@ -1054,6 +1105,8 @@ public Builder setDisplayName(java.lang.String value) { * * * string display_name = 2; + * + * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1069,6 +1122,9 @@ public Builder clearDisplayName() { * * * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. */ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1094,6 +1150,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * * .google.cloud.recaptchaenterprise.v1beta1.WebKeySettings web_settings = 3; + * + * @return Whether the webSettings field is set. */ public boolean hasWebSettings() { return platformSettingsCase_ == 3; @@ -1106,6 +1164,8 @@ public boolean hasWebSettings() { * * * .google.cloud.recaptchaenterprise.v1beta1.WebKeySettings web_settings = 3; + * + * @return The webSettings. */ public com.google.recaptchaenterprise.v1beta1.WebKeySettings getWebSettings() { if (webSettingsBuilder_ == null) { @@ -1300,6 +1360,8 @@ public com.google.recaptchaenterprise.v1beta1.WebKeySettings.Builder getWebSetti * * .google.cloud.recaptchaenterprise.v1beta1.AndroidKeySettings android_settings = 4; * + * + * @return Whether the androidSettings field is set. */ public boolean hasAndroidSettings() { return platformSettingsCase_ == 4; @@ -1313,6 +1375,8 @@ public boolean hasAndroidSettings() { * * .google.cloud.recaptchaenterprise.v1beta1.AndroidKeySettings android_settings = 4; * + * + * @return The androidSettings. */ public com.google.recaptchaenterprise.v1beta1.AndroidKeySettings getAndroidSettings() { if (androidSettingsBuilder_ == null) { @@ -1516,6 +1580,8 @@ public Builder clearAndroidSettings() { * * * .google.cloud.recaptchaenterprise.v1beta1.IOSKeySettings ios_settings = 5; + * + * @return Whether the iosSettings field is set. */ public boolean hasIosSettings() { return platformSettingsCase_ == 5; @@ -1528,6 +1594,8 @@ public boolean hasIosSettings() { * * * .google.cloud.recaptchaenterprise.v1beta1.IOSKeySettings ios_settings = 5; + * + * @return The iosSettings. */ public com.google.recaptchaenterprise.v1beta1.IOSKeySettings getIosSettings() { if (iosSettingsBuilder_ == null) { diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/KeyName.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/KeyName.java index 4b3e33f8..84e179f5 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/KeyName.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/KeyName.java @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") public class KeyName implements ResourceName { diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/KeyOrBuilder.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/KeyOrBuilder.java index e88f10e4..79678aa8 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/KeyOrBuilder.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/KeyOrBuilder.java @@ -32,6 +32,8 @@ public interface KeyOrBuilder * * * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -43,6 +45,8 @@ public interface KeyOrBuilder * * * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -54,6 +58,8 @@ public interface KeyOrBuilder * * * string display_name = 2; + * + * @return The displayName. */ java.lang.String getDisplayName(); /** @@ -64,6 +70,8 @@ public interface KeyOrBuilder * * * string display_name = 2; + * + * @return The bytes for displayName. */ com.google.protobuf.ByteString getDisplayNameBytes(); @@ -75,6 +83,8 @@ public interface KeyOrBuilder * * * .google.cloud.recaptchaenterprise.v1beta1.WebKeySettings web_settings = 3; + * + * @return Whether the webSettings field is set. */ boolean hasWebSettings(); /** @@ -85,6 +95,8 @@ public interface KeyOrBuilder * * * .google.cloud.recaptchaenterprise.v1beta1.WebKeySettings web_settings = 3; + * + * @return The webSettings. */ com.google.recaptchaenterprise.v1beta1.WebKeySettings getWebSettings(); /** @@ -106,6 +118,8 @@ public interface KeyOrBuilder * * * .google.cloud.recaptchaenterprise.v1beta1.AndroidKeySettings android_settings = 4; + * + * @return Whether the androidSettings field is set. */ boolean hasAndroidSettings(); /** @@ -116,6 +130,8 @@ public interface KeyOrBuilder * * * .google.cloud.recaptchaenterprise.v1beta1.AndroidKeySettings android_settings = 4; + * + * @return The androidSettings. */ com.google.recaptchaenterprise.v1beta1.AndroidKeySettings getAndroidSettings(); /** @@ -137,6 +153,8 @@ public interface KeyOrBuilder * * * .google.cloud.recaptchaenterprise.v1beta1.IOSKeySettings ios_settings = 5; + * + * @return Whether the iosSettings field is set. */ boolean hasIosSettings(); /** @@ -147,6 +165,8 @@ public interface KeyOrBuilder * * * .google.cloud.recaptchaenterprise.v1beta1.IOSKeySettings ios_settings = 5; + * + * @return The iosSettings. */ com.google.recaptchaenterprise.v1beta1.IOSKeySettings getIosSettings(); /** diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ListKeysRequest.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ListKeysRequest.java index 51378a23..f4292940 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ListKeysRequest.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ListKeysRequest.java @@ -42,6 +42,12 @@ private ListKeysRequest() { pageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListKeysRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private ListKeysRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -132,6 +137,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -155,6 +162,8 @@ public java.lang.String getParent() { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -179,6 +188,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -195,6 +206,8 @@ public int getPageSize() { * * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -216,6 +229,8 @@ public java.lang.String getPageToken() { * * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -591,6 +606,8 @@ public Builder mergeFrom( * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -614,6 +631,8 @@ public java.lang.String getParent() { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -637,6 +656,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -658,6 +680,8 @@ public Builder setParent(java.lang.String value) { * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -676,6 +700,9 @@ public Builder clearParent() { * * 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. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -698,6 +725,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -711,6 +740,9 @@ public int getPageSize() { * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. */ public Builder setPageSize(int value) { @@ -727,6 +759,8 @@ public Builder setPageSize(int value) { * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearPageSize() { @@ -745,6 +779,8 @@ public Builder clearPageSize() { * * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -766,6 +802,8 @@ public java.lang.String getPageToken() { * * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -787,6 +825,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. */ public Builder setPageToken(java.lang.String value) { if (value == null) { @@ -806,6 +847,8 @@ public Builder setPageToken(java.lang.String value) { * * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearPageToken() { @@ -822,6 +865,9 @@ public Builder clearPageToken() { * * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. */ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ListKeysRequestOrBuilder.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ListKeysRequestOrBuilder.java index 9e79cb27..c5612977 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ListKeysRequestOrBuilder.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ListKeysRequestOrBuilder.java @@ -34,6 +34,8 @@ public interface ListKeysRequestOrBuilder * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The parent. */ java.lang.String getParent(); /** @@ -47,6 +49,8 @@ public interface ListKeysRequestOrBuilder * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); @@ -59,6 +63,8 @@ public interface ListKeysRequestOrBuilder * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. */ int getPageSize(); @@ -71,6 +77,8 @@ public interface ListKeysRequestOrBuilder * * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. */ java.lang.String getPageToken(); /** @@ -82,6 +90,8 @@ public interface ListKeysRequestOrBuilder * * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ListKeysResponse.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ListKeysResponse.java index fb0504d7..efef95e5 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ListKeysResponse.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ListKeysResponse.java @@ -42,6 +42,12 @@ private ListKeysResponse() { nextPageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListKeysResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -121,7 +127,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.recaptchaenterprise.v1beta1.ListKeysResponse.Builder.class); } - private int bitField0_; public static final int KEYS_FIELD_NUMBER = 1; private java.util.List keys_; /** @@ -197,6 +202,8 @@ public com.google.recaptchaenterprise.v1beta1.KeyOrBuilder getKeysOrBuilder(int * * * string next_page_token = 2; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -218,6 +225,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -485,7 +494,6 @@ public com.google.recaptchaenterprise.v1beta1.ListKeysResponse buildPartial() { com.google.recaptchaenterprise.v1beta1.ListKeysResponse result = new com.google.recaptchaenterprise.v1beta1.ListKeysResponse(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (keysBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { keys_ = java.util.Collections.unmodifiableList(keys_); @@ -496,7 +504,6 @@ public com.google.recaptchaenterprise.v1beta1.ListKeysResponse buildPartial() { result.keys_ = keysBuilder_.build(); } result.nextPageToken_ = nextPageToken_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -968,6 +975,8 @@ public java.util.List getKey * * * string next_page_token = 2; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -989,6 +998,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -1010,6 +1021,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { @@ -1029,6 +1043,8 @@ public Builder setNextPageToken(java.lang.String value) { * * * string next_page_token = 2; + * + * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1045,6 +1061,9 @@ public Builder clearNextPageToken() { * * * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ListKeysResponseOrBuilder.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ListKeysResponseOrBuilder.java index 2826aa5b..4d2c4a6a 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ListKeysResponseOrBuilder.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ListKeysResponseOrBuilder.java @@ -84,6 +84,8 @@ public interface ListKeysResponseOrBuilder * * * string next_page_token = 2; + * + * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** @@ -95,6 +97,8 @@ public interface ListKeysResponseOrBuilder * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ProjectName.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ProjectName.java index bdbb5313..ad7c7e1e 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ProjectName.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ProjectName.java @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") public class ProjectName implements ResourceName { diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseProto.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseProto.java index 883dd2c8..3ce5b57d 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseProto.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseProto.java @@ -159,103 +159,94 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "captchaenterprise.v1beta1.Key\022\027\n\017next_pa" + "ge_token\030\002 \001(\t\"M\n\rGetKeyRequest\022<\n\004name\030" + "\001 \001(\tB.\340A\002\372A(\n&recaptchaenterprise.googl" - + "eapis.com/Key\"\264\001\n\020UpdateKeyRequest\022j\n\003ke" + + "eapis.com/Key\"\211\001\n\020UpdateKeyRequest\022?\n\003ke" + "y\030\001 \001(\0132-.google.cloud.recaptchaenterpri" - + "se.v1beta1.KeyB.\340A\002\372A(\n&recaptchaenterpr" - + "ise.googleapis.com/Key\0224\n\013update_mask\030\002 " - + "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"P\n\020" - + "DeleteKeyRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&" - + "recaptchaenterprise.googleapis.com/Key\"\210" - + "\003\n\003Key\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001" - + "(\t\022P\n\014web_settings\030\003 \001(\01328.google.cloud." - + "recaptchaenterprise.v1beta1.WebKeySettin" - + "gsH\000\022X\n\020android_settings\030\004 \001(\0132<.google." - + "cloud.recaptchaenterprise.v1beta1.Androi" - + "dKeySettingsH\000\022P\n\014ios_settings\030\005 \001(\01328.g" - + "oogle.cloud.recaptchaenterprise.v1beta1." - + "IOSKeySettingsH\000:J\352AG\n&recaptchaenterpri" - + "se.googleapis.com/Key\022\035projects/{project" - + "}/keys/{key}B\023\n\021platform_settings\"\272\004\n\016We" - + "bKeySettings\022\037\n\027enforce_allowed_domains\030" - + "\003 \001(\010\022\027\n\017allowed_domains\030\001 \003(\t\022\031\n\021allow_" - + "amp_traffic\030\002 \001(\010\022g\n\020integration_type\030\004 " - + "\001(\0162H.google.cloud.recaptchaenterprise.v" - + "1beta1.WebKeySettings.IntegrationTypeB\003\340" - + "A\002\022{\n\035challenge_security_preference\030\005 \001(" - + "\0162T.google.cloud.recaptchaenterprise.v1b" - + "eta1.WebKeySettings.ChallengeSecurityPre" - + "ference\"t\n\017IntegrationType\022 \n\034INTEGRATIO" - + "N_TYPE_UNSPECIFIED\020\000\022\016\n\nSCORE_ONLY\020\001\022\026\n\022" - + "CHECKBOX_CHALLENGE\020\002\022\027\n\023INVISIBLE_CHALLE" - + "NGE\020\003\"w\n\033ChallengeSecurityPreference\022-\n)" - + "CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIE" - + "D\020\000\022\r\n\tUSABILITY\020\001\022\014\n\010BALANCED\020\002\022\014\n\010SECU" - + "RITY\020\003\"3\n\022AndroidKeySettings\022\035\n\025allowed_" - + "package_names\030\001 \003(\t\",\n\016IOSKeySettings\022\032\n" - + "\022allowed_bundle_ids\030\001 \003(\t2\375\n\n!RecaptchaE" - + "nterpriseServiceV1Beta1\022\335\001\n\020CreateAssess" - + "ment\022A.google.cloud.recaptchaenterprise." - + "v1beta1.CreateAssessmentRequest\0324.google" - + ".cloud.recaptchaenterprise.v1beta1.Asses" - + "sment\"P\202\323\344\223\0026\"(/v1beta1/{parent=projects" - + "/*}/assessments:\nassessment\332A\021parent,ass" - + "essment\022\357\001\n\022AnnotateAssessment\022C.google." - + "cloud.recaptchaenterprise.v1beta1.Annota" - + "teAssessmentRequest\032D.google.cloud.recap" - + "tchaenterprise.v1beta1.AnnotateAssessmen" - + "tResponse\"N\202\323\344\223\0026\"1/v1beta1/{name=projec" - + "ts/*/assessments/*}:annotate:\001*\332A\017name,a" - + "nnotation\022\246\001\n\tCreateKey\022:.google.cloud.r" - + "ecaptchaenterprise.v1beta1.CreateKeyRequ" - + "est\032-.google.cloud.recaptchaenterprise.v" - + "1beta1.Key\".\202\323\344\223\002(\"!/v1beta1/{parent=pro" - + "jects/*}/keys:\003key\022\254\001\n\010ListKeys\0229.google" - + ".cloud.recaptchaenterprise.v1beta1.ListK" - + "eysRequest\032:.google.cloud.recaptchaenter" - + "prise.v1beta1.ListKeysResponse\")\202\323\344\223\002#\022!" - + "/v1beta1/{parent=projects/*}/keys\022\233\001\n\006Ge" - + "tKey\0227.google.cloud.recaptchaenterprise." - + "v1beta1.GetKeyRequest\032-.google.cloud.rec" - + "aptchaenterprise.v1beta1.Key\")\202\323\344\223\002#\022!/v" - + "1beta1/{name=projects/*/keys/*}\022\252\001\n\tUpda" - + "teKey\022:.google.cloud.recaptchaenterprise" - + ".v1beta1.UpdateKeyRequest\032-.google.cloud" - + ".recaptchaenterprise.v1beta1.Key\"2\202\323\344\223\002," - + "2%/v1beta1/{key.name=projects/*/keys/*}:" - + "\003key\022\212\001\n\tDeleteKey\022:.google.cloud.recapt" - + "chaenterprise.v1beta1.DeleteKeyRequest\032\026" - + ".google.protobuf.Empty\")\202\323\344\223\002#*!/v1beta1" - + "/{name=projects/*/keys/*}\032V\312A\"recaptchae" - + "nterprise.googleapis.com\322A.https://www.g" - + "oogleapis.com/auth/cloud-platformB\376\001\n&co" - + "m.google.recaptchaenterprise.v1beta1B\030Re" - + "captchaEnterpriseProtoP\001Z[google.golang." - + "org/genproto/googleapis/cloud/recaptchae" - + "nterprise/v1beta1;recaptchaenterprise\242\002\004" - + "GCRE\252\002(Google.Cloud.RecaptchaEnterprise." - + "V1Beta1\312\002(Google\\Cloud\\RecaptchaEnterpri" - + "se\\V1beta1b\006proto3" + + "se.v1beta1.KeyB\003\340A\002\0224\n\013update_mask\030\002 \001(\013" + + "2\032.google.protobuf.FieldMaskB\003\340A\001\"P\n\020Del" + + "eteKeyRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&rec" + + "aptchaenterprise.googleapis.com/Key\"\210\003\n\003" + + "Key\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022" + + "P\n\014web_settings\030\003 \001(\01328.google.cloud.rec" + + "aptchaenterprise.v1beta1.WebKeySettingsH" + + "\000\022X\n\020android_settings\030\004 \001(\0132<.google.clo" + + "ud.recaptchaenterprise.v1beta1.AndroidKe" + + "ySettingsH\000\022P\n\014ios_settings\030\005 \001(\01328.goog" + + "le.cloud.recaptchaenterprise.v1beta1.IOS" + + "KeySettingsH\000:J\352AG\n&recaptchaenterprise." + + "googleapis.com/Key\022\035projects/{project}/k" + + "eys/{key}B\023\n\021platform_settings\"\272\004\n\016WebKe" + + "ySettings\022\037\n\027enforce_allowed_domains\030\003 \001" + + "(\010\022\027\n\017allowed_domains\030\001 \003(\t\022\031\n\021allow_amp" + + "_traffic\030\002 \001(\010\022g\n\020integration_type\030\004 \001(\016" + + "2H.google.cloud.recaptchaenterprise.v1be" + + "ta1.WebKeySettings.IntegrationTypeB\003\340A\002\022" + + "{\n\035challenge_security_preference\030\005 \001(\0162T" + + ".google.cloud.recaptchaenterprise.v1beta" + + "1.WebKeySettings.ChallengeSecurityPrefer" + + "ence\"t\n\017IntegrationType\022 \n\034INTEGRATION_T" + + "YPE_UNSPECIFIED\020\000\022\016\n\nSCORE_ONLY\020\001\022\026\n\022CHE" + + "CKBOX_CHALLENGE\020\002\022\027\n\023INVISIBLE_CHALLENGE" + + "\020\003\"w\n\033ChallengeSecurityPreference\022-\n)CHA" + + "LLENGE_SECURITY_PREFERENCE_UNSPECIFIED\020\000" + + "\022\r\n\tUSABILITY\020\001\022\014\n\010BALANCED\020\002\022\014\n\010SECURIT" + + "Y\020\003\"3\n\022AndroidKeySettings\022\035\n\025allowed_pac" + + "kage_names\030\001 \003(\t\",\n\016IOSKeySettings\022\032\n\022al" + + "lowed_bundle_ids\030\001 \003(\t2\375\n\n!RecaptchaEnte" + + "rpriseServiceV1Beta1\022\335\001\n\020CreateAssessmen" + + "t\022A.google.cloud.recaptchaenterprise.v1b" + + "eta1.CreateAssessmentRequest\0324.google.cl" + + "oud.recaptchaenterprise.v1beta1.Assessme" + + "nt\"P\202\323\344\223\0026\"(/v1beta1/{parent=projects/*}" + + "/assessments:\nassessment\332A\021parent,assess" + + "ment\022\357\001\n\022AnnotateAssessment\022C.google.clo" + + "ud.recaptchaenterprise.v1beta1.AnnotateA" + + "ssessmentRequest\032D.google.cloud.recaptch" + + "aenterprise.v1beta1.AnnotateAssessmentRe" + + "sponse\"N\202\323\344\223\0026\"1/v1beta1/{name=projects/" + + "*/assessments/*}:annotate:\001*\332A\017name,anno" + + "tation\022\246\001\n\tCreateKey\022:.google.cloud.reca" + + "ptchaenterprise.v1beta1.CreateKeyRequest" + + "\032-.google.cloud.recaptchaenterprise.v1be" + + "ta1.Key\".\202\323\344\223\002(\"!/v1beta1/{parent=projec" + + "ts/*}/keys:\003key\022\254\001\n\010ListKeys\0229.google.cl" + + "oud.recaptchaenterprise.v1beta1.ListKeys" + + "Request\032:.google.cloud.recaptchaenterpri" + + "se.v1beta1.ListKeysResponse\")\202\323\344\223\002#\022!/v1" + + "beta1/{parent=projects/*}/keys\022\233\001\n\006GetKe" + + "y\0227.google.cloud.recaptchaenterprise.v1b" + + "eta1.GetKeyRequest\032-.google.cloud.recapt" + + "chaenterprise.v1beta1.Key\")\202\323\344\223\002#\022!/v1be" + + "ta1/{name=projects/*/keys/*}\022\252\001\n\tUpdateK" + + "ey\022:.google.cloud.recaptchaenterprise.v1" + + "beta1.UpdateKeyRequest\032-.google.cloud.re" + + "captchaenterprise.v1beta1.Key\"2\202\323\344\223\002,2%/" + + "v1beta1/{key.name=projects/*/keys/*}:\003ke" + + "y\022\212\001\n\tDeleteKey\022:.google.cloud.recaptcha" + + "enterprise.v1beta1.DeleteKeyRequest\032\026.go" + + "ogle.protobuf.Empty\")\202\323\344\223\002#*!/v1beta1/{n" + + "ame=projects/*/keys/*}\032V\312A\"recaptchaente" + + "rprise.googleapis.com\322A.https://www.goog" + + "leapis.com/auth/cloud-platformB\376\001\n&com.g" + + "oogle.recaptchaenterprise.v1beta1B\030Recap" + + "tchaEnterpriseProtoP\001Z[google.golang.org" + + "/genproto/googleapis/cloud/recaptchaente" + + "rprise/v1beta1;recaptchaenterprise\242\002\004GCR" + + "E\252\002(Google.Cloud.RecaptchaEnterprise.V1B" + + "eta1\312\002(Google\\Cloud\\RecaptchaEnterprise\\" + + "V1beta1b\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - 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.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, - assigner); + 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.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_fieldAccessorTable = diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenProperties.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenProperties.java index bb3a1702..70e42566 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenProperties.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenProperties.java @@ -35,6 +35,12 @@ private TokenProperties() { action_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TokenProperties(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -48,7 +54,6 @@ private TokenProperties( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -303,12 +308,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static InvalidReason valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static InvalidReason forNumber(int value) { switch (value) { case 0: @@ -386,6 +399,8 @@ private InvalidReason(int value) { * * * bool valid = 1; + * + * @return The valid. */ public boolean getValid() { return valid_; @@ -403,6 +418,8 @@ public boolean getValid() { * * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; * + * + * @return The enum numeric value on the wire for invalidReason. */ public int getInvalidReasonValue() { return invalidReason_; @@ -417,6 +434,8 @@ public int getInvalidReasonValue() { * * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; * + * + * @return The invalidReason. */ public com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason getInvalidReason() { @SuppressWarnings("deprecation") @@ -438,6 +457,8 @@ public com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason getI * * * .google.protobuf.Timestamp create_time = 3; + * + * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTime_ != null; @@ -450,6 +471,8 @@ public boolean hasCreateTime() { * * * .google.protobuf.Timestamp create_time = 3; + * + * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; @@ -477,6 +500,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * * string hostname = 4; + * + * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; @@ -497,6 +522,8 @@ public java.lang.String getHostname() { * * * string hostname = 4; + * + * @return The bytes for hostname. */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; @@ -520,6 +547,8 @@ public com.google.protobuf.ByteString getHostnameBytes() { * * * string action = 5; + * + * @return The action. */ public java.lang.String getAction() { java.lang.Object ref = action_; @@ -540,6 +569,8 @@ public java.lang.String getAction() { * * * string action = 5; + * + * @return The bytes for action. */ public com.google.protobuf.ByteString getActionBytes() { java.lang.Object ref = action_; @@ -953,6 +984,8 @@ public Builder mergeFrom( * * * bool valid = 1; + * + * @return The valid. */ public boolean getValid() { return valid_; @@ -965,6 +998,9 @@ public boolean getValid() { * * * bool valid = 1; + * + * @param value The valid to set. + * @return This builder for chaining. */ public Builder setValid(boolean value) { @@ -980,6 +1016,8 @@ public Builder setValid(boolean value) { * * * bool valid = 1; + * + * @return This builder for chaining. */ public Builder clearValid() { @@ -999,6 +1037,8 @@ public Builder clearValid() { * * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; * + * + * @return The enum numeric value on the wire for invalidReason. */ public int getInvalidReasonValue() { return invalidReason_; @@ -1013,6 +1053,9 @@ public int getInvalidReasonValue() { * * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; * + * + * @param value The enum numeric value on the wire for invalidReason to set. + * @return This builder for chaining. */ public Builder setInvalidReasonValue(int value) { invalidReason_ = value; @@ -1029,6 +1072,8 @@ public Builder setInvalidReasonValue(int value) { * * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; * + * + * @return The invalidReason. */ public com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason getInvalidReason() { @SuppressWarnings("deprecation") @@ -1049,6 +1094,9 @@ public com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason getI * * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; * + * + * @param value The invalidReason to set. + * @return This builder for chaining. */ public Builder setInvalidReason( com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason value) { @@ -1070,6 +1118,8 @@ public Builder setInvalidReason( * * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; * + * + * @return This builder for chaining. */ public Builder clearInvalidReason() { @@ -1092,6 +1142,8 @@ public Builder clearInvalidReason() { * * * .google.protobuf.Timestamp create_time = 3; + * + * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; @@ -1104,6 +1156,8 @@ public boolean hasCreateTime() { * * * .google.protobuf.Timestamp create_time = 3; + * + * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { @@ -1266,6 +1320,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * * string hostname = 4; + * + * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; @@ -1286,6 +1342,8 @@ public java.lang.String getHostname() { * * * string hostname = 4; + * + * @return The bytes for hostname. */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; @@ -1306,6 +1364,9 @@ public com.google.protobuf.ByteString getHostnameBytes() { * * * string hostname = 4; + * + * @param value The hostname to set. + * @return This builder for chaining. */ public Builder setHostname(java.lang.String value) { if (value == null) { @@ -1324,6 +1385,8 @@ public Builder setHostname(java.lang.String value) { * * * string hostname = 4; + * + * @return This builder for chaining. */ public Builder clearHostname() { @@ -1339,6 +1402,9 @@ public Builder clearHostname() { * * * string hostname = 4; + * + * @param value The bytes for hostname to set. + * @return This builder for chaining. */ public Builder setHostnameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1360,6 +1426,8 @@ public Builder setHostnameBytes(com.google.protobuf.ByteString value) { * * * string action = 5; + * + * @return The action. */ public java.lang.String getAction() { java.lang.Object ref = action_; @@ -1380,6 +1448,8 @@ public java.lang.String getAction() { * * * string action = 5; + * + * @return The bytes for action. */ public com.google.protobuf.ByteString getActionBytes() { java.lang.Object ref = action_; @@ -1400,6 +1470,9 @@ public com.google.protobuf.ByteString getActionBytes() { * * * string action = 5; + * + * @param value The action to set. + * @return This builder for chaining. */ public Builder setAction(java.lang.String value) { if (value == null) { @@ -1418,6 +1491,8 @@ public Builder setAction(java.lang.String value) { * * * string action = 5; + * + * @return This builder for chaining. */ public Builder clearAction() { @@ -1433,6 +1508,9 @@ public Builder clearAction() { * * * string action = 5; + * + * @param value The bytes for action to set. + * @return This builder for chaining. */ public Builder setActionBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenPropertiesOrBuilder.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenPropertiesOrBuilder.java index f95a04bf..cb8e253f 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenPropertiesOrBuilder.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenPropertiesOrBuilder.java @@ -31,6 +31,8 @@ public interface TokenPropertiesOrBuilder * * * bool valid = 1; + * + * @return The valid. */ boolean getValid(); @@ -44,6 +46,8 @@ public interface TokenPropertiesOrBuilder * * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; * + * + * @return The enum numeric value on the wire for invalidReason. */ int getInvalidReasonValue(); /** @@ -56,6 +60,8 @@ public interface TokenPropertiesOrBuilder * * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; * + * + * @return The invalidReason. */ com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason getInvalidReason(); @@ -67,6 +73,8 @@ public interface TokenPropertiesOrBuilder * * * .google.protobuf.Timestamp create_time = 3; + * + * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** @@ -77,6 +85,8 @@ public interface TokenPropertiesOrBuilder * * * .google.protobuf.Timestamp create_time = 3; + * + * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** @@ -98,6 +108,8 @@ public interface TokenPropertiesOrBuilder * * * string hostname = 4; + * + * @return The hostname. */ java.lang.String getHostname(); /** @@ -108,6 +120,8 @@ public interface TokenPropertiesOrBuilder * * * string hostname = 4; + * + * @return The bytes for hostname. */ com.google.protobuf.ByteString getHostnameBytes(); @@ -119,6 +133,8 @@ public interface TokenPropertiesOrBuilder * * * string action = 5; + * + * @return The action. */ java.lang.String getAction(); /** @@ -129,6 +145,8 @@ public interface TokenPropertiesOrBuilder * * * string action = 5; + * + * @return The bytes for action. */ com.google.protobuf.ByteString getActionBytes(); } diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/UpdateKeyRequest.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/UpdateKeyRequest.java index 59ef61b4..efba3974 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/UpdateKeyRequest.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/UpdateKeyRequest.java @@ -39,6 +39,12 @@ private UpdateKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder build private UpdateKeyRequest() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateKeyRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private UpdateKeyRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -138,8 +143,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * - * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return Whether the key field is set. */ public boolean hasKey() { return key_ != null; @@ -152,8 +159,10 @@ public boolean hasKey() { * * * - * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The key. */ public com.google.recaptchaenterprise.v1beta1.Key getKey() { return key_ == null ? com.google.recaptchaenterprise.v1beta1.Key.getDefaultInstance() : key_; @@ -166,7 +175,7 @@ public com.google.recaptchaenterprise.v1beta1.Key getKey() { * * * - * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.recaptchaenterprise.v1beta1.KeyOrBuilder getKeyOrBuilder() { @@ -185,6 +194,8 @@ public com.google.recaptchaenterprise.v1beta1.KeyOrBuilder getKeyOrBuilder() { * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMask_ != null; @@ -199,6 +210,8 @@ public boolean hasUpdateMask() { * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; @@ -591,8 +604,10 @@ public Builder mergeFrom( * * * - * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return Whether the key field is set. */ public boolean hasKey() { return keyBuilder_ != null || key_ != null; @@ -605,8 +620,10 @@ public boolean hasKey() { * * * - * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The key. */ public com.google.recaptchaenterprise.v1beta1.Key getKey() { if (keyBuilder_ == null) { @@ -625,7 +642,7 @@ public com.google.recaptchaenterprise.v1beta1.Key getKey() { * * * - * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setKey(com.google.recaptchaenterprise.v1beta1.Key value) { @@ -649,7 +666,7 @@ public Builder setKey(com.google.recaptchaenterprise.v1beta1.Key value) { * * * - * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setKey(com.google.recaptchaenterprise.v1beta1.Key.Builder builderForValue) { @@ -670,7 +687,7 @@ public Builder setKey(com.google.recaptchaenterprise.v1beta1.Key.Builder builder * * * - * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder mergeKey(com.google.recaptchaenterprise.v1beta1.Key value) { @@ -698,7 +715,7 @@ public Builder mergeKey(com.google.recaptchaenterprise.v1beta1.Key value) { * * * - * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearKey() { @@ -720,7 +737,7 @@ public Builder clearKey() { * * * - * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.recaptchaenterprise.v1beta1.Key.Builder getKeyBuilder() { @@ -736,7 +753,7 @@ public com.google.recaptchaenterprise.v1beta1.Key.Builder getKeyBuilder() { * * * - * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.recaptchaenterprise.v1beta1.KeyOrBuilder getKeyOrBuilder() { @@ -756,7 +773,7 @@ public com.google.recaptchaenterprise.v1beta1.KeyOrBuilder getKeyOrBuilder() { * * * - * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -792,6 +809,8 @@ public com.google.recaptchaenterprise.v1beta1.KeyOrBuilder getKeyOrBuilder() { * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; @@ -806,6 +825,8 @@ public boolean hasUpdateMask() { * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/UpdateKeyRequestOrBuilder.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/UpdateKeyRequestOrBuilder.java index d34571a6..9494601b 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/UpdateKeyRequestOrBuilder.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/UpdateKeyRequestOrBuilder.java @@ -31,8 +31,10 @@ public interface UpdateKeyRequestOrBuilder * * * - * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return Whether the key field is set. */ boolean hasKey(); /** @@ -43,8 +45,10 @@ public interface UpdateKeyRequestOrBuilder * * * - * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The key. */ com.google.recaptchaenterprise.v1beta1.Key getKey(); /** @@ -55,7 +59,7 @@ public interface UpdateKeyRequestOrBuilder * * * - * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.recaptchaenterprise.v1beta1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; * */ com.google.recaptchaenterprise.v1beta1.KeyOrBuilder getKeyOrBuilder(); @@ -70,6 +74,8 @@ public interface UpdateKeyRequestOrBuilder * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** @@ -82,6 +88,8 @@ public interface UpdateKeyRequestOrBuilder * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/WebKeySettings.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/WebKeySettings.java index 38d14d87..910a0e2c 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/WebKeySettings.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/WebKeySettings.java @@ -43,6 +43,12 @@ private WebKeySettings() { challengeSecurityPreference_ = 0; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WebKeySettings(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -70,9 +76,9 @@ private WebKeySettings( case 10: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { allowedDomains_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } allowedDomains_.add(s); break; @@ -115,7 +121,7 @@ private WebKeySettings( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { allowedDomains_ = allowedDomains_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -250,12 +256,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static IntegrationType valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static IntegrationType forNumber(int value) { switch (value) { case 0: @@ -423,12 +437,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static ChallengeSecurityPreference valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static ChallengeSecurityPreference forNumber(int value) { switch (value) { case 0: @@ -493,7 +515,6 @@ private ChallengeSecurityPreference(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.recaptchaenterprise.v1beta1.WebKeySettings.ChallengeSecurityPreference) } - private int bitField0_; public static final int ENFORCE_ALLOWED_DOMAINS_FIELD_NUMBER = 3; private boolean enforceAllowedDomains_; /** @@ -504,6 +525,8 @@ private ChallengeSecurityPreference(int value) { * * * bool enforce_allowed_domains = 3; + * + * @return The enforceAllowedDomains. */ public boolean getEnforceAllowedDomains() { return enforceAllowedDomains_; @@ -522,6 +545,8 @@ public boolean getEnforceAllowedDomains() { * * * repeated string allowed_domains = 1; + * + * @return A list containing the allowedDomains. */ public com.google.protobuf.ProtocolStringList getAllowedDomainsList() { return allowedDomains_; @@ -537,6 +562,8 @@ public com.google.protobuf.ProtocolStringList getAllowedDomainsList() { * * * repeated string allowed_domains = 1; + * + * @return The count of allowedDomains. */ public int getAllowedDomainsCount() { return allowedDomains_.size(); @@ -552,6 +579,9 @@ public int getAllowedDomainsCount() { * * * repeated string allowed_domains = 1; + * + * @param index The index of the element to return. + * @return The allowedDomains at the given index. */ public java.lang.String getAllowedDomains(int index) { return allowedDomains_.get(index); @@ -567,6 +597,9 @@ public java.lang.String getAllowedDomains(int index) { * * * repeated string allowed_domains = 1; + * + * @param index The index of the value to return. + * @return The bytes of the allowedDomains at the given index. */ public com.google.protobuf.ByteString getAllowedDomainsBytes(int index) { return allowedDomains_.getByteString(index); @@ -582,6 +615,8 @@ public com.google.protobuf.ByteString getAllowedDomainsBytes(int index) { * * * bool allow_amp_traffic = 2; + * + * @return The allowAmpTraffic. */ public boolean getAllowAmpTraffic() { return allowAmpTraffic_; @@ -599,6 +634,8 @@ public boolean getAllowAmpTraffic() { * * .google.cloud.recaptchaenterprise.v1beta1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The enum numeric value on the wire for integrationType. */ public int getIntegrationTypeValue() { return integrationType_; @@ -613,6 +650,8 @@ public int getIntegrationTypeValue() { * * .google.cloud.recaptchaenterprise.v1beta1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The integrationType. */ public com.google.recaptchaenterprise.v1beta1.WebKeySettings.IntegrationType getIntegrationType() { @@ -639,6 +678,8 @@ public int getIntegrationTypeValue() { * * .google.cloud.recaptchaenterprise.v1beta1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5; * + * + * @return The enum numeric value on the wire for challengeSecurityPreference. */ public int getChallengeSecurityPreferenceValue() { return challengeSecurityPreference_; @@ -655,6 +696,8 @@ public int getChallengeSecurityPreferenceValue() { * * .google.cloud.recaptchaenterprise.v1beta1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5; * + * + * @return The challengeSecurityPreference. */ public com.google.recaptchaenterprise.v1beta1.WebKeySettings.ChallengeSecurityPreference getChallengeSecurityPreference() { @@ -932,7 +975,7 @@ public Builder clear() { enforceAllowedDomains_ = false; allowedDomains_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); allowAmpTraffic_ = false; integrationType_ = 0; @@ -967,17 +1010,15 @@ public com.google.recaptchaenterprise.v1beta1.WebKeySettings buildPartial() { com.google.recaptchaenterprise.v1beta1.WebKeySettings result = new com.google.recaptchaenterprise.v1beta1.WebKeySettings(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.enforceAllowedDomains_ = enforceAllowedDomains_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { allowedDomains_ = allowedDomains_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.allowedDomains_ = allowedDomains_; result.allowAmpTraffic_ = allowAmpTraffic_; result.integrationType_ = integrationType_; result.challengeSecurityPreference_ = challengeSecurityPreference_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1034,7 +1075,7 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.WebKeySettings o if (!other.allowedDomains_.isEmpty()) { if (allowedDomains_.isEmpty()) { allowedDomains_ = other.allowedDomains_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAllowedDomainsIsMutable(); allowedDomains_.addAll(other.allowedDomains_); @@ -1091,6 +1132,8 @@ public Builder mergeFrom( * * * bool enforce_allowed_domains = 3; + * + * @return The enforceAllowedDomains. */ public boolean getEnforceAllowedDomains() { return enforceAllowedDomains_; @@ -1103,6 +1146,9 @@ public boolean getEnforceAllowedDomains() { * * * bool enforce_allowed_domains = 3; + * + * @param value The enforceAllowedDomains to set. + * @return This builder for chaining. */ public Builder setEnforceAllowedDomains(boolean value) { @@ -1118,6 +1164,8 @@ public Builder setEnforceAllowedDomains(boolean value) { * * * bool enforce_allowed_domains = 3; + * + * @return This builder for chaining. */ public Builder clearEnforceAllowedDomains() { @@ -1130,9 +1178,9 @@ public Builder clearEnforceAllowedDomains() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAllowedDomainsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { allowedDomains_ = new com.google.protobuf.LazyStringArrayList(allowedDomains_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } /** @@ -1146,6 +1194,8 @@ private void ensureAllowedDomainsIsMutable() { * * * repeated string allowed_domains = 1; + * + * @return A list containing the allowedDomains. */ public com.google.protobuf.ProtocolStringList getAllowedDomainsList() { return allowedDomains_.getUnmodifiableView(); @@ -1161,6 +1211,8 @@ public com.google.protobuf.ProtocolStringList getAllowedDomainsList() { * * * repeated string allowed_domains = 1; + * + * @return The count of allowedDomains. */ public int getAllowedDomainsCount() { return allowedDomains_.size(); @@ -1176,6 +1228,9 @@ public int getAllowedDomainsCount() { * * * repeated string allowed_domains = 1; + * + * @param index The index of the element to return. + * @return The allowedDomains at the given index. */ public java.lang.String getAllowedDomains(int index) { return allowedDomains_.get(index); @@ -1191,6 +1246,9 @@ public java.lang.String getAllowedDomains(int index) { * * * repeated string allowed_domains = 1; + * + * @param index The index of the value to return. + * @return The bytes of the allowedDomains at the given index. */ public com.google.protobuf.ByteString getAllowedDomainsBytes(int index) { return allowedDomains_.getByteString(index); @@ -1206,6 +1264,10 @@ public com.google.protobuf.ByteString getAllowedDomainsBytes(int index) { * * * repeated string allowed_domains = 1; + * + * @param index The index to set the value at. + * @param value The allowedDomains to set. + * @return This builder for chaining. */ public Builder setAllowedDomains(int index, java.lang.String value) { if (value == null) { @@ -1227,6 +1289,9 @@ public Builder setAllowedDomains(int index, java.lang.String value) { * * * repeated string allowed_domains = 1; + * + * @param value The allowedDomains to add. + * @return This builder for chaining. */ public Builder addAllowedDomains(java.lang.String value) { if (value == null) { @@ -1248,6 +1313,9 @@ public Builder addAllowedDomains(java.lang.String value) { * * * repeated string allowed_domains = 1; + * + * @param values The allowedDomains to add. + * @return This builder for chaining. */ public Builder addAllAllowedDomains(java.lang.Iterable values) { ensureAllowedDomainsIsMutable(); @@ -1266,10 +1334,12 @@ public Builder addAllAllowedDomains(java.lang.Iterable values) * * * repeated string allowed_domains = 1; + * + * @return This builder for chaining. */ public Builder clearAllowedDomains() { allowedDomains_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1284,6 +1354,9 @@ public Builder clearAllowedDomains() { * * * repeated string allowed_domains = 1; + * + * @param value The bytes of the allowedDomains to add. + * @return This builder for chaining. */ public Builder addAllowedDomainsBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1305,6 +1378,8 @@ public Builder addAllowedDomainsBytes(com.google.protobuf.ByteString value) { * * * bool allow_amp_traffic = 2; + * + * @return The allowAmpTraffic. */ public boolean getAllowAmpTraffic() { return allowAmpTraffic_; @@ -1317,6 +1392,9 @@ public boolean getAllowAmpTraffic() { * * * bool allow_amp_traffic = 2; + * + * @param value The allowAmpTraffic to set. + * @return This builder for chaining. */ public Builder setAllowAmpTraffic(boolean value) { @@ -1332,6 +1410,8 @@ public Builder setAllowAmpTraffic(boolean value) { * * * bool allow_amp_traffic = 2; + * + * @return This builder for chaining. */ public Builder clearAllowAmpTraffic() { @@ -1351,6 +1431,8 @@ public Builder clearAllowAmpTraffic() { * * .google.cloud.recaptchaenterprise.v1beta1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The enum numeric value on the wire for integrationType. */ public int getIntegrationTypeValue() { return integrationType_; @@ -1365,6 +1447,9 @@ public int getIntegrationTypeValue() { * * .google.cloud.recaptchaenterprise.v1beta1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param value The enum numeric value on the wire for integrationType to set. + * @return This builder for chaining. */ public Builder setIntegrationTypeValue(int value) { integrationType_ = value; @@ -1381,6 +1466,8 @@ public Builder setIntegrationTypeValue(int value) { * * .google.cloud.recaptchaenterprise.v1beta1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The integrationType. */ public com.google.recaptchaenterprise.v1beta1.WebKeySettings.IntegrationType getIntegrationType() { @@ -1402,6 +1489,9 @@ public Builder setIntegrationTypeValue(int value) { * * .google.cloud.recaptchaenterprise.v1beta1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param value The integrationType to set. + * @return This builder for chaining. */ public Builder setIntegrationType( com.google.recaptchaenterprise.v1beta1.WebKeySettings.IntegrationType value) { @@ -1423,6 +1513,8 @@ public Builder setIntegrationType( * * .google.cloud.recaptchaenterprise.v1beta1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return This builder for chaining. */ public Builder clearIntegrationType() { @@ -1444,6 +1536,8 @@ public Builder clearIntegrationType() { * * .google.cloud.recaptchaenterprise.v1beta1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5; * + * + * @return The enum numeric value on the wire for challengeSecurityPreference. */ public int getChallengeSecurityPreferenceValue() { return challengeSecurityPreference_; @@ -1460,6 +1554,9 @@ public int getChallengeSecurityPreferenceValue() { * * .google.cloud.recaptchaenterprise.v1beta1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5; * + * + * @param value The enum numeric value on the wire for challengeSecurityPreference to set. + * @return This builder for chaining. */ public Builder setChallengeSecurityPreferenceValue(int value) { challengeSecurityPreference_ = value; @@ -1478,6 +1575,8 @@ public Builder setChallengeSecurityPreferenceValue(int value) { * * .google.cloud.recaptchaenterprise.v1beta1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5; * + * + * @return The challengeSecurityPreference. */ public com.google.recaptchaenterprise.v1beta1.WebKeySettings.ChallengeSecurityPreference getChallengeSecurityPreference() { @@ -1502,6 +1601,9 @@ public Builder setChallengeSecurityPreferenceValue(int value) { * * .google.cloud.recaptchaenterprise.v1beta1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5; * + * + * @param value The challengeSecurityPreference to set. + * @return This builder for chaining. */ public Builder setChallengeSecurityPreference( com.google.recaptchaenterprise.v1beta1.WebKeySettings.ChallengeSecurityPreference value) { @@ -1525,6 +1627,8 @@ public Builder setChallengeSecurityPreference( * * .google.cloud.recaptchaenterprise.v1beta1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5; * + * + * @return This builder for chaining. */ public Builder clearChallengeSecurityPreference() { diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/WebKeySettingsOrBuilder.java b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/WebKeySettingsOrBuilder.java index 3fa9f411..7eaa2f7a 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/WebKeySettingsOrBuilder.java +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/WebKeySettingsOrBuilder.java @@ -31,6 +31,8 @@ public interface WebKeySettingsOrBuilder * * * bool enforce_allowed_domains = 3; + * + * @return The enforceAllowedDomains. */ boolean getEnforceAllowedDomains(); @@ -45,6 +47,8 @@ public interface WebKeySettingsOrBuilder * * * repeated string allowed_domains = 1; + * + * @return A list containing the allowedDomains. */ java.util.List getAllowedDomainsList(); /** @@ -58,6 +62,8 @@ public interface WebKeySettingsOrBuilder * * * repeated string allowed_domains = 1; + * + * @return The count of allowedDomains. */ int getAllowedDomainsCount(); /** @@ -71,6 +77,9 @@ public interface WebKeySettingsOrBuilder * * * repeated string allowed_domains = 1; + * + * @param index The index of the element to return. + * @return The allowedDomains at the given index. */ java.lang.String getAllowedDomains(int index); /** @@ -84,6 +93,9 @@ public interface WebKeySettingsOrBuilder * * * repeated string allowed_domains = 1; + * + * @param index The index of the value to return. + * @return The bytes of the allowedDomains at the given index. */ com.google.protobuf.ByteString getAllowedDomainsBytes(int index); @@ -95,6 +107,8 @@ public interface WebKeySettingsOrBuilder * * * bool allow_amp_traffic = 2; + * + * @return The allowAmpTraffic. */ boolean getAllowAmpTraffic(); @@ -108,6 +122,8 @@ public interface WebKeySettingsOrBuilder * * .google.cloud.recaptchaenterprise.v1beta1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The enum numeric value on the wire for integrationType. */ int getIntegrationTypeValue(); /** @@ -120,6 +136,8 @@ public interface WebKeySettingsOrBuilder * * .google.cloud.recaptchaenterprise.v1beta1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The integrationType. */ com.google.recaptchaenterprise.v1beta1.WebKeySettings.IntegrationType getIntegrationType(); @@ -135,6 +153,8 @@ public interface WebKeySettingsOrBuilder * * .google.cloud.recaptchaenterprise.v1beta1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5; * + * + * @return The enum numeric value on the wire for challengeSecurityPreference. */ int getChallengeSecurityPreferenceValue(); /** @@ -149,6 +169,8 @@ public interface WebKeySettingsOrBuilder * * .google.cloud.recaptchaenterprise.v1beta1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5; * + * + * @return The challengeSecurityPreference. */ com.google.recaptchaenterprise.v1beta1.WebKeySettings.ChallengeSecurityPreference getChallengeSecurityPreference(); diff --git a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/proto/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/proto/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto index 380b42f0..12e99b48 100644 --- a/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/proto/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto +++ b/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/proto/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto @@ -319,12 +319,7 @@ message GetKeyRequest { // The update key request message. message UpdateKeyRequest { // Required. The key to update. - Key key = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "recaptchaenterprise.googleapis.com/Key" - } - ]; + Key key = 1 [(google.api.field_behavior) = REQUIRED]; // Optional. The mask to control which field of the key get updated. If the mask is not // present, all fields will be updated. diff --git a/synth.metadata b/synth.metadata index 6d0be98c..ca8d4b53 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,26 +1,26 @@ { - "updateTime": "2019-11-30T08:51:47.173480Z", + "updateTime": "2019-12-24T08:52:10.247869Z", "sources": [ { "generator": { "name": "artman", - "version": "0.42.1", - "dockerImage": "googleapis/artman@sha256:c773192618c608a7a0415dd95282f841f8e6bcdef7dd760a988c93b77a64bd57" + "version": "0.42.3", + "dockerImage": "googleapis/artman@sha256:feed210b5723c6f524b52ef6d7740a030f2d1a8f7c29a71c5e5b4481ceaad7f5" } }, { "generator": { "name": "artman", - "version": "0.42.1", - "dockerImage": "googleapis/artman@sha256:c773192618c608a7a0415dd95282f841f8e6bcdef7dd760a988c93b77a64bd57" + "version": "0.42.3", + "dockerImage": "googleapis/artman@sha256:feed210b5723c6f524b52ef6d7740a030f2d1a8f7c29a71c5e5b4481ceaad7f5" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "6ab0171e3688bfdcf3dbc4056e2df6345e843565", - "internalRef": "283066965" + "sha": "46e52fd64973e815cae61e78b14608fe7aa7b1df", + "internalRef": "286958627" } }, { @@ -42,5 +42,427 @@ "config": "google/cloud/recaptchaenterprise/artman_recaptchaenterprise_v1beta1.yaml" } } + ], + "newFiles": [ + { + "path": "LICENSE" + }, + { + "path": "renovate.json" + }, + { + "path": "README.md" + }, + { + "path": "java.header" + }, + { + "path": "CHANGELOG.md" + }, + { + "path": "synth.py" + }, + { + "path": ".repo-metadata.json" + }, + { + "path": "codecov.yaml" + }, + { + "path": "synth.metadata" + }, + { + "path": "CONTRIBUTING.md" + }, + { + "path": "pom.xml" + }, + { + "path": "license-checks.xml" + }, + { + "path": ".gitignore" + }, + { + "path": "versions.txt" + }, + { + "path": "CODE_OF_CONDUCT.md" + }, + { + "path": ".git/index" + }, + { + "path": ".git/config" + }, + { + "path": ".git/HEAD" + }, + { + "path": ".git/shallow" + }, + { + "path": ".git/packed-refs" + }, + { + "path": ".git/logs/HEAD" + }, + { + "path": ".git/logs/refs/remotes/origin/HEAD" + }, + { + "path": ".git/logs/refs/heads/master" + }, + { + "path": ".git/logs/refs/heads/autosynth" + }, + { + "path": ".git/refs/remotes/origin/HEAD" + }, + { + "path": ".git/refs/heads/master" + }, + { + "path": ".git/refs/heads/autosynth" + }, + { + "path": ".git/objects/pack/pack-b809f44e2273d146312f100bb679c4bd9820ef8e.pack" + }, + { + "path": ".git/objects/pack/pack-b809f44e2273d146312f100bb679c4bd9820ef8e.idx" + }, + { + "path": "grpc-google-cloud-recaptchaenterprise-v1beta1/pom.xml" + }, + { + "path": "grpc-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Grpc.java" + }, + { + "path": ".kokoro/trampoline.sh" + }, + { + "path": ".kokoro/coerce_logs.sh" + }, + { + "path": ".kokoro/common.cfg" + }, + { + "path": ".kokoro/linkage-monitor.sh" + }, + { + "path": ".kokoro/dependencies.sh" + }, + { + "path": ".kokoro/build.sh" + }, + { + "path": ".kokoro/build.bat" + }, + { + "path": ".kokoro/presubmit/java8-osx.cfg" + }, + { + "path": ".kokoro/presubmit/java8.cfg" + }, + { + "path": ".kokoro/presubmit/common.cfg" + }, + { + "path": ".kokoro/presubmit/java7.cfg" + }, + { + "path": ".kokoro/presubmit/java8-win.cfg" + }, + { + "path": ".kokoro/presubmit/lint.cfg" + }, + { + "path": ".kokoro/presubmit/java11.cfg" + }, + { + "path": ".kokoro/presubmit/integration.cfg" + }, + { + "path": ".kokoro/presubmit/dependencies.cfg" + }, + { + "path": ".kokoro/presubmit/linkage-monitor.cfg" + }, + { + "path": ".kokoro/presubmit/clirr.cfg" + }, + { + "path": ".kokoro/release/publish_javadoc.sh" + }, + { + "path": ".kokoro/release/drop.sh" + }, + { + "path": ".kokoro/release/promote.cfg" + }, + { + "path": ".kokoro/release/snapshot.sh" + }, + { + "path": ".kokoro/release/common.cfg" + }, + { + "path": ".kokoro/release/bump_snapshot.sh" + }, + { + "path": ".kokoro/release/stage.sh" + }, + { + "path": ".kokoro/release/promote.sh" + }, + { + "path": ".kokoro/release/snapshot.cfg" + }, + { + "path": ".kokoro/release/bump_snapshot.cfg" + }, + { + "path": ".kokoro/release/publish_javadoc.cfg" + }, + { + "path": ".kokoro/release/drop.cfg" + }, + { + "path": ".kokoro/release/common.sh" + }, + { + "path": ".kokoro/release/stage.cfg" + }, + { + "path": ".kokoro/continuous/java8-osx.cfg" + }, + { + "path": ".kokoro/continuous/java8.cfg" + }, + { + "path": ".kokoro/continuous/common.cfg" + }, + { + "path": ".kokoro/continuous/java7.cfg" + }, + { + "path": ".kokoro/continuous/java8-win.cfg" + }, + { + "path": ".kokoro/continuous/propose_release.cfg" + }, + { + "path": ".kokoro/continuous/lint.cfg" + }, + { + "path": ".kokoro/continuous/java11.cfg" + }, + { + "path": ".kokoro/continuous/integration.cfg" + }, + { + "path": ".kokoro/continuous/dependencies.cfg" + }, + { + "path": ".kokoro/continuous/propose_release.sh" + }, + { + "path": ".kokoro/nightly/java8-osx.cfg" + }, + { + "path": ".kokoro/nightly/java8.cfg" + }, + { + "path": ".kokoro/nightly/common.cfg" + }, + { + "path": ".kokoro/nightly/java7.cfg" + }, + { + "path": ".kokoro/nightly/java8-win.cfg" + }, + { + "path": ".kokoro/nightly/lint.cfg" + }, + { + "path": ".kokoro/nightly/java11.cfg" + }, + { + "path": ".kokoro/nightly/integration.cfg" + }, + { + "path": ".kokoro/nightly/dependencies.cfg" + }, + { + "path": "google-cloud-recaptchaenterprise-bom/pom.xml" + }, + { + "path": "__pycache__/synth.cpython-36.pyc" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/clirr-ignored-differences.xml" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/pom.xml" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponse.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/DeleteKeyRequest.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateKeyRequest.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Event.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/IOSKeySettings.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/UpdateKeyRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateKeyRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ListKeysResponse.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenProperties.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ListKeysRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AndroidKeySettingsOrBuilder.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/DeleteKeyRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseProto.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentOrBuilder.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/GetKeyRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Assessment.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AndroidKeySettings.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/UpdateKeyRequest.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/IOSKeySettingsOrBuilder.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/WebKeySettingsOrBuilder.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/EventOrBuilder.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Key.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ListKeysResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/GetKeyRequest.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequest.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentName.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ListKeysRequest.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/KeyName.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/KeyOrBuilder.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/WebKeySettings.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenPropertiesOrBuilder.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ProjectName.java" + }, + { + "path": "proto-google-cloud-recaptchaenterprise-v1beta1/src/main/proto/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto" + }, + { + "path": ".github/PULL_REQUEST_TEMPLATE.md" + }, + { + "path": ".github/release-please.yml" + }, + { + "path": ".github/ISSUE_TEMPLATE/feature_request.md" + }, + { + "path": ".github/ISSUE_TEMPLATE/bug_report.md" + }, + { + "path": ".github/ISSUE_TEMPLATE/support_request.md" + }, + { + "path": "google-cloud-recaptchaenterprise/pom.xml" + }, + { + "path": "google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1ClientTest.java" + }, + { + "path": "google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/MockRecaptchaEnterpriseServiceV1Beta1Impl.java" + }, + { + "path": "google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/MockRecaptchaEnterpriseServiceV1Beta1.java" + }, + { + "path": "google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Settings.java" + }, + { + "path": "google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java" + }, + { + "path": "google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/package-info.java" + }, + { + "path": "google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/GrpcRecaptchaEnterpriseServiceV1Beta1Stub.java" + }, + { + "path": "google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1StubSettings.java" + }, + { + "path": "google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1Stub.java" + }, + { + "path": "google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/GrpcRecaptchaEnterpriseServiceV1Beta1CallableFactory.java" + } ] } \ No newline at end of file