diff --git a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseServiceGrpc.java b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseServiceGrpc.java deleted file mode 100644 index beb9bf10a6e6..000000000000 --- a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseServiceGrpc.java +++ /dev/null @@ -1,2513 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.recaptchaenterprise.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service to determine the likelihood an event is legitimate.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class RecaptchaEnterpriseServiceGrpc { - - private RecaptchaEnterpriseServiceGrpc() {} - - public static final java.lang.String SERVICE_NAME = - "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.CreateAssessmentRequest, - com.google.recaptchaenterprise.v1.Assessment> - getCreateAssessmentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateAssessment", - requestType = com.google.recaptchaenterprise.v1.CreateAssessmentRequest.class, - responseType = com.google.recaptchaenterprise.v1.Assessment.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.CreateAssessmentRequest, - com.google.recaptchaenterprise.v1.Assessment> - getCreateAssessmentMethod() { - io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.CreateAssessmentRequest, - com.google.recaptchaenterprise.v1.Assessment> - getCreateAssessmentMethod; - if ((getCreateAssessmentMethod = RecaptchaEnterpriseServiceGrpc.getCreateAssessmentMethod) - == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getCreateAssessmentMethod = RecaptchaEnterpriseServiceGrpc.getCreateAssessmentMethod) - == null) { - RecaptchaEnterpriseServiceGrpc.getCreateAssessmentMethod = - getCreateAssessmentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAssessment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.CreateAssessmentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.Assessment.getDefaultInstance())) - .setSchemaDescriptor( - new RecaptchaEnterpriseServiceMethodDescriptorSupplier( - "CreateAssessment")) - .build(); - } - } - } - return getCreateAssessmentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest, - com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse> - getAnnotateAssessmentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AnnotateAssessment", - requestType = com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.class, - responseType = com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest, - com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse> - getAnnotateAssessmentMethod() { - io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest, - com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse> - getAnnotateAssessmentMethod; - if ((getAnnotateAssessmentMethod = RecaptchaEnterpriseServiceGrpc.getAnnotateAssessmentMethod) - == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getAnnotateAssessmentMethod = - RecaptchaEnterpriseServiceGrpc.getAnnotateAssessmentMethod) - == null) { - RecaptchaEnterpriseServiceGrpc.getAnnotateAssessmentMethod = - getAnnotateAssessmentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AnnotateAssessment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new RecaptchaEnterpriseServiceMethodDescriptorSupplier( - "AnnotateAssessment")) - .build(); - } - } - } - return getAnnotateAssessmentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.CreateKeyRequest, com.google.recaptchaenterprise.v1.Key> - getCreateKeyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateKey", - requestType = com.google.recaptchaenterprise.v1.CreateKeyRequest.class, - responseType = com.google.recaptchaenterprise.v1.Key.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.CreateKeyRequest, com.google.recaptchaenterprise.v1.Key> - getCreateKeyMethod() { - io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.CreateKeyRequest, - com.google.recaptchaenterprise.v1.Key> - getCreateKeyMethod; - if ((getCreateKeyMethod = RecaptchaEnterpriseServiceGrpc.getCreateKeyMethod) == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getCreateKeyMethod = RecaptchaEnterpriseServiceGrpc.getCreateKeyMethod) == null) { - RecaptchaEnterpriseServiceGrpc.getCreateKeyMethod = - getCreateKeyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateKey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.CreateKeyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.Key.getDefaultInstance())) - .setSchemaDescriptor( - new RecaptchaEnterpriseServiceMethodDescriptorSupplier("CreateKey")) - .build(); - } - } - } - return getCreateKeyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.ListKeysRequest, - com.google.recaptchaenterprise.v1.ListKeysResponse> - getListKeysMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListKeys", - requestType = com.google.recaptchaenterprise.v1.ListKeysRequest.class, - responseType = com.google.recaptchaenterprise.v1.ListKeysResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.ListKeysRequest, - com.google.recaptchaenterprise.v1.ListKeysResponse> - getListKeysMethod() { - io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.ListKeysRequest, - com.google.recaptchaenterprise.v1.ListKeysResponse> - getListKeysMethod; - if ((getListKeysMethod = RecaptchaEnterpriseServiceGrpc.getListKeysMethod) == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getListKeysMethod = RecaptchaEnterpriseServiceGrpc.getListKeysMethod) == null) { - RecaptchaEnterpriseServiceGrpc.getListKeysMethod = - getListKeysMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListKeys")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.ListKeysRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.ListKeysResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new RecaptchaEnterpriseServiceMethodDescriptorSupplier("ListKeys")) - .build(); - } - } - } - return getListKeysMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest, - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse> - getRetrieveLegacySecretKeyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RetrieveLegacySecretKey", - requestType = com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.class, - responseType = com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest, - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse> - getRetrieveLegacySecretKeyMethod() { - io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest, - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse> - getRetrieveLegacySecretKeyMethod; - if ((getRetrieveLegacySecretKeyMethod = - RecaptchaEnterpriseServiceGrpc.getRetrieveLegacySecretKeyMethod) - == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getRetrieveLegacySecretKeyMethod = - RecaptchaEnterpriseServiceGrpc.getRetrieveLegacySecretKeyMethod) - == null) { - RecaptchaEnterpriseServiceGrpc.getRetrieveLegacySecretKeyMethod = - getRetrieveLegacySecretKeyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "RetrieveLegacySecretKey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new RecaptchaEnterpriseServiceMethodDescriptorSupplier( - "RetrieveLegacySecretKey")) - .build(); - } - } - } - return getRetrieveLegacySecretKeyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.GetKeyRequest, com.google.recaptchaenterprise.v1.Key> - getGetKeyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetKey", - requestType = com.google.recaptchaenterprise.v1.GetKeyRequest.class, - responseType = com.google.recaptchaenterprise.v1.Key.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.GetKeyRequest, com.google.recaptchaenterprise.v1.Key> - getGetKeyMethod() { - io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.GetKeyRequest, com.google.recaptchaenterprise.v1.Key> - getGetKeyMethod; - if ((getGetKeyMethod = RecaptchaEnterpriseServiceGrpc.getGetKeyMethod) == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getGetKeyMethod = RecaptchaEnterpriseServiceGrpc.getGetKeyMethod) == null) { - RecaptchaEnterpriseServiceGrpc.getGetKeyMethod = - getGetKeyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetKey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.GetKeyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.Key.getDefaultInstance())) - .setSchemaDescriptor( - new RecaptchaEnterpriseServiceMethodDescriptorSupplier("GetKey")) - .build(); - } - } - } - return getGetKeyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.UpdateKeyRequest, com.google.recaptchaenterprise.v1.Key> - getUpdateKeyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateKey", - requestType = com.google.recaptchaenterprise.v1.UpdateKeyRequest.class, - responseType = com.google.recaptchaenterprise.v1.Key.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.UpdateKeyRequest, com.google.recaptchaenterprise.v1.Key> - getUpdateKeyMethod() { - io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.UpdateKeyRequest, - com.google.recaptchaenterprise.v1.Key> - getUpdateKeyMethod; - if ((getUpdateKeyMethod = RecaptchaEnterpriseServiceGrpc.getUpdateKeyMethod) == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getUpdateKeyMethod = RecaptchaEnterpriseServiceGrpc.getUpdateKeyMethod) == null) { - RecaptchaEnterpriseServiceGrpc.getUpdateKeyMethod = - getUpdateKeyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateKey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.UpdateKeyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.Key.getDefaultInstance())) - .setSchemaDescriptor( - new RecaptchaEnterpriseServiceMethodDescriptorSupplier("UpdateKey")) - .build(); - } - } - } - return getUpdateKeyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.DeleteKeyRequest, com.google.protobuf.Empty> - getDeleteKeyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteKey", - requestType = com.google.recaptchaenterprise.v1.DeleteKeyRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.DeleteKeyRequest, com.google.protobuf.Empty> - getDeleteKeyMethod() { - io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.DeleteKeyRequest, com.google.protobuf.Empty> - getDeleteKeyMethod; - if ((getDeleteKeyMethod = RecaptchaEnterpriseServiceGrpc.getDeleteKeyMethod) == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getDeleteKeyMethod = RecaptchaEnterpriseServiceGrpc.getDeleteKeyMethod) == null) { - RecaptchaEnterpriseServiceGrpc.getDeleteKeyMethod = - getDeleteKeyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteKey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.DeleteKeyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new RecaptchaEnterpriseServiceMethodDescriptorSupplier("DeleteKey")) - .build(); - } - } - } - return getDeleteKeyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.MigrateKeyRequest, - com.google.recaptchaenterprise.v1.Key> - getMigrateKeyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "MigrateKey", - requestType = com.google.recaptchaenterprise.v1.MigrateKeyRequest.class, - responseType = com.google.recaptchaenterprise.v1.Key.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.MigrateKeyRequest, - com.google.recaptchaenterprise.v1.Key> - getMigrateKeyMethod() { - io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.MigrateKeyRequest, - com.google.recaptchaenterprise.v1.Key> - getMigrateKeyMethod; - if ((getMigrateKeyMethod = RecaptchaEnterpriseServiceGrpc.getMigrateKeyMethod) == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getMigrateKeyMethod = RecaptchaEnterpriseServiceGrpc.getMigrateKeyMethod) == null) { - RecaptchaEnterpriseServiceGrpc.getMigrateKeyMethod = - getMigrateKeyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MigrateKey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.MigrateKeyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.Key.getDefaultInstance())) - .setSchemaDescriptor( - new RecaptchaEnterpriseServiceMethodDescriptorSupplier("MigrateKey")) - .build(); - } - } - } - return getMigrateKeyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.GetMetricsRequest, - com.google.recaptchaenterprise.v1.Metrics> - getGetMetricsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMetrics", - requestType = com.google.recaptchaenterprise.v1.GetMetricsRequest.class, - responseType = com.google.recaptchaenterprise.v1.Metrics.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.GetMetricsRequest, - com.google.recaptchaenterprise.v1.Metrics> - getGetMetricsMethod() { - io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.GetMetricsRequest, - com.google.recaptchaenterprise.v1.Metrics> - getGetMetricsMethod; - if ((getGetMetricsMethod = RecaptchaEnterpriseServiceGrpc.getGetMetricsMethod) == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getGetMetricsMethod = RecaptchaEnterpriseServiceGrpc.getGetMetricsMethod) == null) { - RecaptchaEnterpriseServiceGrpc.getGetMetricsMethod = - getGetMetricsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMetrics")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.GetMetricsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.Metrics.getDefaultInstance())) - .setSchemaDescriptor( - new RecaptchaEnterpriseServiceMethodDescriptorSupplier("GetMetrics")) - .build(); - } - } - } - return getGetMetricsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest, - com.google.recaptchaenterprise.v1.FirewallPolicy> - getCreateFirewallPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFirewallPolicy", - requestType = com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.class, - responseType = com.google.recaptchaenterprise.v1.FirewallPolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest, - com.google.recaptchaenterprise.v1.FirewallPolicy> - getCreateFirewallPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest, - com.google.recaptchaenterprise.v1.FirewallPolicy> - getCreateFirewallPolicyMethod; - if ((getCreateFirewallPolicyMethod = - RecaptchaEnterpriseServiceGrpc.getCreateFirewallPolicyMethod) - == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getCreateFirewallPolicyMethod = - RecaptchaEnterpriseServiceGrpc.getCreateFirewallPolicyMethod) - == null) { - RecaptchaEnterpriseServiceGrpc.getCreateFirewallPolicyMethod = - getCreateFirewallPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateFirewallPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.FirewallPolicy - .getDefaultInstance())) - .setSchemaDescriptor( - new RecaptchaEnterpriseServiceMethodDescriptorSupplier( - "CreateFirewallPolicy")) - .build(); - } - } - } - return getCreateFirewallPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest, - com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse> - getListFirewallPoliciesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFirewallPolicies", - requestType = com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.class, - responseType = com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest, - com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse> - getListFirewallPoliciesMethod() { - io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest, - com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse> - getListFirewallPoliciesMethod; - if ((getListFirewallPoliciesMethod = - RecaptchaEnterpriseServiceGrpc.getListFirewallPoliciesMethod) - == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getListFirewallPoliciesMethod = - RecaptchaEnterpriseServiceGrpc.getListFirewallPoliciesMethod) - == null) { - RecaptchaEnterpriseServiceGrpc.getListFirewallPoliciesMethod = - getListFirewallPoliciesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListFirewallPolicies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new RecaptchaEnterpriseServiceMethodDescriptorSupplier( - "ListFirewallPolicies")) - .build(); - } - } - } - return getListFirewallPoliciesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest, - com.google.recaptchaenterprise.v1.FirewallPolicy> - getGetFirewallPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFirewallPolicy", - requestType = com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.class, - responseType = com.google.recaptchaenterprise.v1.FirewallPolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest, - com.google.recaptchaenterprise.v1.FirewallPolicy> - getGetFirewallPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest, - com.google.recaptchaenterprise.v1.FirewallPolicy> - getGetFirewallPolicyMethod; - if ((getGetFirewallPolicyMethod = RecaptchaEnterpriseServiceGrpc.getGetFirewallPolicyMethod) - == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getGetFirewallPolicyMethod = RecaptchaEnterpriseServiceGrpc.getGetFirewallPolicyMethod) - == null) { - RecaptchaEnterpriseServiceGrpc.getGetFirewallPolicyMethod = - getGetFirewallPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFirewallPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.FirewallPolicy - .getDefaultInstance())) - .setSchemaDescriptor( - new RecaptchaEnterpriseServiceMethodDescriptorSupplier( - "GetFirewallPolicy")) - .build(); - } - } - } - return getGetFirewallPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest, - com.google.recaptchaenterprise.v1.FirewallPolicy> - getUpdateFirewallPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFirewallPolicy", - requestType = com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.class, - responseType = com.google.recaptchaenterprise.v1.FirewallPolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest, - com.google.recaptchaenterprise.v1.FirewallPolicy> - getUpdateFirewallPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest, - com.google.recaptchaenterprise.v1.FirewallPolicy> - getUpdateFirewallPolicyMethod; - if ((getUpdateFirewallPolicyMethod = - RecaptchaEnterpriseServiceGrpc.getUpdateFirewallPolicyMethod) - == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getUpdateFirewallPolicyMethod = - RecaptchaEnterpriseServiceGrpc.getUpdateFirewallPolicyMethod) - == null) { - RecaptchaEnterpriseServiceGrpc.getUpdateFirewallPolicyMethod = - getUpdateFirewallPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateFirewallPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.FirewallPolicy - .getDefaultInstance())) - .setSchemaDescriptor( - new RecaptchaEnterpriseServiceMethodDescriptorSupplier( - "UpdateFirewallPolicy")) - .build(); - } - } - } - return getUpdateFirewallPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest, com.google.protobuf.Empty> - getDeleteFirewallPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteFirewallPolicy", - requestType = com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest, com.google.protobuf.Empty> - getDeleteFirewallPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest, - com.google.protobuf.Empty> - getDeleteFirewallPolicyMethod; - if ((getDeleteFirewallPolicyMethod = - RecaptchaEnterpriseServiceGrpc.getDeleteFirewallPolicyMethod) - == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getDeleteFirewallPolicyMethod = - RecaptchaEnterpriseServiceGrpc.getDeleteFirewallPolicyMethod) - == null) { - RecaptchaEnterpriseServiceGrpc.getDeleteFirewallPolicyMethod = - getDeleteFirewallPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteFirewallPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new RecaptchaEnterpriseServiceMethodDescriptorSupplier( - "DeleteFirewallPolicy")) - .build(); - } - } - } - return getDeleteFirewallPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest, - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse> - getListRelatedAccountGroupsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRelatedAccountGroups", - requestType = com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.class, - responseType = com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest, - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse> - getListRelatedAccountGroupsMethod() { - io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest, - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse> - getListRelatedAccountGroupsMethod; - if ((getListRelatedAccountGroupsMethod = - RecaptchaEnterpriseServiceGrpc.getListRelatedAccountGroupsMethod) - == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getListRelatedAccountGroupsMethod = - RecaptchaEnterpriseServiceGrpc.getListRelatedAccountGroupsMethod) - == null) { - RecaptchaEnterpriseServiceGrpc.getListRelatedAccountGroupsMethod = - getListRelatedAccountGroupsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListRelatedAccountGroups")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new RecaptchaEnterpriseServiceMethodDescriptorSupplier( - "ListRelatedAccountGroups")) - .build(); - } - } - } - return getListRelatedAccountGroupsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest, - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse> - getListRelatedAccountGroupMembershipsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRelatedAccountGroupMemberships", - requestType = - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.class, - responseType = - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest, - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse> - getListRelatedAccountGroupMembershipsMethod() { - io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest, - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse> - getListRelatedAccountGroupMembershipsMethod; - if ((getListRelatedAccountGroupMembershipsMethod = - RecaptchaEnterpriseServiceGrpc.getListRelatedAccountGroupMembershipsMethod) - == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getListRelatedAccountGroupMembershipsMethod = - RecaptchaEnterpriseServiceGrpc.getListRelatedAccountGroupMembershipsMethod) - == null) { - RecaptchaEnterpriseServiceGrpc.getListRelatedAccountGroupMembershipsMethod = - getListRelatedAccountGroupMembershipsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "ListRelatedAccountGroupMemberships")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1 - .ListRelatedAccountGroupMembershipsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1 - .ListRelatedAccountGroupMembershipsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new RecaptchaEnterpriseServiceMethodDescriptorSupplier( - "ListRelatedAccountGroupMemberships")) - .build(); - } - } - } - return getListRelatedAccountGroupMembershipsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest, - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse> - getSearchRelatedAccountGroupMembershipsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SearchRelatedAccountGroupMemberships", - requestType = - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.class, - responseType = - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest, - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse> - getSearchRelatedAccountGroupMembershipsMethod() { - io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest, - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse> - getSearchRelatedAccountGroupMembershipsMethod; - if ((getSearchRelatedAccountGroupMembershipsMethod = - RecaptchaEnterpriseServiceGrpc.getSearchRelatedAccountGroupMembershipsMethod) - == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - if ((getSearchRelatedAccountGroupMembershipsMethod = - RecaptchaEnterpriseServiceGrpc.getSearchRelatedAccountGroupMembershipsMethod) - == null) { - RecaptchaEnterpriseServiceGrpc.getSearchRelatedAccountGroupMembershipsMethod = - getSearchRelatedAccountGroupMembershipsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "SearchRelatedAccountGroupMemberships")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1 - .SearchRelatedAccountGroupMembershipsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1 - .SearchRelatedAccountGroupMembershipsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new RecaptchaEnterpriseServiceMethodDescriptorSupplier( - "SearchRelatedAccountGroupMemberships")) - .build(); - } - } - } - return getSearchRelatedAccountGroupMembershipsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static RecaptchaEnterpriseServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RecaptchaEnterpriseServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RecaptchaEnterpriseServiceStub(channel, callOptions); - } - }; - return RecaptchaEnterpriseServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static RecaptchaEnterpriseServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RecaptchaEnterpriseServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RecaptchaEnterpriseServiceBlockingStub(channel, callOptions); - } - }; - return RecaptchaEnterpriseServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static RecaptchaEnterpriseServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RecaptchaEnterpriseServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RecaptchaEnterpriseServiceFutureStub(channel, callOptions); - } - }; - return RecaptchaEnterpriseServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service to determine the likelihood an event is legitimate.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Creates an Assessment of the likelihood an event is legitimate.
-     * 
- */ - default void createAssessment( - com.google.recaptchaenterprise.v1.CreateAssessmentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateAssessmentMethod(), responseObserver); - } - - /** - * - * - *
-     * Annotates a previously created Assessment to provide additional information
-     * on whether the event turned out to be authentic or fraudulent.
-     * 
- */ - default void annotateAssessment( - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAnnotateAssessmentMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new reCAPTCHA Enterprise key.
-     * 
- */ - default void createKey( - com.google.recaptchaenterprise.v1.CreateKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateKeyMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the list of all keys that belong to a project.
-     * 
- */ - default void listKeys( - com.google.recaptchaenterprise.v1.ListKeysRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListKeysMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the secret key related to the specified public key.
-     * You must use the legacy secret key only in a 3rd party integration with
-     * legacy reCAPTCHA.
-     * 
- */ - default void retrieveLegacySecretKey( - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest request, - io.grpc.stub.StreamObserver< - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRetrieveLegacySecretKeyMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the specified key.
-     * 
- */ - default void getKey( - com.google.recaptchaenterprise.v1.GetKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetKeyMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the specified key.
-     * 
- */ - default void updateKey( - com.google.recaptchaenterprise.v1.UpdateKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateKeyMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified key.
-     * 
- */ - default void deleteKey( - com.google.recaptchaenterprise.v1.DeleteKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteKeyMethod(), responseObserver); - } - - /** - * - * - *
-     * Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise.
-     * Once a key is migrated, it can be used from either product. SiteVerify
-     * requests are billed as CreateAssessment calls. You must be
-     * authenticated as one of the current owners of the reCAPTCHA Key, and
-     * your user must have the reCAPTCHA Enterprise Admin IAM role in the
-     * destination project.
-     * 
- */ - default void migrateKey( - com.google.recaptchaenterprise.v1.MigrateKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMigrateKeyMethod(), responseObserver); - } - - /** - * - * - *
-     * Get some aggregated metrics for a Key. This data can be used to build
-     * dashboards.
-     * 
- */ - default void getMetrics( - com.google.recaptchaenterprise.v1.GetMetricsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMetricsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
-     * Enterprise actions can be executed.
-     * A project may have a maximum of 1000 policies.
-     * 
- */ - default void createFirewallPolicy( - com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateFirewallPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the list of all firewall policies that belong to a project.
-     * 
- */ - default void listFirewallPolicies( - com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFirewallPoliciesMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the specified firewall policy.
-     * 
- */ - default void getFirewallPolicy( - com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetFirewallPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the specified firewall policy.
-     * 
- */ - default void updateFirewallPolicy( - com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateFirewallPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified firewall policy.
-     * 
- */ - default void deleteFirewallPolicy( - com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteFirewallPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * List groups of related accounts.
-     * 
- */ - default void listRelatedAccountGroups( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest request, - io.grpc.stub.StreamObserver< - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListRelatedAccountGroupsMethod(), responseObserver); - } - - /** - * - * - *
-     * Get memberships in a group of related accounts.
-     * 
- */ - default void listRelatedAccountGroupMemberships( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest request, - io.grpc.stub.StreamObserver< - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListRelatedAccountGroupMembershipsMethod(), responseObserver); - } - - /** - * - * - *
-     * Search group memberships related to a given account.
-     * 
- */ - default void searchRelatedAccountGroupMemberships( - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest request, - io.grpc.stub.StreamObserver< - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSearchRelatedAccountGroupMembershipsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service RecaptchaEnterpriseService. - * - *
-   * Service to determine the likelihood an event is legitimate.
-   * 
- */ - public abstract static class RecaptchaEnterpriseServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return RecaptchaEnterpriseServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service RecaptchaEnterpriseService. - * - *
-   * Service to determine the likelihood an event is legitimate.
-   * 
- */ - public static final class RecaptchaEnterpriseServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private RecaptchaEnterpriseServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected RecaptchaEnterpriseServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RecaptchaEnterpriseServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates an Assessment of the likelihood an event is legitimate.
-     * 
- */ - public void createAssessment( - com.google.recaptchaenterprise.v1.CreateAssessmentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAssessmentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Annotates a previously created Assessment to provide additional information
-     * on whether the event turned out to be authentic or fraudulent.
-     * 
- */ - public void annotateAssessment( - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAnnotateAssessmentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new reCAPTCHA Enterprise key.
-     * 
- */ - public void createKey( - com.google.recaptchaenterprise.v1.CreateKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateKeyMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Returns the list of all keys that belong to a project.
-     * 
- */ - public void listKeys( - com.google.recaptchaenterprise.v1.ListKeysRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListKeysMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Returns the secret key related to the specified public key.
-     * You must use the legacy secret key only in a 3rd party integration with
-     * legacy reCAPTCHA.
-     * 
- */ - public void retrieveLegacySecretKey( - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest request, - io.grpc.stub.StreamObserver< - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRetrieveLegacySecretKeyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the specified key.
-     * 
- */ - public void getKey( - com.google.recaptchaenterprise.v1.GetKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetKeyMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Updates the specified key.
-     * 
- */ - public void updateKey( - com.google.recaptchaenterprise.v1.UpdateKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateKeyMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Deletes the specified key.
-     * 
- */ - public void deleteKey( - com.google.recaptchaenterprise.v1.DeleteKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteKeyMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise.
-     * Once a key is migrated, it can be used from either product. SiteVerify
-     * requests are billed as CreateAssessment calls. You must be
-     * authenticated as one of the current owners of the reCAPTCHA Key, and
-     * your user must have the reCAPTCHA Enterprise Admin IAM role in the
-     * destination project.
-     * 
- */ - public void migrateKey( - com.google.recaptchaenterprise.v1.MigrateKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getMigrateKeyMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Get some aggregated metrics for a Key. This data can be used to build
-     * dashboards.
-     * 
- */ - public void getMetrics( - com.google.recaptchaenterprise.v1.GetMetricsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMetricsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
-     * Enterprise actions can be executed.
-     * A project may have a maximum of 1000 policies.
-     * 
- */ - public void createFirewallPolicy( - com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFirewallPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the list of all firewall policies that belong to a project.
-     * 
- */ - public void listFirewallPolicies( - com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFirewallPoliciesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the specified firewall policy.
-     * 
- */ - public void getFirewallPolicy( - com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFirewallPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the specified firewall policy.
-     * 
- */ - public void updateFirewallPolicy( - com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFirewallPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified firewall policy.
-     * 
- */ - public void deleteFirewallPolicy( - com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFirewallPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List groups of related accounts.
-     * 
- */ - public void listRelatedAccountGroups( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest request, - io.grpc.stub.StreamObserver< - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRelatedAccountGroupsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Get memberships in a group of related accounts.
-     * 
- */ - public void listRelatedAccountGroupMemberships( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest request, - io.grpc.stub.StreamObserver< - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRelatedAccountGroupMembershipsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Search group memberships related to a given account.
-     * 
- */ - public void searchRelatedAccountGroupMemberships( - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest request, - io.grpc.stub.StreamObserver< - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchRelatedAccountGroupMembershipsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service RecaptchaEnterpriseService. - * - *
-   * Service to determine the likelihood an event is legitimate.
-   * 
- */ - public static final class RecaptchaEnterpriseServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private RecaptchaEnterpriseServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected RecaptchaEnterpriseServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RecaptchaEnterpriseServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates an Assessment of the likelihood an event is legitimate.
-     * 
- */ - public com.google.recaptchaenterprise.v1.Assessment createAssessment( - com.google.recaptchaenterprise.v1.CreateAssessmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateAssessmentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Annotates a previously created Assessment to provide additional information
-     * on whether the event turned out to be authentic or fraudulent.
-     * 
- */ - public com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse annotateAssessment( - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAnnotateAssessmentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new reCAPTCHA Enterprise key.
-     * 
- */ - public com.google.recaptchaenterprise.v1.Key createKey( - com.google.recaptchaenterprise.v1.CreateKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateKeyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the list of all keys that belong to a project.
-     * 
- */ - public com.google.recaptchaenterprise.v1.ListKeysResponse listKeys( - com.google.recaptchaenterprise.v1.ListKeysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListKeysMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the secret key related to the specified public key.
-     * You must use the legacy secret key only in a 3rd party integration with
-     * legacy reCAPTCHA.
-     * 
- */ - public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse - retrieveLegacySecretKey( - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRetrieveLegacySecretKeyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the specified key.
-     * 
- */ - public com.google.recaptchaenterprise.v1.Key getKey( - com.google.recaptchaenterprise.v1.GetKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetKeyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the specified key.
-     * 
- */ - public com.google.recaptchaenterprise.v1.Key updateKey( - com.google.recaptchaenterprise.v1.UpdateKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateKeyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified key.
-     * 
- */ - public com.google.protobuf.Empty deleteKey( - com.google.recaptchaenterprise.v1.DeleteKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteKeyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise.
-     * Once a key is migrated, it can be used from either product. SiteVerify
-     * requests are billed as CreateAssessment calls. You must be
-     * authenticated as one of the current owners of the reCAPTCHA Key, and
-     * your user must have the reCAPTCHA Enterprise Admin IAM role in the
-     * destination project.
-     * 
- */ - public com.google.recaptchaenterprise.v1.Key migrateKey( - com.google.recaptchaenterprise.v1.MigrateKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getMigrateKeyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get some aggregated metrics for a Key. This data can be used to build
-     * dashboards.
-     * 
- */ - public com.google.recaptchaenterprise.v1.Metrics getMetrics( - com.google.recaptchaenterprise.v1.GetMetricsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMetricsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
-     * Enterprise actions can be executed.
-     * A project may have a maximum of 1000 policies.
-     * 
- */ - public com.google.recaptchaenterprise.v1.FirewallPolicy createFirewallPolicy( - com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFirewallPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the list of all firewall policies that belong to a project.
-     * 
- */ - public com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse listFirewallPolicies( - com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFirewallPoliciesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the specified firewall policy.
-     * 
- */ - public com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy( - com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFirewallPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the specified firewall policy.
-     * 
- */ - public com.google.recaptchaenterprise.v1.FirewallPolicy updateFirewallPolicy( - com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFirewallPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified firewall policy.
-     * 
- */ - public com.google.protobuf.Empty deleteFirewallPolicy( - com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFirewallPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List groups of related accounts.
-     * 
- */ - public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse - listRelatedAccountGroups( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRelatedAccountGroupsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get memberships in a group of related accounts.
-     * 
- */ - public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse - listRelatedAccountGroupMemberships( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRelatedAccountGroupMembershipsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Search group memberships related to a given account.
-     * 
- */ - public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse - searchRelatedAccountGroupMemberships( - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchRelatedAccountGroupMembershipsMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service - * RecaptchaEnterpriseService. - * - *
-   * Service to determine the likelihood an event is legitimate.
-   * 
- */ - public static final class RecaptchaEnterpriseServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private RecaptchaEnterpriseServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected RecaptchaEnterpriseServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RecaptchaEnterpriseServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates an Assessment of the likelihood an event is legitimate.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.recaptchaenterprise.v1.Assessment> - createAssessment(com.google.recaptchaenterprise.v1.CreateAssessmentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateAssessmentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Annotates a previously created Assessment to provide additional information
-     * on whether the event turned out to be authentic or fraudulent.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse> - annotateAssessment(com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAnnotateAssessmentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new reCAPTCHA Enterprise key.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createKey(com.google.recaptchaenterprise.v1.CreateKeyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateKeyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the list of all keys that belong to a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.recaptchaenterprise.v1.ListKeysResponse> - listKeys(com.google.recaptchaenterprise.v1.ListKeysRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListKeysMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the secret key related to the specified public key.
-     * You must use the legacy secret key only in a 3rd party integration with
-     * legacy reCAPTCHA.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse> - retrieveLegacySecretKey( - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRetrieveLegacySecretKeyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the specified key.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getKey(com.google.recaptchaenterprise.v1.GetKeyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetKeyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the specified key.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateKey(com.google.recaptchaenterprise.v1.UpdateKeyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateKeyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified key.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteKey( - com.google.recaptchaenterprise.v1.DeleteKeyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteKeyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise.
-     * Once a key is migrated, it can be used from either product. SiteVerify
-     * requests are billed as CreateAssessment calls. You must be
-     * authenticated as one of the current owners of the reCAPTCHA Key, and
-     * your user must have the reCAPTCHA Enterprise Admin IAM role in the
-     * destination project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - migrateKey(com.google.recaptchaenterprise.v1.MigrateKeyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getMigrateKeyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get some aggregated metrics for a Key. This data can be used to build
-     * dashboards.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.recaptchaenterprise.v1.Metrics> - getMetrics(com.google.recaptchaenterprise.v1.GetMetricsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMetricsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
-     * Enterprise actions can be executed.
-     * A project may have a maximum of 1000 policies.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.recaptchaenterprise.v1.FirewallPolicy> - createFirewallPolicy( - com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFirewallPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the list of all firewall policies that belong to a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse> - listFirewallPolicies( - com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFirewallPoliciesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the specified firewall policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.recaptchaenterprise.v1.FirewallPolicy> - getFirewallPolicy(com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFirewallPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the specified firewall policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.recaptchaenterprise.v1.FirewallPolicy> - updateFirewallPolicy( - com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFirewallPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified firewall policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteFirewallPolicy( - com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFirewallPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List groups of related accounts.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse> - listRelatedAccountGroups( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRelatedAccountGroupsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get memberships in a group of related accounts.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse> - listRelatedAccountGroupMemberships( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRelatedAccountGroupMembershipsMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Search group memberships related to a given account.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse> - searchRelatedAccountGroupMemberships( - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchRelatedAccountGroupMembershipsMethod(), getCallOptions()), - request); - } - } - - private static final int METHODID_CREATE_ASSESSMENT = 0; - private static final int METHODID_ANNOTATE_ASSESSMENT = 1; - private static final int METHODID_CREATE_KEY = 2; - private static final int METHODID_LIST_KEYS = 3; - private static final int METHODID_RETRIEVE_LEGACY_SECRET_KEY = 4; - private static final int METHODID_GET_KEY = 5; - private static final int METHODID_UPDATE_KEY = 6; - private static final int METHODID_DELETE_KEY = 7; - private static final int METHODID_MIGRATE_KEY = 8; - private static final int METHODID_GET_METRICS = 9; - private static final int METHODID_CREATE_FIREWALL_POLICY = 10; - private static final int METHODID_LIST_FIREWALL_POLICIES = 11; - private static final int METHODID_GET_FIREWALL_POLICY = 12; - private static final int METHODID_UPDATE_FIREWALL_POLICY = 13; - private static final int METHODID_DELETE_FIREWALL_POLICY = 14; - private static final int METHODID_LIST_RELATED_ACCOUNT_GROUPS = 15; - private static final int METHODID_LIST_RELATED_ACCOUNT_GROUP_MEMBERSHIPS = 16; - private static final int METHODID_SEARCH_RELATED_ACCOUNT_GROUP_MEMBERSHIPS = 17; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_ASSESSMENT: - serviceImpl.createAssessment( - (com.google.recaptchaenterprise.v1.CreateAssessmentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_ANNOTATE_ASSESSMENT: - serviceImpl.annotateAssessment( - (com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest) request, - (io.grpc.stub.StreamObserver< - com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse>) - responseObserver); - break; - case METHODID_CREATE_KEY: - serviceImpl.createKey( - (com.google.recaptchaenterprise.v1.CreateKeyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_KEYS: - serviceImpl.listKeys( - (com.google.recaptchaenterprise.v1.ListKeysRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_RETRIEVE_LEGACY_SECRET_KEY: - serviceImpl.retrieveLegacySecretKey( - (com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest) request, - (io.grpc.stub.StreamObserver< - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse>) - responseObserver); - break; - case METHODID_GET_KEY: - serviceImpl.getKey( - (com.google.recaptchaenterprise.v1.GetKeyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_KEY: - serviceImpl.updateKey( - (com.google.recaptchaenterprise.v1.UpdateKeyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_KEY: - serviceImpl.deleteKey( - (com.google.recaptchaenterprise.v1.DeleteKeyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MIGRATE_KEY: - serviceImpl.migrateKey( - (com.google.recaptchaenterprise.v1.MigrateKeyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_METRICS: - serviceImpl.getMetrics( - (com.google.recaptchaenterprise.v1.GetMetricsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_FIREWALL_POLICY: - serviceImpl.createFirewallPolicy( - (com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_FIREWALL_POLICIES: - serviceImpl.listFirewallPolicies( - (com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse>) - responseObserver); - break; - case METHODID_GET_FIREWALL_POLICY: - serviceImpl.getFirewallPolicy( - (com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_FIREWALL_POLICY: - serviceImpl.updateFirewallPolicy( - (com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_FIREWALL_POLICY: - serviceImpl.deleteFirewallPolicy( - (com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_RELATED_ACCOUNT_GROUPS: - serviceImpl.listRelatedAccountGroups( - (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse>) - responseObserver); - break; - case METHODID_LIST_RELATED_ACCOUNT_GROUP_MEMBERSHIPS: - serviceImpl.listRelatedAccountGroupMemberships( - (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse>) - responseObserver); - break; - case METHODID_SEARCH_RELATED_ACCOUNT_GROUP_MEMBERSHIPS: - serviceImpl.searchRelatedAccountGroupMemberships( - (com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.recaptchaenterprise.v1 - .SearchRelatedAccountGroupMembershipsResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateAssessmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.CreateAssessmentRequest, - com.google.recaptchaenterprise.v1.Assessment>( - service, METHODID_CREATE_ASSESSMENT))) - .addMethod( - getAnnotateAssessmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest, - com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse>( - service, METHODID_ANNOTATE_ASSESSMENT))) - .addMethod( - getCreateKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.CreateKeyRequest, - com.google.recaptchaenterprise.v1.Key>(service, METHODID_CREATE_KEY))) - .addMethod( - getListKeysMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.ListKeysRequest, - com.google.recaptchaenterprise.v1.ListKeysResponse>( - service, METHODID_LIST_KEYS))) - .addMethod( - getRetrieveLegacySecretKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest, - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse>( - service, METHODID_RETRIEVE_LEGACY_SECRET_KEY))) - .addMethod( - getGetKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.GetKeyRequest, - com.google.recaptchaenterprise.v1.Key>(service, METHODID_GET_KEY))) - .addMethod( - getUpdateKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.UpdateKeyRequest, - com.google.recaptchaenterprise.v1.Key>(service, METHODID_UPDATE_KEY))) - .addMethod( - getDeleteKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.DeleteKeyRequest, com.google.protobuf.Empty>( - service, METHODID_DELETE_KEY))) - .addMethod( - getMigrateKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.MigrateKeyRequest, - com.google.recaptchaenterprise.v1.Key>(service, METHODID_MIGRATE_KEY))) - .addMethod( - getGetMetricsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.GetMetricsRequest, - com.google.recaptchaenterprise.v1.Metrics>(service, METHODID_GET_METRICS))) - .addMethod( - getCreateFirewallPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest, - com.google.recaptchaenterprise.v1.FirewallPolicy>( - service, METHODID_CREATE_FIREWALL_POLICY))) - .addMethod( - getListFirewallPoliciesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest, - com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse>( - service, METHODID_LIST_FIREWALL_POLICIES))) - .addMethod( - getGetFirewallPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest, - com.google.recaptchaenterprise.v1.FirewallPolicy>( - service, METHODID_GET_FIREWALL_POLICY))) - .addMethod( - getUpdateFirewallPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest, - com.google.recaptchaenterprise.v1.FirewallPolicy>( - service, METHODID_UPDATE_FIREWALL_POLICY))) - .addMethod( - getDeleteFirewallPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_FIREWALL_POLICY))) - .addMethod( - getListRelatedAccountGroupsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest, - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse>( - service, METHODID_LIST_RELATED_ACCOUNT_GROUPS))) - .addMethod( - getListRelatedAccountGroupMembershipsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest, - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse>( - service, METHODID_LIST_RELATED_ACCOUNT_GROUP_MEMBERSHIPS))) - .addMethod( - getSearchRelatedAccountGroupMembershipsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest, - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse>( - service, METHODID_SEARCH_RELATED_ACCOUNT_GROUP_MEMBERSHIPS))) - .build(); - } - - private abstract static class RecaptchaEnterpriseServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - RecaptchaEnterpriseServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("RecaptchaEnterpriseService"); - } - } - - private static final class RecaptchaEnterpriseServiceFileDescriptorSupplier - extends RecaptchaEnterpriseServiceBaseDescriptorSupplier { - RecaptchaEnterpriseServiceFileDescriptorSupplier() {} - } - - private static final class RecaptchaEnterpriseServiceMethodDescriptorSupplier - extends RecaptchaEnterpriseServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - RecaptchaEnterpriseServiceMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (RecaptchaEnterpriseServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new RecaptchaEnterpriseServiceFileDescriptorSupplier()) - .addMethod(getCreateAssessmentMethod()) - .addMethod(getAnnotateAssessmentMethod()) - .addMethod(getCreateKeyMethod()) - .addMethod(getListKeysMethod()) - .addMethod(getRetrieveLegacySecretKeyMethod()) - .addMethod(getGetKeyMethod()) - .addMethod(getUpdateKeyMethod()) - .addMethod(getDeleteKeyMethod()) - .addMethod(getMigrateKeyMethod()) - .addMethod(getGetMetricsMethod()) - .addMethod(getCreateFirewallPolicyMethod()) - .addMethod(getListFirewallPoliciesMethod()) - .addMethod(getGetFirewallPolicyMethod()) - .addMethod(getUpdateFirewallPolicyMethod()) - .addMethod(getDeleteFirewallPolicyMethod()) - .addMethod(getListRelatedAccountGroupsMethod()) - .addMethod(getListRelatedAccountGroupMembershipsMethod()) - .addMethod(getSearchRelatedAccountGroupMembershipsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessmentOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessmentOrBuilder.java deleted file mode 100644 index 3107a0a9c655..000000000000 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessmentOrBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface AccountDefenderAssessmentOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Labels for this request.
-   * 
- * - * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the labels. - */ - java.util.List - getLabelsList(); - /** - * - * - *
-   * Output only. Labels for this request.
-   * 
- * - * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of labels. - */ - int getLabelsCount(); - /** - * - * - *
-   * Output only. Labels for this request.
-   * 
- * - * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The labels at the given index. - */ - com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel getLabels( - int index); - /** - * - * - *
-   * Output only. Labels for this request.
-   * 
- * - * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the enum numeric values on the wire for labels. - */ - java.util.List getLabelsValueList(); - /** - * - * - *
-   * Output only. Labels for this request.
-   * 
- * - * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of labels at the given index. - */ - int getLabelsValue(int index); -} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponseOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponseOrBuilder.java deleted file mode 100644 index 8f477c03725e..000000000000 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface AnnotateAssessmentResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequestOrBuilder.java deleted file mode 100644 index 2711a486909e..000000000000 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface CreateAssessmentRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.CreateAssessmentRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the project in which the assessment will be created,
-   * in the format `projects/{project}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The name of the project in which the assessment will be created,
-   * in the format `projects/{project}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The assessment details.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the assessment field is set. - */ - boolean hasAssessment(); - /** - * - * - *
-   * Required. The assessment details.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The assessment. - */ - com.google.recaptchaenterprise.v1.Assessment getAssessment(); - /** - * - * - *
-   * Required. The assessment details.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.recaptchaenterprise.v1.AssessmentOrBuilder getAssessmentOrBuilder(); -} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequestOrBuilder.java deleted file mode 100644 index 504aed905a88..000000000000 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface CreateFirewallPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.CreateFirewallPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the project this policy will apply to, in the format
-   * `projects/{project}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The name of the project this policy will apply to, in the format
-   * `projects/{project}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. Information to create the policy.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the firewallPolicy field is set. - */ - boolean hasFirewallPolicy(); - /** - * - * - *
-   * Required. Information to create the policy.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The firewallPolicy. - */ - com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy(); - /** - * - * - *
-   * Required. Information to create the policy.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPolicyOrBuilder(); -} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequestOrBuilder.java deleted file mode 100644 index af5223037f4a..000000000000 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface CreateKeyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.CreateKeyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the project in which the key will be created, in the
-   * format `projects/{project}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The name of the project in which the key will be created, in the
-   * format `projects/{project}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. Information to create a reCAPTCHA Enterprise key.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the key field is set. - */ - boolean hasKey(); - /** - * - * - *
-   * Required. Information to create a reCAPTCHA Enterprise key.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The key. - */ - com.google.recaptchaenterprise.v1.Key getKey(); - /** - * - * - *
-   * Required. Information to create a reCAPTCHA Enterprise key.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.recaptchaenterprise.v1.KeyOrBuilder getKeyOrBuilder(); -} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequestOrBuilder.java deleted file mode 100644 index 14bbb582f36b..000000000000 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface DeleteFirewallPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.DeleteFirewallPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the policy to be deleted, in the format
-   * `projects/{project}/firewallpolicies/{firewallpolicy}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the policy to be deleted, in the format
-   * `projects/{project}/firewallpolicies/{firewallpolicy}`.
-   * 
- * - * - * 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/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequestOrBuilder.java deleted file mode 100644 index 5a7e4729bb7c..000000000000 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface DeleteKeyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.DeleteKeyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the key to be deleted, in the format
-   * `projects/{project}/keys/{key}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the key to be deleted, in the format
-   * `projects/{project}/keys/{key}`.
-   * 
- * - * - * 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/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessmentOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessmentOrBuilder.java deleted file mode 100644 index 94cb70af7ce4..000000000000 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessmentOrBuilder.java +++ /dev/null @@ -1,175 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface FraudPreventionAssessmentOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Probability of this transaction being fraudulent. Summarizes
-   * the combined risk of attack vectors below. Values are from 0.0 (lowest)
-   * to 1.0 (highest).
-   * 
- * - * float transaction_risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The transactionRisk. - */ - float getTransactionRisk(); - - /** - * - * - *
-   * Output only. Assessment of this transaction for risk of a stolen
-   * instrument.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stolenInstrumentVerdict field is set. - */ - boolean hasStolenInstrumentVerdict(); - /** - * - * - *
-   * Output only. Assessment of this transaction for risk of a stolen
-   * instrument.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stolenInstrumentVerdict. - */ - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - getStolenInstrumentVerdict(); - /** - * - * - *
-   * Output only. Assessment of this transaction for risk of a stolen
-   * instrument.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder - getStolenInstrumentVerdictOrBuilder(); - - /** - * - * - *
-   * Output only. Assessment of this transaction for risk of being part of a
-   * card testing attack.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the cardTestingVerdict field is set. - */ - boolean hasCardTestingVerdict(); - /** - * - * - *
-   * Output only. Assessment of this transaction for risk of being part of a
-   * card testing attack.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The cardTestingVerdict. - */ - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - getCardTestingVerdict(); - /** - * - * - *
-   * Output only. Assessment of this transaction for risk of being part of a
-   * card testing attack.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdictOrBuilder - getCardTestingVerdictOrBuilder(); - - /** - * - * - *
-   * Output only. Assessment of this transaction for behavioral trust.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the behavioralTrustVerdict field is set. - */ - boolean hasBehavioralTrustVerdict(); - /** - * - * - *
-   * Output only. Assessment of this transaction for behavioral trust.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The behavioralTrustVerdict. - */ - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - getBehavioralTrustVerdict(); - /** - * - * - *
-   * Output only. Assessment of this transaction for behavioral trust.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder - getBehavioralTrustVerdictOrBuilder(); -} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignalsOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignalsOrBuilder.java deleted file mode 100644 index fb777ccf4860..000000000000 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignalsOrBuilder.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface FraudSignalsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FraudSignals) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Signals describing the end user in this transaction.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the userSignals field is set. - */ - boolean hasUserSignals(); - /** - * - * - *
-   * Output only. Signals describing the end user in this transaction.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The userSignals. - */ - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals getUserSignals(); - /** - * - * - *
-   * Output only. Signals describing the end user in this transaction.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder getUserSignalsOrBuilder(); - - /** - * - * - *
-   * Output only. Signals describing the payment card or cards used in this
-   * transaction.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the cardSignals field is set. - */ - boolean hasCardSignals(); - /** - * - * - *
-   * Output only. Signals describing the payment card or cards used in this
-   * transaction.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The cardSignals. - */ - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals getCardSignals(); - /** - * - * - *
-   * Output only. Signals describing the payment card or cards used in this
-   * transaction.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder getCardSignalsOrBuilder(); -} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequestOrBuilder.java deleted file mode 100644 index 850c60015527..000000000000 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface GetFirewallPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.GetFirewallPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the requested policy, in the format
-   * `projects/{project}/firewallpolicies/{firewallpolicy}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the requested policy, in the format
-   * `projects/{project}/firewallpolicies/{firewallpolicy}`.
-   * 
- * - * - * 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/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequestOrBuilder.java deleted file mode 100644 index 28af9b61117b..000000000000 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface GetKeyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.GetKeyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the requested key, in the format
-   * `projects/{project}/keys/{key}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the requested key, in the format
-   * `projects/{project}/keys/{key}`.
-   * 
- * - * - * 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/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequestOrBuilder.java deleted file mode 100644 index 3cf46ec3e90a..000000000000 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface GetMetricsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.GetMetricsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the requested metrics, in the format
-   * `projects/{project}/keys/{key}/metrics`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the requested metrics, in the format
-   * `projects/{project}/keys/{key}/metrics`.
-   * 
- * - * - * 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/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java deleted file mode 100644 index c8cb5f66a1ab..000000000000 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java +++ /dev/null @@ -1,1500 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public final class RecaptchaEnterpriseProto { - private RecaptchaEnterpriseProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_Assessment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_Assessment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_Event_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_Event_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_Metrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_Key_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_Key_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_Key_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_ScoreBucketsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_ScoreBucketsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_ActionMetricsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_ActionMetricsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n=google/cloud/recaptchaenterprise/v1/re" - + "captchaenterprise.proto\022#google.cloud.re" - + "captchaenterprise.v1\032\034google/api/annotat" - + "ions.proto\032\027google/api/client.proto\032\037goo" - + "gle/api/field_behavior.proto\032\031google/api" - + "/resource.proto\032\033google/protobuf/empty.p" - + "roto\032 google/protobuf/field_mask.proto\032\037" - + "google/protobuf/timestamp.proto\032\027google/" - + "rpc/status.proto\"\252\001\n\027CreateAssessmentReq" - + "uest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudreso" - + "urcemanager.googleapis.com/Project\022I\n\nas" - + "sessment\030\002 \001(\0132/.google.cloud.recaptchae" - + "nterprise.v1.AssessmentB\004\342A\001\002\"\226\005\n\020Transa" - + "ctionEvent\022d\n\nevent_type\030\001 \001(\0162J.google." - + "cloud.recaptchaenterprise.v1.Transaction" - + "Event.TransactionEventTypeB\004\342A\001\001\022\024\n\006reas" - + "on\030\002 \001(\tB\004\342A\001\001\022\023\n\005value\030\003 \001(\001B\004\342A\001\001\0224\n\ne" - + "vent_time\030\004 \001(\0132\032.google.protobuf.Timest" - + "ampB\004\342A\001\001\"\272\003\n\024TransactionEventType\022&\n\"TR" - + "ANSACTION_EVENT_TYPE_UNSPECIFIED\020\000\022\024\n\020ME" - + "RCHANT_APPROVE\020\001\022\021\n\rMERCHANT_DENY\020\002\022\021\n\rM" - + "ANUAL_REVIEW\020\003\022\021\n\rAUTHORIZATION\020\004\022\031\n\025AUT" - + "HORIZATION_DECLINE\020\005\022\023\n\017PAYMENT_CAPTURE\020" - + "\006\022\033\n\027PAYMENT_CAPTURE_DECLINE\020\007\022\n\n\006CANCEL" - + "\020\010\022\026\n\022CHARGEBACK_INQUIRY\020\t\022\024\n\020CHARGEBACK" - + "_ALERT\020\n\022\026\n\022FRAUD_NOTIFICATION\020\013\022\016\n\nCHAR" - + "GEBACK\020\014\022\034\n\030CHARGEBACK_REPRESENTMENT\020\r\022\026" - + "\n\022CHARGEBACK_REVERSE\020\016\022\022\n\016REFUND_REQUEST" - + "\020\017\022\022\n\016REFUND_DECLINE\020\020\022\n\n\006REFUND\020\021\022\022\n\016RE" - + "FUND_REVERSE\020\022\"\357\006\n\031AnnotateAssessmentReq" - + "uest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-recaptchaen" - + "terprise.googleapis.com/Assessment\022c\n\nan" - + "notation\030\002 \001(\0162I.google.cloud.recaptchae" - + "nterprise.v1.AnnotateAssessmentRequest.A" - + "nnotationB\004\342A\001\001\022\\\n\007reasons\030\003 \003(\0162E.googl" - + "e.cloud.recaptchaenterprise.v1.AnnotateA" - + "ssessmentRequest.ReasonB\004\342A\001\001\022\037\n\021hashed_" - + "account_id\030\004 \001(\014B\004\342A\001\001\022V\n\021transaction_ev" - + "ent\030\005 \001(\01325.google.cloud.recaptchaenterp" - + "rise.v1.TransactionEventB\004\342A\001\001\"~\n\nAnnota" - + "tion\022\032\n\026ANNOTATION_UNSPECIFIED\020\000\022\016\n\nLEGI" - + "TIMATE\020\001\022\016\n\nFRAUDULENT\020\002\022\030\n\020PASSWORD_COR" - + "RECT\020\003\032\002\010\001\022\032\n\022PASSWORD_INCORRECT\020\004\032\002\010\001\"\317" - + "\002\n\006Reason\022\026\n\022REASON_UNSPECIFIED\020\000\022\016\n\nCHA" - + "RGEBACK\020\001\022\024\n\020CHARGEBACK_FRAUD\020\010\022\026\n\022CHARG" - + "EBACK_DISPUTE\020\t\022\n\n\006REFUND\020\n\022\020\n\014REFUND_FR" - + "AUD\020\013\022\030\n\024TRANSACTION_ACCEPTED\020\014\022\030\n\024TRANS" - + "ACTION_DECLINED\020\r\022\026\n\022PAYMENT_HEURISTICS\020" - + "\002\022\030\n\024INITIATED_TWO_FACTOR\020\007\022\025\n\021PASSED_TW" - + "O_FACTOR\020\003\022\025\n\021FAILED_TWO_FACTOR\020\004\022\024\n\020COR" - + "RECT_PASSWORD\020\005\022\026\n\022INCORRECT_PASSWORD\020\006\022" - + "\017\n\013SOCIAL_SPAM\020\016\"\034\n\032AnnotateAssessmentRe" - + "sponse\"\266\001\n\030EndpointVerificationInfo\022\027\n\re" - + "mail_address\030\001 \001(\tH\000\022\026\n\014phone_number\030\002 \001" - + "(\tH\000\022\033\n\rrequest_token\030\003 \001(\tB\004\342A\001\003\022@\n\026las" - + "t_verification_time\030\004 \001(\0132\032.google.proto" - + "buf.TimestampB\004\342A\001\003B\n\n\010endpoint\"\336\004\n\027Acco" - + "untVerificationInfo\022V\n\tendpoints\030\001 \003(\0132=" - + ".google.cloud.recaptchaenterprise.v1.End" - + "pointVerificationInfoB\004\342A\001\001\022\033\n\rlanguage_" - + "code\030\003 \001(\tB\004\342A\001\001\022m\n\032latest_verification_" - + "result\030\007 \001(\0162C.google.cloud.recaptchaent" - + "erprise.v1.AccountVerificationInfo.Resul" - + "tB\004\342A\001\003\022\024\n\010username\030\002 \001(\tB\002\030\001\"\310\002\n\006Result" - + "\022\026\n\022RESULT_UNSPECIFIED\020\000\022\031\n\025SUCCESS_USER" - + "_VERIFIED\020\001\022\033\n\027ERROR_USER_NOT_VERIFIED\020\002" - + "\022$\n ERROR_SITE_ONBOARDING_INCOMPLETE\020\003\022\037" - + "\n\033ERROR_RECIPIENT_NOT_ALLOWED\020\004\022)\n%ERROR" - + "_RECIPIENT_ABUSE_LIMIT_EXHAUSTED\020\005\022\033\n\027ER" - + "ROR_CRITICAL_INTERNAL\020\006\022\"\n\036ERROR_CUSTOME" - + "R_QUOTA_EXHAUSTED\020\007\022\037\n\033ERROR_VERIFICATIO" - + "N_BYPASSED\020\010\022\032\n\026ERROR_VERDICT_MISMATCH\020\t" - + "\"\320\001\n\037PrivatePasswordLeakVerification\022 \n\022" - + "lookup_hash_prefix\030\001 \001(\014B\004\342A\001\002\022-\n\037encryp" - + "ted_user_credentials_hash\030\002 \001(\014B\004\342A\001\001\022+\n" - + "\035encrypted_leak_match_prefixes\030\003 \003(\014B\004\342A" - + "\001\003\022/\n!reencrypted_user_credentials_hash\030" - + "\004 \001(\014B\004\342A\001\003\"\321\007\n\nAssessment\022\022\n\004name\030\001 \001(\t" - + "B\004\342A\001\003\022?\n\005event\030\002 \001(\0132*.google.cloud.rec" - + "aptchaenterprise.v1.EventB\004\342A\001\001\022N\n\rrisk_" - + "analysis\030\003 \001(\01321.google.cloud.recaptchae" - + "nterprise.v1.RiskAnalysisB\004\342A\001\003\022T\n\020token" - + "_properties\030\004 \001(\01324.google.cloud.recaptc" - + "haenterprise.v1.TokenPropertiesB\004\342A\001\003\022`\n" - + "\024account_verification\030\005 \001(\0132<.google.clo" - + "ud.recaptchaenterprise.v1.AccountVerific" - + "ationInfoB\004\342A\001\001\022i\n\033account_defender_asse" - + "ssment\030\006 \001(\0132>.google.cloud.recaptchaent" - + "erprise.v1.AccountDefenderAssessmentB\004\342A" - + "\001\003\022v\n\"private_password_leak_verification" - + "\030\010 \001(\0132D.google.cloud.recaptchaenterpris" - + "e.v1.PrivatePasswordLeakVerificationB\004\342A" - + "\001\001\022g\n\032firewall_policy_assessment\030\n \001(\0132=" - + ".google.cloud.recaptchaenterprise.v1.Fir" - + "ewallPolicyAssessmentB\004\342A\001\003\022i\n\033fraud_pre" - + "vention_assessment\030\013 \001(\0132>.google.cloud." - + "recaptchaenterprise.v1.FraudPreventionAs" - + "sessmentB\004\342A\001\003\022N\n\rfraud_signals\030\r \001(\01321." - + "google.cloud.recaptchaenterprise.v1.Frau" - + "dSignalsB\004\342A\001\003:_\352A\\\n-recaptchaenterprise" - + ".googleapis.com/Assessment\022+projects/{pr" - + "oject}/assessments/{assessment}\"\257\003\n\005Even" - + "t\022\023\n\005token\030\001 \001(\tB\004\342A\001\001\022\026\n\010site_key\030\002 \001(\t" - + "B\004\342A\001\001\022\030\n\nuser_agent\030\003 \001(\tB\004\342A\001\001\022\035\n\017user" - + "_ip_address\030\004 \001(\tB\004\342A\001\001\022\035\n\017expected_acti" - + "on\030\005 \001(\tB\004\342A\001\001\022\037\n\021hashed_account_id\030\006 \001(" - + "\014B\004\342A\001\001\022\025\n\007express\030\016 \001(\010B\004\342A\001\001\022\033\n\rreques" - + "ted_uri\030\010 \001(\tB\004\342A\001\001\022\"\n\024waf_token_assessm" - + "ent\030\t \001(\010B\004\342A\001\001\022\021\n\003ja3\030\n \001(\tB\004\342A\001\001\022\025\n\007he" - + "aders\030\013 \003(\tB\004\342A\001\001\022(\n\032firewall_policy_eva" - + "luation\030\014 \001(\010B\004\342A\001\001\022T\n\020transaction_data\030" - + "\r \001(\01324.google.cloud.recaptchaenterprise" - + ".v1.TransactionDataB\004\342A\001\001\"\300\n\n\017Transactio" - + "nData\022\033\n\016transaction_id\030\013 \001(\tH\000\210\001\001\022\034\n\016pa" - + "yment_method\030\001 \001(\tB\004\342A\001\001\022\026\n\010card_bin\030\002 \001" - + "(\tB\004\342A\001\001\022\034\n\016card_last_four\030\003 \001(\tB\004\342A\001\001\022\033" - + "\n\rcurrency_code\030\004 \001(\tB\004\342A\001\001\022\023\n\005value\030\005 \001" - + "(\001B\004\342A\001\001\022\034\n\016shipping_value\030\014 \001(\001B\004\342A\001\001\022\\" - + "\n\020shipping_address\030\006 \001(\0132<.google.cloud." - + "recaptchaenterprise.v1.TransactionData.A" - + "ddressB\004\342A\001\001\022[\n\017billing_address\030\007 \001(\0132<." - + "google.cloud.recaptchaenterprise.v1.Tran" - + "sactionData.AddressB\004\342A\001\001\022M\n\004user\030\010 \001(\0132" - + "9.google.cloud.recaptchaenterprise.v1.Tr" - + "ansactionData.UserB\004\342A\001\001\022R\n\tmerchants\030\r " - + "\003(\01329.google.cloud.recaptchaenterprise.v" - + "1.TransactionData.UserB\004\342A\001\001\022N\n\005items\030\016 " - + "\003(\01329.google.cloud.recaptchaenterprise.v" - + "1.TransactionData.ItemB\004\342A\001\001\022\\\n\014gateway_" - + "info\030\n \001(\0132@.google.cloud.recaptchaenter" - + "prise.v1.TransactionData.GatewayInfoB\004\342A" - + "\001\001\032\252\001\n\007Address\022\027\n\trecipient\030\001 \001(\tB\004\342A\001\001\022" - + "\025\n\007address\030\002 \003(\tB\004\342A\001\001\022\026\n\010locality\030\003 \001(\t" - + "B\004\342A\001\001\022!\n\023administrative_area\030\004 \001(\tB\004\342A\001" - + "\001\022\031\n\013region_code\030\005 \001(\tB\004\342A\001\001\022\031\n\013postal_c" - + "ode\030\006 \001(\tB\004\342A\001\001\032\250\001\n\004User\022\030\n\naccount_id\030\006" - + " \001(\tB\004\342A\001\001\022\031\n\013creation_ms\030\001 \001(\003B\004\342A\001\001\022\023\n" - + "\005email\030\002 \001(\tB\004\342A\001\001\022\034\n\016email_verified\030\003 \001" - + "(\010B\004\342A\001\001\022\032\n\014phone_number\030\004 \001(\tB\004\342A\001\001\022\034\n\016" - + "phone_verified\030\005 \001(\010B\004\342A\001\001\032j\n\004Item\022\022\n\004na" - + "me\030\001 \001(\tB\004\342A\001\001\022\023\n\005value\030\002 \001(\001B\004\342A\001\001\022\026\n\010q" - + "uantity\030\003 \001(\003B\004\342A\001\001\022!\n\023merchant_account_" - + "id\030\004 \001(\tB\004\342A\001\001\032\210\001\n\013GatewayInfo\022\022\n\004name\030\001" - + " \001(\tB\004\342A\001\001\022#\n\025gateway_response_code\030\002 \001(" - + "\tB\004\342A\001\001\022\037\n\021avs_response_code\030\003 \001(\tB\004\342A\001\001" - + "\022\037\n\021cvv_response_code\030\004 \001(\tB\004\342A\001\001B\021\n\017_tr" - + "ansaction_id\"\226\003\n\014RiskAnalysis\022\023\n\005score\030\001" - + " \001(\002B\004\342A\001\003\022]\n\007reasons\030\002 \003(\0162F.google.clo" - + "ud.recaptchaenterprise.v1.RiskAnalysis.C" - + "lassificationReasonB\004\342A\001\003\022&\n\030extended_ve" - + "rdict_reasons\030\003 \003(\tB\004\342A\001\003\"\351\001\n\024Classifica" - + "tionReason\022%\n!CLASSIFICATION_REASON_UNSP" - + "ECIFIED\020\000\022\016\n\nAUTOMATION\020\001\022\032\n\026UNEXPECTED_" - + "ENVIRONMENT\020\002\022\024\n\020TOO_MUCH_TRAFFIC\020\003\022\035\n\031U" - + "NEXPECTED_USAGE_PATTERNS\020\004\022\030\n\024LOW_CONFID" - + "ENCE_SCORE\020\005\022\025\n\021SUSPECTED_CARDING\020\006\022\030\n\024S" - + "USPECTED_CHARGEBACK\020\007\"\302\003\n\017TokenPropertie" - + "s\022\023\n\005valid\030\001 \001(\010B\004\342A\001\003\022`\n\016invalid_reason" - + "\030\002 \001(\0162B.google.cloud.recaptchaenterpris" - + "e.v1.TokenProperties.InvalidReasonB\004\342A\001\003" - + "\0225\n\013create_time\030\003 \001(\0132\032.google.protobuf." - + "TimestampB\004\342A\001\003\022\026\n\010hostname\030\004 \001(\tB\004\342A\001\003\022" - + "\"\n\024android_package_name\030\010 \001(\tB\004\342A\001\003\022\033\n\ri" - + "os_bundle_id\030\t \001(\tB\004\342A\001\003\022\024\n\006action\030\005 \001(\t" - + "B\004\342A\001\003\"\221\001\n\rInvalidReason\022\036\n\032INVALID_REAS" - + "ON_UNSPECIFIED\020\000\022\032\n\026UNKNOWN_INVALID_REAS" - + "ON\020\001\022\r\n\tMALFORMED\020\002\022\013\n\007EXPIRED\020\003\022\010\n\004DUPE" - + "\020\004\022\013\n\007MISSING\020\005\022\021\n\rBROWSER_ERROR\020\006\"\272\004\n\031F" - + "raudPreventionAssessment\022\036\n\020transaction_" - + "risk\030\001 \001(\002B\004\342A\001\003\022\177\n\031stolen_instrument_ve" - + "rdict\030\002 \001(\0132V.google.cloud.recaptchaente" - + "rprise.v1.FraudPreventionAssessment.Stol" - + "enInstrumentVerdictB\004\342A\001\003\022u\n\024card_testin" - + "g_verdict\030\003 \001(\0132Q.google.cloud.recaptcha" - + "enterprise.v1.FraudPreventionAssessment." - + "CardTestingVerdictB\004\342A\001\003\022}\n\030behavioral_t" - + "rust_verdict\030\004 \001(\0132U.google.cloud.recapt" - + "chaenterprise.v1.FraudPreventionAssessme" - + "nt.BehavioralTrustVerdictB\004\342A\001\003\032-\n\027Stole" - + "nInstrumentVerdict\022\022\n\004risk\030\001 \001(\002B\004\342A\001\003\032(" - + "\n\022CardTestingVerdict\022\022\n\004risk\030\001 \001(\002B\004\342A\001\003" - + "\032-\n\026BehavioralTrustVerdict\022\023\n\005trust\030\001 \001(" - + "\002B\004\342A\001\003\"\350\003\n\014FraudSignals\022Y\n\014user_signals" - + "\030\001 \001(\0132=.google.cloud.recaptchaenterpris" - + "e.v1.FraudSignals.UserSignalsB\004\342A\001\003\022Y\n\014c" - + "ard_signals\030\002 \001(\0132=.google.cloud.recaptc" - + "haenterprise.v1.FraudSignals.CardSignals" - + "B\004\342A\001\003\032R\n\013UserSignals\022%\n\027active_days_low" - + "er_bound\030\001 \001(\005B\004\342A\001\003\022\034\n\016synthetic_risk\030\002" - + " \001(\002B\004\342A\001\003\032\315\001\n\013CardSignals\022b\n\013card_label" - + "s\030\001 \003(\0162G.google.cloud.recaptchaenterpri" - + "se.v1.FraudSignals.CardSignals.CardLabel" - + "B\004\342A\001\003\"Z\n\tCardLabel\022\032\n\026CARD_LABEL_UNSPEC" - + "IFIED\020\000\022\013\n\007PREPAID\020\001\022\013\n\007VIRTUAL\020\002\022\027\n\023UNE" - + "XPECTED_LOCATION\020\003\"\274\002\n\031AccountDefenderAs" - + "sessment\022i\n\006labels\030\001 \003(\0162S.google.cloud." - + "recaptchaenterprise.v1.AccountDefenderAs" - + "sessment.AccountDefenderLabelB\004\342A\001\003\"\263\001\n\024" - + "AccountDefenderLabel\022&\n\"ACCOUNT_DEFENDER" - + "_LABEL_UNSPECIFIED\020\000\022\021\n\rPROFILE_MATCH\020\001\022" - + "\035\n\031SUSPICIOUS_LOGIN_ACTIVITY\020\002\022\037\n\033SUSPIC" - + "IOUS_ACCOUNT_CREATION\020\003\022 \n\034RELATED_ACCOU" - + "NTS_NUMBER_HIGH\020\004\"\225\001\n\020CreateKeyRequest\022D" - + "\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcema" - + "nager.googleapis.com/Project\022;\n\003key\030\002 \001(" - + "\0132(.google.cloud.recaptchaenterprise.v1." - + "KeyB\004\342A\001\002\"\212\001\n\017ListKeysRequest\022D\n\006parent\030" - + "\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcemanager.goo" - + "gleapis.com/Project\022\027\n\tpage_size\030\002 \001(\005B\004" - + "\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"c\n\020ListKe" - + "ysResponse\0226\n\004keys\030\001 \003(\0132(.google.cloud." - + "recaptchaenterprise.v1.Key\022\027\n\017next_page_" - + "token\030\002 \001(\t\"^\n\036RetrieveLegacySecretKeyRe" - + "quest\022<\n\003key\030\001 \001(\tB/\342A\001\002\372A(\n&recaptchaen" - + "terprise.googleapis.com/Key\"N\n\rGetKeyReq" - + "uest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&recaptchaen" - + "terprise.googleapis.com/Key\"\206\001\n\020UpdateKe" - + "yRequest\022;\n\003key\030\001 \001(\0132(.google.cloud.rec" - + "aptchaenterprise.v1.KeyB\004\342A\001\002\0225\n\013update_" - + "mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004" - + "\342A\001\001\"Q\n\020DeleteKeyRequest\022=\n\004name\030\001 \001(\tB/" - + "\342A\001\002\372A(\n&recaptchaenterprise.googleapis." - + "com/Key\"\267\001\n\033CreateFirewallPolicyRequest\022" - + "D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcem" - + "anager.googleapis.com/Project\022R\n\017firewal" - + "l_policy\030\002 \001(\01323.google.cloud.recaptchae" - + "nterprise.v1.FirewallPolicyB\004\342A\001\002\"\226\001\n\033Li" - + "stFirewallPoliciesRequest\022D\n\006parent\030\001 \001(" - + "\tB4\342A\001\002\372A-\n+cloudresourcemanager.googlea" - + "pis.com/Project\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001" - + "\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\207\001\n\034ListFirew" - + "allPoliciesResponse\022N\n\021firewall_policies" - + "\030\001 \003(\01323.google.cloud.recaptchaenterpris" - + "e.v1.FirewallPolicy\022\027\n\017next_page_token\030\002" - + " \001(\t\"d\n\030GetFirewallPolicyRequest\022H\n\004name" - + "\030\001 \001(\tB:\342A\001\002\372A3\n1recaptchaenterprise.goo" - + "gleapis.com/FirewallPolicy\"\250\001\n\033UpdateFir" - + "ewallPolicyRequest\022R\n\017firewall_policy\030\001 " - + "\001(\01323.google.cloud.recaptchaenterprise.v" - + "1.FirewallPolicyB\004\342A\001\002\0225\n\013update_mask\030\002 " - + "\001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\"g\n" - + "\033DeleteFirewallPolicyRequest\022H\n\004name\030\001 \001" - + "(\tB:\342A\001\002\372A3\n1recaptchaenterprise.googlea" - + "pis.com/FirewallPolicy\"t\n\021MigrateKeyRequ" - + "est\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&recaptchaent" - + "erprise.googleapis.com/Key\022 \n\022skip_billi" - + "ng_check\030\002 \001(\010B\004\342A\001\001\"V\n\021GetMetricsReques" - + "t\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*recaptchaenter" - + "prise.googleapis.com/Metrics\"\301\002\n\007Metrics" - + "\022\022\n\004name\030\004 \001(\tB\004\342A\001\003\022.\n\nstart_time\030\001 \001(\013" - + "2\032.google.protobuf.Timestamp\022H\n\rscore_me" - + "trics\030\002 \003(\01321.google.cloud.recaptchaente" - + "rprise.v1.ScoreMetrics\022P\n\021challenge_metr" - + "ics\030\003 \003(\01325.google.cloud.recaptchaenterp" - + "rise.v1.ChallengeMetrics:V\352AS\n*recaptcha" - + "enterprise.googleapis.com/Metrics\022%proje" - + "cts/{project}/keys/{key}/metrics\"<\n\037Retr" - + "ieveLegacySecretKeyResponse\022\031\n\021legacy_se" - + "cret_key\030\001 \001(\t\"\323\005\n\003Key\022\014\n\004name\030\001 \001(\t\022\032\n\014" - + "display_name\030\002 \001(\tB\004\342A\001\002\022K\n\014web_settings" - + "\030\003 \001(\01323.google.cloud.recaptchaenterpris" - + "e.v1.WebKeySettingsH\000\022S\n\020android_setting" - + "s\030\004 \001(\01327.google.cloud.recaptchaenterpri" - + "se.v1.AndroidKeySettingsH\000\022K\n\014ios_settin" - + "gs\030\005 \001(\01323.google.cloud.recaptchaenterpr" - + "ise.v1.IOSKeySettingsH\000\022J\n\006labels\030\006 \003(\0132" - + "4.google.cloud.recaptchaenterprise.v1.Ke" - + "y.LabelsEntryB\004\342A\001\001\0225\n\013create_time\030\007 \001(\013" - + "2\032.google.protobuf.TimestampB\004\342A\001\003\022R\n\017te" - + "sting_options\030\t \001(\01323.google.cloud.recap" - + "tchaenterprise.v1.TestingOptionsB\004\342A\001\001\022L" - + "\n\014waf_settings\030\n \001(\01320.google.cloud.reca" - + "ptchaenterprise.v1.WafSettingsB\004\342A\001\001\032-\n\013" - + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - + "\0028\001:J\352AG\n&recaptchaenterprise.googleapis" - + ".com/Key\022\035projects/{project}/keys/{key}B" - + "\023\n\021platform_settings\"\364\001\n\016TestingOptions\022" - + "\033\n\rtesting_score\030\001 \001(\002B\004\342A\001\001\022e\n\021testing_" - + "challenge\030\002 \001(\0162D.google.cloud.recaptcha" - + "enterprise.v1.TestingOptions.TestingChal" - + "lengeB\004\342A\001\001\"^\n\020TestingChallenge\022!\n\035TESTI" - + "NG_CHALLENGE_UNSPECIFIED\020\000\022\r\n\tNOCAPTCHA\020" - + "\001\022\030\n\024UNSOLVABLE_CHALLENGE\020\002\"\251\004\n\016WebKeySe" - + "ttings\022\037\n\021allow_all_domains\030\003 \001(\010B\004\342A\001\001\022" - + "\035\n\017allowed_domains\030\001 \003(\tB\004\342A\001\001\022\037\n\021allow_" - + "amp_traffic\030\002 \001(\010B\004\342A\001\001\022c\n\020integration_t" - + "ype\030\004 \001(\0162C.google.cloud.recaptchaenterp" - + "rise.v1.WebKeySettings.IntegrationTypeB\004" - + "\342A\001\002\022|\n\035challenge_security_preference\030\005 " - + "\001(\0162O.google.cloud.recaptchaenterprise.v" - + "1.WebKeySettings.ChallengeSecurityPrefer" - + "enceB\004\342A\001\001\"[\n\017IntegrationType\022 \n\034INTEGRA" - + "TION_TYPE_UNSPECIFIED\020\000\022\t\n\005SCORE\020\001\022\014\n\010CH" - + "ECKBOX\020\002\022\r\n\tINVISIBLE\020\003\"v\n\033ChallengeSecu" - + "rityPreference\022-\n)CHALLENGE_SECURITY_PRE" - + "FERENCE_UNSPECIFIED\020\000\022\r\n\tUSABILITY\020\001\022\013\n\007" - + "BALANCE\020\002\022\014\n\010SECURITY\020\003\"\231\001\n\022AndroidKeySe" - + "ttings\022%\n\027allow_all_package_names\030\002 \001(\010B" - + "\004\342A\001\001\022#\n\025allowed_package_names\030\001 \003(\tB\004\342A" - + "\001\001\0227\n)support_non_google_app_store_distr" - + "ibution\030\003 \001(\010B\004\342A\001\001\"\257\001\n\016IOSKeySettings\022\"" - + "\n\024allow_all_bundle_ids\030\002 \001(\010B\004\342A\001\001\022 \n\022al" - + "lowed_bundle_ids\030\001 \003(\tB\004\342A\001\001\022W\n\022apple_de" - + "veloper_id\030\003 \001(\01325.google.cloud.recaptch" - + "aenterprise.v1.AppleDeveloperIdB\004\342A\001\001\"[\n" - + "\020AppleDeveloperId\022\032\n\013private_key\030\001 \001(\tB\005" - + "\342A\002\002\004\022\024\n\006key_id\030\002 \001(\tB\004\342A\001\002\022\025\n\007team_id\030\003" - + " \001(\tB\004\342A\001\002\"\251\001\n\021ScoreDistribution\022_\n\rscor" - + "e_buckets\030\001 \003(\0132H.google.cloud.recaptcha" - + "enterprise.v1.ScoreDistribution.ScoreBuc" - + "ketsEntry\0323\n\021ScoreBucketsEntry\022\013\n\003key\030\001 " - + "\001(\005\022\r\n\005value\030\002 \001(\003:\0028\001\"\253\002\n\014ScoreMetrics\022" - + "O\n\017overall_metrics\030\001 \001(\01326.google.cloud." - + "recaptchaenterprise.v1.ScoreDistribution" - + "\022\\\n\016action_metrics\030\002 \003(\0132D.google.cloud." - + "recaptchaenterprise.v1.ScoreMetrics.Acti" - + "onMetricsEntry\032l\n\022ActionMetricsEntry\022\013\n\003" - + "key\030\001 \001(\t\022E\n\005value\030\002 \001(\01326.google.cloud." - + "recaptchaenterprise.v1.ScoreDistribution" - + ":\0028\001\"o\n\020ChallengeMetrics\022\026\n\016pageload_cou" - + "nt\030\001 \001(\003\022\027\n\017nocaptcha_count\030\002 \001(\003\022\024\n\014fai" - + "led_count\030\003 \001(\003\022\024\n\014passed_count\030\004 \001(\003\"\227\001" - + "\n\030FirewallPolicyAssessment\022\'\n\005error\030\005 \001(" - + "\0132\022.google.rpc.StatusB\004\342A\001\003\022R\n\017firewall_" - + "policy\030\010 \001(\01323.google.cloud.recaptchaent" - + "erprise.v1.FirewallPolicyB\004\342A\001\003\"\357\004\n\016Fire" - + "wallAction\022P\n\005allow\030\001 \001(\0132?.google.cloud" - + ".recaptchaenterprise.v1.FirewallAction.A" - + "llowActionH\000\022P\n\005block\030\002 \001(\0132?.google.clo" - + "ud.recaptchaenterprise.v1.FirewallAction" - + ".BlockActionH\000\022V\n\010redirect\030\005 \001(\0132B.googl" - + "e.cloud.recaptchaenterprise.v1.FirewallA" - + "ction.RedirectActionH\000\022Z\n\nsubstitute\030\003 \001" - + "(\0132D.google.cloud.recaptchaenterprise.v1" - + ".FirewallAction.SubstituteActionH\000\022Y\n\nse" - + "t_header\030\004 \001(\0132C.google.cloud.recaptchae" - + "nterprise.v1.FirewallAction.SetHeaderAct" - + "ionH\000\032\r\n\013AllowAction\032\r\n\013BlockAction\032\020\n\016R" - + "edirectAction\032&\n\020SubstituteAction\022\022\n\004pat" - + "h\030\001 \001(\tB\004\342A\001\001\0329\n\017SetHeaderAction\022\021\n\003key\030" - + "\001 \001(\tB\004\342A\001\001\022\023\n\005value\030\002 \001(\tB\004\342A\001\001B\027\n\025fire" - + "wall_action_oneof\"\240\002\n\016FirewallPolicy\022\014\n\004" - + "name\030\001 \001(\t\022\031\n\013description\030\002 \001(\tB\004\342A\001\001\022\022\n" - + "\004path\030\004 \001(\tB\004\342A\001\001\022\027\n\tcondition\030\005 \001(\tB\004\342A" - + "\001\001\022J\n\007actions\030\006 \003(\01323.google.cloud.recap" - + "tchaenterprise.v1.FirewallActionB\004\342A\001\001:l" - + "\352Ai\n1recaptchaenterprise.googleapis.com/" - + "FirewallPolicy\0224projects/{project}/firew" - + "allpolicies/{firewallpolicy}\"\271\001\n)ListRel" - + "atedAccountGroupMembershipsRequest\022Y\n\006pa" - + "rent\030\001 \001(\tBI\342A\001\002\372AB\022@recaptchaenterprise" - + ".googleapis.com/RelatedAccountGroupMembe" - + "rship\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_t" - + "oken\030\003 \001(\tB\004\342A\001\001\"\264\001\n*ListRelatedAccountG" - + "roupMembershipsResponse\022m\n!related_accou" - + "nt_group_memberships\030\001 \003(\0132B.google.clou" - + "d.recaptchaenterprise.v1.RelatedAccountG" - + "roupMembership\022\027\n\017next_page_token\030\002 \001(\t\"" - + "\245\001\n\037ListRelatedAccountGroupsRequest\022O\n\006p" - + "arent\030\001 \001(\tB?\342A\001\002\372A8\0226recaptchaenterpris" - + "e.googleapis.com/RelatedAccountGroup\022\027\n\t" - + "page_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(" - + "\tB\004\342A\001\001\"\225\001\n ListRelatedAccountGroupsResp" - + "onse\022X\n\026related_account_groups\030\001 \003(\01328.g" - + "oogle.cloud.recaptchaenterprise.v1.Relat" - + "edAccountGroup\022\027\n\017next_page_token\030\002 \001(\t\"" - + "\335\001\n+SearchRelatedAccountGroupMemberships" - + "Request\022Z\n\007project\030\001 \001(\tBI\342A\001\002\372AB\022@recap" - + "tchaenterprise.googleapis.com/RelatedAcc" - + "ountGroupMembership\022\037\n\021hashed_account_id" - + "\030\002 \001(\014B\004\342A\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A\001\001\022\030\n" - + "\npage_token\030\004 \001(\tB\004\342A\001\001\"\266\001\n,SearchRelate" - + "dAccountGroupMembershipsResponse\022m\n!rela" - + "ted_account_group_memberships\030\001 \003(\0132B.go" - + "ogle.cloud.recaptchaenterprise.v1.Relate" - + "dAccountGroupMembership\022\027\n\017next_page_tok" - + "en\030\002 \001(\t\"\264\002\n\035RelatedAccountGroupMembersh" - + "ip\022W\n\004name\030\001 \001(\tBI\342A\001\002\372AB\n@recaptchaente" - + "rprise.googleapis.com/RelatedAccountGrou" - + "pMembership\022\031\n\021hashed_account_id\030\002 \001(\014:\236" - + "\001\352A\232\001\n@recaptchaenterprise.googleapis.co" - + "m/RelatedAccountGroupMembership\022Vproject" - + "s/{project}/relatedaccountgroups/{relate" - + "daccountgroup}/memberships/{membership}\"" - + "\340\001\n\023RelatedAccountGroup\022M\n\004name\030\001 \001(\tB?\342" - + "A\001\002\372A8\n6recaptchaenterprise.googleapis.c" - + "om/RelatedAccountGroup:z\352Aw\n6recaptchaen" - + "terprise.googleapis.com/RelatedAccountGr" - + "oup\022=projects/{project}/relatedaccountgr" - + "oups/{relatedaccountgroup}\"\355\002\n\013WafSettin" - + "gs\022V\n\013waf_service\030\001 \001(\0162;.google.cloud.r" - + "ecaptchaenterprise.v1.WafSettings.WafSer" - + "viceB\004\342A\001\002\022V\n\013waf_feature\030\002 \001(\0162;.google" - + ".cloud.recaptchaenterprise.v1.WafSetting" - + "s.WafFeatureB\004\342A\001\002\"o\n\nWafFeature\022\033\n\027WAF_" - + "FEATURE_UNSPECIFIED\020\000\022\022\n\016CHALLENGE_PAGE\020" - + "\001\022\021\n\rSESSION_TOKEN\020\002\022\020\n\014ACTION_TOKEN\020\003\022\013" - + "\n\007EXPRESS\020\005\"=\n\nWafService\022\033\n\027WAF_SERVICE" - + "_UNSPECIFIED\020\000\022\006\n\002CA\020\001\022\n\n\006FASTLY\020\0032\346\035\n\032R" - + "ecaptchaEnterpriseService\022\316\001\n\020CreateAsse", - "ssment\022<.google.cloud.recaptchaenterpris" - + "e.v1.CreateAssessmentRequest\032/.google.cl" - + "oud.recaptchaenterprise.v1.Assessment\"K\332" - + "A\021parent,assessment\202\323\344\223\0021\"#/v1/{parent=p" - + "rojects/*}/assessments:\nassessment\022\340\001\n\022A" - + "nnotateAssessment\022>.google.cloud.recaptc" - + "haenterprise.v1.AnnotateAssessmentReques" - + "t\032?.google.cloud.recaptchaenterprise.v1." - + "AnnotateAssessmentResponse\"I\332A\017name,anno" - + "tation\202\323\344\223\0021\",/v1/{name=projects/*/asses" - + "sments/*}:annotate:\001*\022\244\001\n\tCreateKey\0225.go" - + "ogle.cloud.recaptchaenterprise.v1.Create" - + "KeyRequest\032(.google.cloud.recaptchaenter" - + "prise.v1.Key\"6\332A\nparent,key\202\323\344\223\002#\"\034/v1/{" - + "parent=projects/*}/keys:\003key\022\246\001\n\010ListKey" - + "s\0224.google.cloud.recaptchaenterprise.v1." - + "ListKeysRequest\0325.google.cloud.recaptcha" - + "enterprise.v1.ListKeysResponse\"-\332A\006paren" - + "t\202\323\344\223\002\036\022\034/v1/{parent=projects/*}/keys\022\347\001" - + "\n\027RetrieveLegacySecretKey\022C.google.cloud" - + ".recaptchaenterprise.v1.RetrieveLegacySe" - + "cretKeyRequest\032D.google.cloud.recaptchae" - + "nterprise.v1.RetrieveLegacySecretKeyResp" - + "onse\"A\332A\003key\202\323\344\223\0025\0223/v1/{key=projects/*/" - + "keys/*}:retrieveLegacySecretKey\022\223\001\n\006GetK" - + "ey\0222.google.cloud.recaptchaenterprise.v1" - + ".GetKeyRequest\032(.google.cloud.recaptchae" - + "nterprise.v1.Key\"+\332A\004name\202\323\344\223\002\036\022\034/v1/{na" - + "me=projects/*/keys/*}\022\255\001\n\tUpdateKey\0225.go" - + "ogle.cloud.recaptchaenterprise.v1.Update" - + "KeyRequest\032(.google.cloud.recaptchaenter" - + "prise.v1.Key\"?\332A\017key,update_mask\202\323\344\223\002\'2 " - + "/v1/{key.name=projects/*/keys/*}:\003key\022\207\001" - + "\n\tDeleteKey\0225.google.cloud.recaptchaente" - + "rprise.v1.DeleteKeyRequest\032\026.google.prot" - + "obuf.Empty\"+\332A\004name\202\323\344\223\002\036*\034/v1/{name=pro" - + "jects/*/keys/*}\022\237\001\n\nMigrateKey\0226.google." - + "cloud.recaptchaenterprise.v1.MigrateKeyR" - + "equest\032(.google.cloud.recaptchaenterpris" - + "e.v1.Key\"/\202\323\344\223\002)\"$/v1/{name=projects/*/k" - + "eys/*}:migrate:\001*\022\247\001\n\nGetMetrics\0226.googl" - + "e.cloud.recaptchaenterprise.v1.GetMetric" - + "sRequest\032,.google.cloud.recaptchaenterpr" - + "ise.v1.Metrics\"3\332A\004name\202\323\344\223\002&\022$/v1/{name" - + "=projects/*/keys/*/metrics}\022\351\001\n\024CreateFi" - + "rewallPolicy\022@.google.cloud.recaptchaent" - + "erprise.v1.CreateFirewallPolicyRequest\0323" - + ".google.cloud.recaptchaenterprise.v1.Fir" - + "ewallPolicy\"Z\332A\026parent,firewall_policy\202\323" - + "\344\223\002;\"(/v1/{parent=projects/*}/firewallpo" - + "licies:\017firewall_policy\022\326\001\n\024ListFirewall" - + "Policies\022@.google.cloud.recaptchaenterpr" - + "ise.v1.ListFirewallPoliciesRequest\032A.goo" - + "gle.cloud.recaptchaenterprise.v1.ListFir" - + "ewallPoliciesResponse\"9\332A\006parent\202\323\344\223\002*\022(" - + "/v1/{parent=projects/*}/firewallpolicies" - + "\022\300\001\n\021GetFirewallPolicy\022=.google.cloud.re" - + "captchaenterprise.v1.GetFirewallPolicyRe" - + "quest\0323.google.cloud.recaptchaenterprise" - + ".v1.FirewallPolicy\"7\332A\004name\202\323\344\223\002*\022(/v1/{" - + "name=projects/*/firewallpolicies/*}\022\376\001\n\024" - + "UpdateFirewallPolicy\022@.google.cloud.reca" - + "ptchaenterprise.v1.UpdateFirewallPolicyR" - + "equest\0323.google.cloud.recaptchaenterpris" - + "e.v1.FirewallPolicy\"o\332A\033firewall_policy," - + "update_mask\202\323\344\223\002K28/v1/{firewall_policy." - + "name=projects/*/firewallpolicies/*}:\017fir" - + "ewall_policy\022\251\001\n\024DeleteFirewallPolicy\022@." - + "google.cloud.recaptchaenterprise.v1.Dele" - + "teFirewallPolicyRequest\032\026.google.protobu" - + "f.Empty\"7\332A\004name\202\323\344\223\002**(/v1/{name=projec" - + "ts/*/firewallpolicies/*}\022\346\001\n\030ListRelated" - + "AccountGroups\022D.google.cloud.recaptchaen" - + "terprise.v1.ListRelatedAccountGroupsRequ" - + "est\032E.google.cloud.recaptchaenterprise.v" - + "1.ListRelatedAccountGroupsResponse\"=\332A\006p" - + "arent\202\323\344\223\002.\022,/v1/{parent=projects/*}/rel" - + "atedaccountgroups\022\222\002\n\"ListRelatedAccount" - + "GroupMemberships\022N.google.cloud.recaptch" - + "aenterprise.v1.ListRelatedAccountGroupMe" - + "mbershipsRequest\032O.google.cloud.recaptch" - + "aenterprise.v1.ListRelatedAccountGroupMe" - + "mbershipsResponse\"K\332A\006parent\202\323\344\223\002<\022:/v1/" - + "{parent=projects/*/relatedaccountgroups/" - + "*}/memberships\022\262\002\n$SearchRelatedAccountG" - + "roupMemberships\022P.google.cloud.recaptcha" - + "enterprise.v1.SearchRelatedAccountGroupM" - + "embershipsRequest\032Q.google.cloud.recaptc" - + "haenterprise.v1.SearchRelatedAccountGrou" - + "pMembershipsResponse\"e\332A\031project,hashed_" - + "account_id\202\323\344\223\002C\">/v1/{project=projects/" - + "*}/relatedaccountgroupmemberships:search" - + ":\001*\032V\312A\"recaptchaenterprise.googleapis.c" - + "om\322A.https://www.googleapis.com/auth/clo" - + "ud-platformB\231\002\n!com.google.recaptchaente" - + "rprise.v1B\030RecaptchaEnterpriseProtoP\001Z\\c" - + "loud.google.com/go/recaptchaenterprise/v" - + "2/apiv1/recaptchaenterprisepb;recaptchae" - + "nterprisepb\242\002\004GCRE\252\002#Google.Cloud.Recapt" - + "chaEnterprise.V1\312\002#Google\\Cloud\\Recaptch" - + "aEnterprise\\V1\352\002&Google::Cloud::Recaptch" - + "aEnterprise::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_descriptor, - new java.lang.String[] { - "Parent", "Assessment", - }); - internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_descriptor, - new java.lang.String[] { - "EventType", "Reason", "Value", "EventTime", - }); - internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_descriptor, - new java.lang.String[] { - "Name", "Annotation", "Reasons", "HashedAccountId", "TransactionEvent", - }); - internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_descriptor, - new java.lang.String[] { - "EmailAddress", "PhoneNumber", "RequestToken", "LastVerificationTime", "Endpoint", - }); - internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_descriptor, - new java.lang.String[] { - "Endpoints", "LanguageCode", "LatestVerificationResult", "Username", - }); - internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_descriptor, - new java.lang.String[] { - "LookupHashPrefix", - "EncryptedUserCredentialsHash", - "EncryptedLeakMatchPrefixes", - "ReencryptedUserCredentialsHash", - }); - internal_static_google_cloud_recaptchaenterprise_v1_Assessment_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_recaptchaenterprise_v1_Assessment_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_Assessment_descriptor, - new java.lang.String[] { - "Name", - "Event", - "RiskAnalysis", - "TokenProperties", - "AccountVerification", - "AccountDefenderAssessment", - "PrivatePasswordLeakVerification", - "FirewallPolicyAssessment", - "FraudPreventionAssessment", - "FraudSignals", - }); - internal_static_google_cloud_recaptchaenterprise_v1_Event_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_recaptchaenterprise_v1_Event_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_Event_descriptor, - new java.lang.String[] { - "Token", - "SiteKey", - "UserAgent", - "UserIpAddress", - "ExpectedAction", - "HashedAccountId", - "Express", - "RequestedUri", - "WafTokenAssessment", - "Ja3", - "Headers", - "FirewallPolicyEvaluation", - "TransactionData", - }); - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor, - new java.lang.String[] { - "TransactionId", - "PaymentMethod", - "CardBin", - "CardLastFour", - "CurrencyCode", - "Value", - "ShippingValue", - "ShippingAddress", - "BillingAddress", - "User", - "Merchants", - "Items", - "GatewayInfo", - "TransactionId", - }); - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_descriptor, - new java.lang.String[] { - "Recipient", "Address", "Locality", "AdministrativeArea", "RegionCode", "PostalCode", - }); - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_descriptor, - new java.lang.String[] { - "AccountId", "CreationMs", "Email", "EmailVerified", "PhoneNumber", "PhoneVerified", - }); - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_descriptor, - new java.lang.String[] { - "Name", "Value", "Quantity", "MerchantAccountId", - }); - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_descriptor, - new java.lang.String[] { - "Name", "GatewayResponseCode", "AvsResponseCode", "CvvResponseCode", - }); - internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor, - new java.lang.String[] { - "Score", "Reasons", "ExtendedVerdictReasons", - }); - internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor, - new java.lang.String[] { - "Valid", - "InvalidReason", - "CreateTime", - "Hostname", - "AndroidPackageName", - "IosBundleId", - "Action", - }); - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor, - new java.lang.String[] { - "TransactionRisk", - "StolenInstrumentVerdict", - "CardTestingVerdict", - "BehavioralTrustVerdict", - }); - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor, - new java.lang.String[] { - "Risk", - }); - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_descriptor, - new java.lang.String[] { - "Risk", - }); - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor, - new java.lang.String[] { - "Trust", - }); - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor, - new java.lang.String[] { - "UserSignals", "CardSignals", - }); - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_descriptor, - new java.lang.String[] { - "ActiveDaysLowerBound", "SyntheticRisk", - }); - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_descriptor, - new java.lang.String[] { - "CardLabels", - }); - internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor, - new java.lang.String[] { - "Labels", - }); - internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor, - new java.lang.String[] { - "Parent", "Key", - }); - internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor, - new java.lang.String[] { - "Keys", "NextPageToken", - }); - internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor, - new java.lang.String[] { - "Key", - }); - internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor, - new java.lang.String[] { - "Key", "UpdateMask", - }); - internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor, - new java.lang.String[] { - "Parent", "FirewallPolicy", - }); - internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor, - new java.lang.String[] { - "FirewallPolicies", "NextPageToken", - }); - internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor, - new java.lang.String[] { - "FirewallPolicy", "UpdateMask", - }); - internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor, - new java.lang.String[] { - "Name", "SkipBillingCheck", - }); - internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_recaptchaenterprise_v1_Metrics_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor, - new java.lang.String[] { - "Name", "StartTime", "ScoreMetrics", "ChallengeMetrics", - }); - internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor, - new java.lang.String[] { - "LegacySecretKey", - }); - internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_recaptchaenterprise_v1_Key_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "WebSettings", - "AndroidSettings", - "IosSettings", - "Labels", - "CreateTime", - "TestingOptions", - "WafSettings", - "PlatformSettings", - }); - internal_static_google_cloud_recaptchaenterprise_v1_Key_LabelsEntry_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_recaptchaenterprise_v1_Key_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_Key_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor, - new java.lang.String[] { - "TestingScore", "TestingChallenge", - }); - internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor, - new java.lang.String[] { - "AllowAllDomains", - "AllowedDomains", - "AllowAmpTraffic", - "IntegrationType", - "ChallengeSecurityPreference", - }); - internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor, - new java.lang.String[] { - "AllowAllPackageNames", "AllowedPackageNames", "SupportNonGoogleAppStoreDistribution", - }); - internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor, - new java.lang.String[] { - "AllowAllBundleIds", "AllowedBundleIds", "AppleDeveloperId", - }); - internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor, - new java.lang.String[] { - "PrivateKey", "KeyId", "TeamId", - }); - internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor, - new java.lang.String[] { - "ScoreBuckets", - }); - internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_ScoreBucketsEntry_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_ScoreBucketsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_ScoreBucketsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor, - new java.lang.String[] { - "OverallMetrics", "ActionMetrics", - }); - internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_ActionMetricsEntry_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_ActionMetricsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_ActionMetricsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor, - new java.lang.String[] { - "PageloadCount", "NocaptchaCount", "FailedCount", "PassedCount", - }); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor, - new java.lang.String[] { - "Error", "FirewallPolicy", - }); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor, - new java.lang.String[] { - "Allow", "Block", "Redirect", "Substitute", "SetHeader", "FirewallActionOneof", - }); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor, - new java.lang.String[] { - "Path", - }); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor - .getNestedTypes() - .get(4); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor, - new java.lang.String[] { - "Name", "Description", "Path", "Condition", "Actions", - }); - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor, - new java.lang.String[] { - "RelatedAccountGroupMemberships", "NextPageToken", - }); - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor, - new java.lang.String[] { - "RelatedAccountGroups", "NextPageToken", - }); - internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor = - getDescriptor().getMessageTypes().get(48); - internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor, - new java.lang.String[] { - "Project", "HashedAccountId", "PageSize", "PageToken", - }); - internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor = - getDescriptor().getMessageTypes().get(49); - internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor, - new java.lang.String[] { - "RelatedAccountGroupMemberships", "NextPageToken", - }); - internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor = - getDescriptor().getMessageTypes().get(50); - internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor, - new java.lang.String[] { - "Name", "HashedAccountId", - }); - internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor = - getDescriptor().getMessageTypes().get(51); - internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor = - getDescriptor().getMessageTypes().get(52); - internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor, - new java.lang.String[] { - "WafService", "WafFeature", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupOrBuilder.java deleted file mode 100644 index a54bc4c67896..000000000000 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface RelatedAccountGroupOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.RelatedAccountGroup) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name for the related account group in the format
-   * `projects/{project}/relatedaccountgroups/{related_account_group}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name for the related account group in the format
-   * `projects/{project}/relatedaccountgroups/{related_account_group}`.
-   * 
- * - * - * 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/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequestOrBuilder.java deleted file mode 100644 index b30390ab62ef..000000000000 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface RetrieveLegacySecretKeyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The public key name linked to the requested secret key in the
-   * format `projects/{project}/keys/{key}`.
-   * 
- * - * - * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The key. - */ - java.lang.String getKey(); - /** - * - * - *
-   * Required. The public key name linked to the requested secret key in the
-   * format `projects/{project}/keys/{key}`.
-   * 
- * - * - * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for key. - */ - com.google.protobuf.ByteString getKeyBytes(); -} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettingsOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettingsOrBuilder.java deleted file mode 100644 index e79eed6c0cb3..000000000000 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettingsOrBuilder.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1; - -public interface WafSettingsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.WafSettings) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The WAF service that uses this key.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for wafService. - */ - int getWafServiceValue(); - /** - * - * - *
-   * Required. The WAF service that uses this key.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The wafService. - */ - com.google.recaptchaenterprise.v1.WafSettings.WafService getWafService(); - - /** - * - * - *
-   * Required. The WAF feature for which this key is enabled.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for wafFeature. - */ - int getWafFeatureValue(); - /** - * - * - *
-   * Required. The WAF feature for which this key is enabled.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The wafFeature. - */ - com.google.recaptchaenterprise.v1.WafSettings.WafFeature getWafFeature(); -} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessmentOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessmentOrBuilder.java deleted file mode 100644 index 3620d0b56983..000000000000 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessmentOrBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1beta1; - -public interface AccountDefenderAssessmentOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Labels for this request.
-   * 
- * - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * - * - * @return A list containing the labels. - */ - java.util.List< - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel> - getLabelsList(); - /** - * - * - *
-   * Labels for this request.
-   * 
- * - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * - * - * @return The count of labels. - */ - int getLabelsCount(); - /** - * - * - *
-   * Labels for this request.
-   * 
- * - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * - * - * @param index The index of the element to return. - * @return The labels at the given index. - */ - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel getLabels( - int index); - /** - * - * - *
-   * Labels for this request.
-   * 
- * - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * - * - * @return A list containing the enum numeric values on the wire for labels. - */ - java.util.List getLabelsValueList(); - /** - * - * - *
-   * Labels for this request.
-   * 
- * - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of labels at the given index. - */ - int getLabelsValue(int index); -} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java deleted file mode 100644 index 5f82c0db6168..000000000000 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java +++ /dev/null @@ -1,229 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1beta1; - -public interface AnnotateAssessmentRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the Assessment, in the format
-   * `projects/{project_number}/assessments/{assessment_id}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the Assessment, in the format
-   * `projects/{project_number}/assessments/{assessment_id}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Optional. The annotation that will be assigned to the Event. This field can
-   * be left empty to provide reasons that apply to an event without concluding
-   * whether the event is legitimate or fraudulent.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for annotation. - */ - int getAnnotationValue(); - /** - * - * - *
-   * Optional. The annotation that will be assigned to the Event. This field can
-   * be left empty to provide reasons that apply to an event without concluding
-   * whether the event is legitimate or fraudulent.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The annotation. - */ - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation getAnnotation(); - - /** - * - * - *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
-   * 
- * - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the reasons. - */ - java.util.List - getReasonsList(); - /** - * - * - *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
-   * 
- * - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of reasons. - */ - int getReasonsCount(); - /** - * - * - *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
-   * 
- * - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The reasons at the given index. - */ - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason getReasons(int index); - /** - * - * - *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
-   * 
- * - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the enum numeric values on the wire for reasons. - */ - java.util.List getReasonsValueList(); - /** - * - * - *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
-   * 
- * - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @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); - - /** - * - * - *
-   * Optional. Optional unique stable hashed user identifier to apply to the
-   * assessment. This is an alternative to setting the hashed_account_id in
-   * CreateAssessment, for example when the account identifier is not yet known
-   * in the initial request. It is recommended that the identifier is hashed
-   * using hmac-sha256 with stable secret.
-   * 
- * - * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The hashedAccountId. - */ - com.google.protobuf.ByteString getHashedAccountId(); - - /** - * - * - *
-   * Optional. If the assessment is part of a payment transaction, provide
-   * details on payment lifecycle events that occur in the transaction.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the transactionEvent field is set. - */ - boolean hasTransactionEvent(); - /** - * - * - *
-   * Optional. If the assessment is part of a payment transaction, provide
-   * details on payment lifecycle events that occur in the transaction.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The transactionEvent. - */ - com.google.recaptchaenterprise.v1beta1.TransactionEvent getTransactionEvent(); - /** - * - * - *
-   * Optional. If the assessment is part of a payment transaction, provide
-   * details on payment lifecycle events that occur in the transaction.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.recaptchaenterprise.v1beta1.TransactionEventOrBuilder getTransactionEventOrBuilder(); -} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponseOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponseOrBuilder.java deleted file mode 100644 index 8e894c61a934..000000000000 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1beta1; - -public interface AnnotateAssessmentResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequestOrBuilder.java deleted file mode 100644 index d6f34142307d..000000000000 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1beta1; - -public interface CreateAssessmentRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the project in which the assessment will be created,
-   * in the format `projects/{project_number}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The name of the project in which the assessment will be created,
-   * in the format `projects/{project_number}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The assessment details.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the assessment field is set. - */ - boolean hasAssessment(); - /** - * - * - *
-   * Required. The assessment details.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The assessment. - */ - com.google.recaptchaenterprise.v1beta1.Assessment getAssessment(); - /** - * - * - *
-   * Required. The assessment details.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder getAssessmentOrBuilder(); -} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessmentOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessmentOrBuilder.java deleted file mode 100644 index 2a2b0ecde477..000000000000 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessmentOrBuilder.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1beta1; - -public interface FraudPreventionAssessmentOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Probability (0-1) of this transaction being fraudulent. Summarizes the
-   * combined risk of attack vectors below.
-   * 
- * - * float transaction_risk = 1; - * - * @return The transactionRisk. - */ - float getTransactionRisk(); - - /** - * - * - *
-   * Assessment of this transaction for risk of a stolen instrument.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; - * - * - * @return Whether the stolenInstrumentVerdict field is set. - */ - boolean hasStolenInstrumentVerdict(); - /** - * - * - *
-   * Assessment of this transaction for risk of a stolen instrument.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; - * - * - * @return The stolenInstrumentVerdict. - */ - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict - getStolenInstrumentVerdict(); - /** - * - * - *
-   * Assessment of this transaction for risk of a stolen instrument.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; - * - */ - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder - getStolenInstrumentVerdictOrBuilder(); - - /** - * - * - *
-   * Assessment of this transaction for risk of being part of a card testing
-   * attack.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; - * - * - * @return Whether the cardTestingVerdict field is set. - */ - boolean hasCardTestingVerdict(); - /** - * - * - *
-   * Assessment of this transaction for risk of being part of a card testing
-   * attack.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; - * - * - * @return The cardTestingVerdict. - */ - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - getCardTestingVerdict(); - /** - * - * - *
-   * Assessment of this transaction for risk of being part of a card testing
-   * attack.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; - * - */ - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdictOrBuilder - getCardTestingVerdictOrBuilder(); - - /** - * - * - *
-   * Assessment of this transaction for behavioral trust.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; - * - * - * @return Whether the behavioralTrustVerdict field is set. - */ - boolean hasBehavioralTrustVerdict(); - /** - * - * - *
-   * Assessment of this transaction for behavioral trust.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; - * - * - * @return The behavioralTrustVerdict. - */ - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict - getBehavioralTrustVerdict(); - /** - * - * - *
-   * Assessment of this transaction for behavioral trust.
-   * 
- * - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; - * - */ - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder - getBehavioralTrustVerdictOrBuilder(); -} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseProto.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseProto.java deleted file mode 100644 index d686bdf7493b..000000000000 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseProto.java +++ /dev/null @@ -1,495 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto - -package com.google.recaptchaenterprise.v1beta1; - -public final class RecaptchaEnterpriseProto { - private RecaptchaEnterpriseProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nBgoogle/cloud/recaptchaenterprise/v1bet" - + "a1/recaptchaenterprise.proto\022(google.clo" - + "ud.recaptchaenterprise.v1beta1\032\034google/a" - + "pi/annotations.proto\032\027google/api/client." - + "proto\032\037google/api/field_behavior.proto\032\031" - + "google/api/resource.proto\032\037google/protob" - + "uf/timestamp.proto\"\257\001\n\027CreateAssessmentR" - + "equest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudre" - + "sourcemanager.googleapis.com/Project\022N\n\n" - + "assessment\030\002 \001(\01324.google.cloud.recaptch" - + "aenterprise.v1beta1.AssessmentB\004\342A\001\002\"\233\005\n" - + "\020TransactionEvent\022i\n\nevent_type\030\001 \001(\0162O." - + "google.cloud.recaptchaenterprise.v1beta1" - + ".TransactionEvent.TransactionEventTypeB\004" - + "\342A\001\001\022\024\n\006reason\030\002 \001(\tB\004\342A\001\001\022\023\n\005value\030\003 \001(" - + "\001B\004\342A\001\001\0224\n\nevent_time\030\004 \001(\0132\032.google.pro" - + "tobuf.TimestampB\004\342A\001\001\"\272\003\n\024TransactionEve" - + "ntType\022&\n\"TRANSACTION_EVENT_TYPE_UNSPECI" - + "FIED\020\000\022\024\n\020MERCHANT_APPROVE\020\001\022\021\n\rMERCHANT" - + "_DENY\020\002\022\021\n\rMANUAL_REVIEW\020\003\022\021\n\rAUTHORIZAT" - + "ION\020\004\022\031\n\025AUTHORIZATION_DECLINE\020\005\022\023\n\017PAYM" - + "ENT_CAPTURE\020\006\022\033\n\027PAYMENT_CAPTURE_DECLINE" - + "\020\007\022\n\n\006CANCEL\020\010\022\026\n\022CHARGEBACK_INQUIRY\020\t\022\024" - + "\n\020CHARGEBACK_ALERT\020\n\022\026\n\022FRAUD_NOTIFICATI" - + "ON\020\013\022\016\n\nCHARGEBACK\020\014\022\034\n\030CHARGEBACK_REPRE" - + "SENTMENT\020\r\022\026\n\022CHARGEBACK_REVERSE\020\016\022\022\n\016RE" - + "FUND_REQUEST\020\017\022\022\n\016REFUND_DECLINE\020\020\022\n\n\006RE" - + "FUND\020\021\022\022\n\016REFUND_REVERSE\020\022\"\376\006\n\031AnnotateA" - + "ssessmentRequest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n" - + "-recaptchaenterprise.googleapis.com/Asse" - + "ssment\022h\n\nannotation\030\002 \001(\0162N.google.clou" - + "d.recaptchaenterprise.v1beta1.AnnotateAs" - + "sessmentRequest.AnnotationB\004\342A\001\001\022a\n\007reas" - + "ons\030\003 \003(\0162J.google.cloud.recaptchaenterp" - + "rise.v1beta1.AnnotateAssessmentRequest.R" - + "easonB\004\342A\001\001\022\037\n\021hashed_account_id\030\004 \001(\014B\004" - + "\342A\001\001\022[\n\021transaction_event\030\005 \001(\0132:.google" - + ".cloud.recaptchaenterprise.v1beta1.Trans" - + "actionEventB\004\342A\001\001\"~\n\nAnnotation\022\032\n\026ANNOT" - + "ATION_UNSPECIFIED\020\000\022\016\n\nLEGITIMATE\020\001\022\016\n\nF" - + "RAUDULENT\020\002\022\030\n\020PASSWORD_CORRECT\020\003\032\002\010\001\022\032\n" - + "\022PASSWORD_INCORRECT\020\004\032\002\010\001\"\317\002\n\006Reason\022\026\n\022" - + "REASON_UNSPECIFIED\020\000\022\016\n\nCHARGEBACK\020\001\022\024\n\020" - + "CHARGEBACK_FRAUD\020\010\022\026\n\022CHARGEBACK_DISPUTE" - + "\020\t\022\n\n\006REFUND\020\n\022\020\n\014REFUND_FRAUD\020\013\022\030\n\024TRAN" - + "SACTION_ACCEPTED\020\014\022\030\n\024TRANSACTION_DECLIN" - + "ED\020\r\022\026\n\022PAYMENT_HEURISTICS\020\002\022\030\n\024INITIATE" - + "D_TWO_FACTOR\020\007\022\025\n\021PASSED_TWO_FACTOR\020\003\022\025\n" - + "\021FAILED_TWO_FACTOR\020\004\022\024\n\020CORRECT_PASSWORD" - + "\020\005\022\026\n\022INCORRECT_PASSWORD\020\006\022\017\n\013SOCIAL_SPA" - + "M\020\016\"\034\n\032AnnotateAssessmentResponse\"\211\001\n\030Pa" - + "sswordLeakVerification\022%\n\027hashed_user_cr" - + "edentials\030\001 \001(\014B\004\342A\001\001\022 \n\022credentials_lea" - + "ked\030\002 \001(\010B\004\342A\001\003\022$\n\026canonicalized_usernam" - + "e\030\003 \001(\tB\004\342A\001\001\"\273\007\n\nAssessment\022\022\n\004name\030\001 \001" - + "(\tB\004\342A\001\003\022>\n\005event\030\002 \001(\0132/.google.cloud.r" - + "ecaptchaenterprise.v1beta1.Event\022\023\n\005scor" - + "e\030\003 \001(\002B\004\342A\001\003\022Y\n\020token_properties\030\004 \001(\0132" - + "9.google.cloud.recaptchaenterprise.v1bet" - + "a1.TokenPropertiesB\004\342A\001\003\022`\n\007reasons\030\005 \003(" - + "\0162I.google.cloud.recaptchaenterprise.v1b" - + "eta1.Assessment.ClassificationReasonB\004\342A" - + "\001\003\022f\n\032password_leak_verification\030\007 \001(\0132B" - + ".google.cloud.recaptchaenterprise.v1beta" - + "1.PasswordLeakVerification\022h\n\033account_de" - + "fender_assessment\030\010 \001(\0132C.google.cloud.r" - + "ecaptchaenterprise.v1beta1.AccountDefend" - + "erAssessment\022h\n\033fraud_prevention_assessm" - + "ent\030\013 \001(\0132C.google.cloud.recaptchaenterp" - + "rise.v1beta1.FraudPreventionAssessment\"\351" - + "\001\n\024ClassificationReason\022%\n!CLASSIFICATIO" - + "N_REASON_UNSPECIFIED\020\000\022\016\n\nAUTOMATION\020\001\022\032" - + "\n\026UNEXPECTED_ENVIRONMENT\020\002\022\024\n\020TOO_MUCH_T" - + "RAFFIC\020\003\022\035\n\031UNEXPECTED_USAGE_PATTERNS\020\004\022" - + "\030\n\024LOW_CONFIDENCE_SCORE\020\005\022\025\n\021SUSPECTED_C" - + "ARDING\020\006\022\030\n\024SUSPECTED_CHARGEBACK\020\007:_\352A\\\n" - + "-recaptchaenterprise.googleapis.com/Asse" - + "ssment\022+projects/{project}/assessments/{" - + "assessment}\"\210\002\n\005Event\022\023\n\005token\030\001 \001(\tB\004\342A" - + "\001\001\022\026\n\010site_key\030\002 \001(\tB\004\342A\001\001\022\030\n\nuser_agent" - + "\030\003 \001(\tB\004\342A\001\001\022\035\n\017user_ip_address\030\004 \001(\tB\004\342" - + "A\001\001\022\035\n\017expected_action\030\005 \001(\tB\004\342A\001\001\022\037\n\021ha" - + "shed_account_id\030\006 \001(\014B\004\342A\001\001\022Y\n\020transacti" - + "on_data\030\r \001(\01329.google.cloud.recaptchaen" - + "terprise.v1beta1.TransactionDataB\004\342A\001\001\"\235" - + "\t\n\017TransactionData\022\033\n\016transaction_id\030\013 \001" - + "(\tH\000\210\001\001\022\026\n\016payment_method\030\001 \001(\t\022\020\n\010card_" - + "bin\030\002 \001(\t\022\026\n\016card_last_four\030\003 \001(\t\022\025\n\rcur" - + "rency_code\030\004 \001(\t\022\r\n\005value\030\005 \001(\001\022\026\n\016shipp" - + "ing_value\030\014 \001(\001\022[\n\020shipping_address\030\006 \001(" - + "\0132A.google.cloud.recaptchaenterprise.v1b" - + "eta1.TransactionData.Address\022Z\n\017billing_" - + "address\030\007 \001(\0132A.google.cloud.recaptchaen" - + "terprise.v1beta1.TransactionData.Address" - + "\022L\n\004user\030\010 \001(\0132>.google.cloud.recaptchae" - + "nterprise.v1beta1.TransactionData.User\022Q" - + "\n\tmerchants\030\r \003(\0132>.google.cloud.recaptc" - + "haenterprise.v1beta1.TransactionData.Use" - + "r\022M\n\005items\030\016 \003(\0132>.google.cloud.recaptch" - + "aenterprise.v1beta1.TransactionData.Item" - + "\022[\n\014gateway_info\030\n \001(\0132E.google.cloud.re" - + "captchaenterprise.v1beta1.TransactionDat" - + "a.GatewayInfo\032\206\001\n\007Address\022\021\n\trecipient\030\001" - + " \001(\t\022\017\n\007address\030\002 \003(\t\022\020\n\010locality\030\003 \001(\t\022" - + "\033\n\023administrative_area\030\004 \001(\t\022\023\n\013region_c" - + "ode\030\005 \001(\t\022\023\n\013postal_code\030\006 \001(\t\032\204\001\n\004User\022" - + "\022\n\naccount_id\030\006 \001(\t\022\023\n\013creation_ms\030\001 \001(\003" - + "\022\r\n\005email\030\002 \001(\t\022\026\n\016email_verified\030\003 \001(\010\022" - + "\024\n\014phone_number\030\004 \001(\t\022\026\n\016phone_verified\030" - + "\005 \001(\010\032R\n\004Item\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\001\022\020\n\010quantity\030\003 \001(\003\022\033\n\023merchant_account" - + "_id\030\004 \001(\t\032p\n\013GatewayInfo\022\014\n\004name\030\001 \001(\t\022\035" - + "\n\025gateway_response_code\030\002 \001(\t\022\031\n\021avs_res" - + "ponse_code\030\003 \001(\t\022\031\n\021cvv_response_code\030\004 " - + "\001(\tB\021\n\017_transaction_id\"\377\002\n\017TokenProperti" - + "es\022\r\n\005valid\030\001 \001(\010\022_\n\016invalid_reason\030\002 \001(" - + "\0162G.google.cloud.recaptchaenterprise.v1b" - + "eta1.TokenProperties.InvalidReason\022/\n\013cr" - + "eate_time\030\003 \001(\0132\032.google.protobuf.Timest" - + "amp\022\020\n\010hostname\030\004 \001(\t\022\016\n\006action\030\005 \001(\t\"\250\001" - + "\n\rInvalidReason\022\036\n\032INVALID_REASON_UNSPEC" - + "IFIED\020\000\022\032\n\026UNKNOWN_INVALID_REASON\020\001\022\r\n\tM" - + "ALFORMED\020\002\022\013\n\007EXPIRED\020\003\022\010\n\004DUPE\020\004\022\025\n\rSIT" - + "E_MISMATCH\020\005\032\002\010\001\022\013\n\007MISSING\020\006\022\021\n\rBROWSER" - + "_ERROR\020\007\"\237\004\n\031FraudPreventionAssessment\022\030" - + "\n\020transaction_risk\030\001 \001(\002\022~\n\031stolen_instr" - + "ument_verdict\030\002 \001(\0132[.google.cloud.recap" - + "tchaenterprise.v1beta1.FraudPreventionAs" - + "sessment.StolenInstrumentVerdict\022t\n\024card" - + "_testing_verdict\030\003 \001(\0132V.google.cloud.re" - + "captchaenterprise.v1beta1.FraudPreventio" - + "nAssessment.CardTestingVerdict\022|\n\030behavi" - + "oral_trust_verdict\030\004 \001(\0132Z.google.cloud." - + "recaptchaenterprise.v1beta1.FraudPrevent" - + "ionAssessment.BehavioralTrustVerdict\032\'\n\027" - + "StolenInstrumentVerdict\022\014\n\004risk\030\001 \001(\002\032\"\n" - + "\022CardTestingVerdict\022\014\n\004risk\030\001 \001(\002\032\'\n\026Beh" - + "avioralTrustVerdict\022\r\n\005trust\030\001 \001(\002\"\273\002\n\031A" - + "ccountDefenderAssessment\022h\n\006labels\030\001 \003(\016" - + "2X.google.cloud.recaptchaenterprise.v1be" - + "ta1.AccountDefenderAssessment.AccountDef" - + "enderLabel\"\263\001\n\024AccountDefenderLabel\022&\n\"A" - + "CCOUNT_DEFENDER_LABEL_UNSPECIFIED\020\000\022\021\n\rP" - + "ROFILE_MATCH\020\001\022\035\n\031SUSPICIOUS_LOGIN_ACTIV" - + "ITY\020\002\022\037\n\033SUSPICIOUS_ACCOUNT_CREATION\020\003\022 " - + "\n\034RELATED_ACCOUNTS_NUMBER_HIGH\020\0042\315\004\n!Rec" - + "aptchaEnterpriseServiceV1Beta1\022\335\001\n\020Creat" - + "eAssessment\022A.google.cloud.recaptchaente" - + "rprise.v1beta1.CreateAssessmentRequest\0324" - + ".google.cloud.recaptchaenterprise.v1beta" - + "1.Assessment\"P\332A\021parent,assessment\202\323\344\223\0026" - + "\"(/v1beta1/{parent=projects/*}/assessmen" - + "ts:\nassessment\022\357\001\n\022AnnotateAssessment\022C." - + "google.cloud.recaptchaenterprise.v1beta1" - + ".AnnotateAssessmentRequest\032D.google.clou" - + "d.recaptchaenterprise.v1beta1.AnnotateAs" - + "sessmentResponse\"N\332A\017name,annotation\202\323\344\223" - + "\0026\"1/v1beta1/{name=projects/*/assessment" - + "s/*}:annotate:\001*\032V\312A\"recaptchaenterprise" - + ".googleapis.com\322A.https://www.googleapis" - + ".com/auth/cloud-platformB\262\002\n&com.google." - + "recaptchaenterprise.v1beta1B\030RecaptchaEn" - + "terpriseProtoP\001Zacloud.google.com/go/rec" - + "aptchaenterprise/v2/apiv1beta1/recaptcha" - + "enterprisepb;recaptchaenterprisepb\242\002\004GCR" - + "E\252\002(Google.Cloud.RecaptchaEnterprise.V1B" - + "eta1\312\002(Google\\Cloud\\RecaptchaEnterprise\\" - + "V1beta1\352\002+Google::Cloud::RecaptchaEnterp" - + "rise::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_descriptor, - new java.lang.String[] { - "Parent", "Assessment", - }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_descriptor, - new java.lang.String[] { - "EventType", "Reason", "Value", "EventTime", - }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_descriptor, - new java.lang.String[] { - "Name", "Annotation", "Reasons", "HashedAccountId", "TransactionEvent", - }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_descriptor, - new java.lang.String[] { - "HashedUserCredentials", "CredentialsLeaked", "CanonicalizedUsername", - }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_descriptor, - new java.lang.String[] { - "Name", - "Event", - "Score", - "TokenProperties", - "Reasons", - "PasswordLeakVerification", - "AccountDefenderAssessment", - "FraudPreventionAssessment", - }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_descriptor, - new java.lang.String[] { - "Token", - "SiteKey", - "UserAgent", - "UserIpAddress", - "ExpectedAction", - "HashedAccountId", - "TransactionData", - }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor, - new java.lang.String[] { - "TransactionId", - "PaymentMethod", - "CardBin", - "CardLastFour", - "CurrencyCode", - "Value", - "ShippingValue", - "ShippingAddress", - "BillingAddress", - "User", - "Merchants", - "Items", - "GatewayInfo", - "TransactionId", - }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_descriptor, - new java.lang.String[] { - "Recipient", "Address", "Locality", "AdministrativeArea", "RegionCode", "PostalCode", - }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_descriptor, - new java.lang.String[] { - "AccountId", "CreationMs", "Email", "EmailVerified", "PhoneNumber", "PhoneVerified", - }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_descriptor, - new java.lang.String[] { - "Name", "Value", "Quantity", "MerchantAccountId", - }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_descriptor, - new java.lang.String[] { - "Name", "GatewayResponseCode", "AvsResponseCode", "CvvResponseCode", - }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_descriptor, - new java.lang.String[] { - "Valid", "InvalidReason", "CreateTime", "Hostname", "Action", - }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor, - new java.lang.String[] { - "TransactionRisk", - "StolenInstrumentVerdict", - "CardTestingVerdict", - "BehavioralTrustVerdict", - }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor, - new java.lang.String[] { - "Risk", - }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor, - new java.lang.String[] { - "Risk", - }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor = - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor, - new java.lang.String[] { - "Trust", - }); - internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_descriptor, - new java.lang.String[] { - "Labels", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClient.java b/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClient.java similarity index 100% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClient.java rename to owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClient.java diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceSettings.java b/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceSettings.java similarity index 99% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceSettings.java rename to owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceSettings.java index 366dfd02fc2c..b2b13dda0eb1 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceSettings.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceSettings.java @@ -31,6 +31,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.recaptchaenterprise.v1.stub.RecaptchaEnterpriseServiceStubSettings; diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/gapic_metadata.json b/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/gapic_metadata.json similarity index 100% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/gapic_metadata.json rename to owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/gapic_metadata.json diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/package-info.java b/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/package-info.java similarity index 100% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/package-info.java rename to owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/package-info.java diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/GrpcRecaptchaEnterpriseServiceCallableFactory.java b/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/GrpcRecaptchaEnterpriseServiceCallableFactory.java similarity index 100% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/GrpcRecaptchaEnterpriseServiceCallableFactory.java rename to owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/GrpcRecaptchaEnterpriseServiceCallableFactory.java diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/GrpcRecaptchaEnterpriseServiceStub.java b/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/GrpcRecaptchaEnterpriseServiceStub.java similarity index 99% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/GrpcRecaptchaEnterpriseServiceStub.java rename to owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/GrpcRecaptchaEnterpriseServiceStub.java index a4ed107dc478..8df5d2c6d003 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/GrpcRecaptchaEnterpriseServiceStub.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/GrpcRecaptchaEnterpriseServiceStub.java @@ -63,6 +63,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStub.java b/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStub.java similarity index 100% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStub.java rename to owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStub.java diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStubSettings.java b/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStubSettings.java similarity index 100% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStubSettings.java rename to owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStubSettings.java diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json b/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json similarity index 100% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json rename to owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/MockRecaptchaEnterpriseService.java b/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/MockRecaptchaEnterpriseService.java similarity index 100% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/MockRecaptchaEnterpriseService.java rename to owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/MockRecaptchaEnterpriseService.java diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/MockRecaptchaEnterpriseServiceImpl.java b/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/MockRecaptchaEnterpriseServiceImpl.java similarity index 100% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/MockRecaptchaEnterpriseServiceImpl.java rename to owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/MockRecaptchaEnterpriseServiceImpl.java diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClientTest.java b/owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClientTest.java similarity index 100% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClientTest.java rename to owl-bot-staging/java-recaptchaenterprise/v1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClientTest.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/grpc-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseServiceGrpc.java b/owl-bot-staging/java-recaptchaenterprise/v1/grpc-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseServiceGrpc.java new file mode 100644 index 000000000000..8b910135b6cc --- /dev/null +++ b/owl-bot-staging/java-recaptchaenterprise/v1/grpc-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseServiceGrpc.java @@ -0,0 +1,1829 @@ +package com.google.recaptchaenterprise.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service to determine the likelihood an event is legitimate.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class RecaptchaEnterpriseServiceGrpc { + + private RecaptchaEnterpriseServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateAssessmentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAssessment", + requestType = com.google.recaptchaenterprise.v1.CreateAssessmentRequest.class, + responseType = com.google.recaptchaenterprise.v1.Assessment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateAssessmentMethod() { + io.grpc.MethodDescriptor getCreateAssessmentMethod; + if ((getCreateAssessmentMethod = RecaptchaEnterpriseServiceGrpc.getCreateAssessmentMethod) == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getCreateAssessmentMethod = RecaptchaEnterpriseServiceGrpc.getCreateAssessmentMethod) == null) { + RecaptchaEnterpriseServiceGrpc.getCreateAssessmentMethod = getCreateAssessmentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAssessment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.CreateAssessmentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.Assessment.getDefaultInstance())) + .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("CreateAssessment")) + .build(); + } + } + } + return getCreateAssessmentMethod; + } + + private static volatile io.grpc.MethodDescriptor getAnnotateAssessmentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AnnotateAssessment", + requestType = com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.class, + responseType = com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getAnnotateAssessmentMethod() { + io.grpc.MethodDescriptor getAnnotateAssessmentMethod; + if ((getAnnotateAssessmentMethod = RecaptchaEnterpriseServiceGrpc.getAnnotateAssessmentMethod) == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getAnnotateAssessmentMethod = RecaptchaEnterpriseServiceGrpc.getAnnotateAssessmentMethod) == null) { + RecaptchaEnterpriseServiceGrpc.getAnnotateAssessmentMethod = getAnnotateAssessmentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AnnotateAssessment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.getDefaultInstance())) + .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("AnnotateAssessment")) + .build(); + } + } + } + return getAnnotateAssessmentMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateKey", + requestType = com.google.recaptchaenterprise.v1.CreateKeyRequest.class, + responseType = com.google.recaptchaenterprise.v1.Key.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateKeyMethod() { + io.grpc.MethodDescriptor getCreateKeyMethod; + if ((getCreateKeyMethod = RecaptchaEnterpriseServiceGrpc.getCreateKeyMethod) == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getCreateKeyMethod = RecaptchaEnterpriseServiceGrpc.getCreateKeyMethod) == null) { + RecaptchaEnterpriseServiceGrpc.getCreateKeyMethod = getCreateKeyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.CreateKeyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.Key.getDefaultInstance())) + .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("CreateKey")) + .build(); + } + } + } + return getCreateKeyMethod; + } + + private static volatile io.grpc.MethodDescriptor getListKeysMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListKeys", + requestType = com.google.recaptchaenterprise.v1.ListKeysRequest.class, + responseType = com.google.recaptchaenterprise.v1.ListKeysResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListKeysMethod() { + io.grpc.MethodDescriptor getListKeysMethod; + if ((getListKeysMethod = RecaptchaEnterpriseServiceGrpc.getListKeysMethod) == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getListKeysMethod = RecaptchaEnterpriseServiceGrpc.getListKeysMethod) == null) { + RecaptchaEnterpriseServiceGrpc.getListKeysMethod = getListKeysMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListKeys")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.ListKeysRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.ListKeysResponse.getDefaultInstance())) + .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("ListKeys")) + .build(); + } + } + } + return getListKeysMethod; + } + + private static volatile io.grpc.MethodDescriptor getRetrieveLegacySecretKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RetrieveLegacySecretKey", + requestType = com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.class, + responseType = com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRetrieveLegacySecretKeyMethod() { + io.grpc.MethodDescriptor getRetrieveLegacySecretKeyMethod; + if ((getRetrieveLegacySecretKeyMethod = RecaptchaEnterpriseServiceGrpc.getRetrieveLegacySecretKeyMethod) == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getRetrieveLegacySecretKeyMethod = RecaptchaEnterpriseServiceGrpc.getRetrieveLegacySecretKeyMethod) == null) { + RecaptchaEnterpriseServiceGrpc.getRetrieveLegacySecretKeyMethod = getRetrieveLegacySecretKeyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RetrieveLegacySecretKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.getDefaultInstance())) + .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("RetrieveLegacySecretKey")) + .build(); + } + } + } + return getRetrieveLegacySecretKeyMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetKey", + requestType = com.google.recaptchaenterprise.v1.GetKeyRequest.class, + responseType = com.google.recaptchaenterprise.v1.Key.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetKeyMethod() { + io.grpc.MethodDescriptor getGetKeyMethod; + if ((getGetKeyMethod = RecaptchaEnterpriseServiceGrpc.getGetKeyMethod) == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getGetKeyMethod = RecaptchaEnterpriseServiceGrpc.getGetKeyMethod) == null) { + RecaptchaEnterpriseServiceGrpc.getGetKeyMethod = getGetKeyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.GetKeyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.Key.getDefaultInstance())) + .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("GetKey")) + .build(); + } + } + } + return getGetKeyMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateKey", + requestType = com.google.recaptchaenterprise.v1.UpdateKeyRequest.class, + responseType = com.google.recaptchaenterprise.v1.Key.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateKeyMethod() { + io.grpc.MethodDescriptor getUpdateKeyMethod; + if ((getUpdateKeyMethod = RecaptchaEnterpriseServiceGrpc.getUpdateKeyMethod) == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getUpdateKeyMethod = RecaptchaEnterpriseServiceGrpc.getUpdateKeyMethod) == null) { + RecaptchaEnterpriseServiceGrpc.getUpdateKeyMethod = getUpdateKeyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.UpdateKeyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.Key.getDefaultInstance())) + .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("UpdateKey")) + .build(); + } + } + } + return getUpdateKeyMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteKey", + requestType = com.google.recaptchaenterprise.v1.DeleteKeyRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteKeyMethod() { + io.grpc.MethodDescriptor getDeleteKeyMethod; + if ((getDeleteKeyMethod = RecaptchaEnterpriseServiceGrpc.getDeleteKeyMethod) == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getDeleteKeyMethod = RecaptchaEnterpriseServiceGrpc.getDeleteKeyMethod) == null) { + RecaptchaEnterpriseServiceGrpc.getDeleteKeyMethod = getDeleteKeyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.DeleteKeyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("DeleteKey")) + .build(); + } + } + } + return getDeleteKeyMethod; + } + + private static volatile io.grpc.MethodDescriptor getMigrateKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "MigrateKey", + requestType = com.google.recaptchaenterprise.v1.MigrateKeyRequest.class, + responseType = com.google.recaptchaenterprise.v1.Key.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getMigrateKeyMethod() { + io.grpc.MethodDescriptor getMigrateKeyMethod; + if ((getMigrateKeyMethod = RecaptchaEnterpriseServiceGrpc.getMigrateKeyMethod) == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getMigrateKeyMethod = RecaptchaEnterpriseServiceGrpc.getMigrateKeyMethod) == null) { + RecaptchaEnterpriseServiceGrpc.getMigrateKeyMethod = getMigrateKeyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MigrateKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.MigrateKeyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.Key.getDefaultInstance())) + .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("MigrateKey")) + .build(); + } + } + } + return getMigrateKeyMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetMetricsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMetrics", + requestType = com.google.recaptchaenterprise.v1.GetMetricsRequest.class, + responseType = com.google.recaptchaenterprise.v1.Metrics.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetMetricsMethod() { + io.grpc.MethodDescriptor getGetMetricsMethod; + if ((getGetMetricsMethod = RecaptchaEnterpriseServiceGrpc.getGetMetricsMethod) == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getGetMetricsMethod = RecaptchaEnterpriseServiceGrpc.getGetMetricsMethod) == null) { + RecaptchaEnterpriseServiceGrpc.getGetMetricsMethod = getGetMetricsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMetrics")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.GetMetricsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.Metrics.getDefaultInstance())) + .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("GetMetrics")) + .build(); + } + } + } + return getGetMetricsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateFirewallPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFirewallPolicy", + requestType = com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.class, + responseType = com.google.recaptchaenterprise.v1.FirewallPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateFirewallPolicyMethod() { + io.grpc.MethodDescriptor getCreateFirewallPolicyMethod; + if ((getCreateFirewallPolicyMethod = RecaptchaEnterpriseServiceGrpc.getCreateFirewallPolicyMethod) == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getCreateFirewallPolicyMethod = RecaptchaEnterpriseServiceGrpc.getCreateFirewallPolicyMethod) == null) { + RecaptchaEnterpriseServiceGrpc.getCreateFirewallPolicyMethod = getCreateFirewallPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFirewallPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance())) + .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("CreateFirewallPolicy")) + .build(); + } + } + } + return getCreateFirewallPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getListFirewallPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFirewallPolicies", + requestType = com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.class, + responseType = com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFirewallPoliciesMethod() { + io.grpc.MethodDescriptor getListFirewallPoliciesMethod; + if ((getListFirewallPoliciesMethod = RecaptchaEnterpriseServiceGrpc.getListFirewallPoliciesMethod) == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getListFirewallPoliciesMethod = RecaptchaEnterpriseServiceGrpc.getListFirewallPoliciesMethod) == null) { + RecaptchaEnterpriseServiceGrpc.getListFirewallPoliciesMethod = getListFirewallPoliciesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFirewallPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.getDefaultInstance())) + .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("ListFirewallPolicies")) + .build(); + } + } + } + return getListFirewallPoliciesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetFirewallPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFirewallPolicy", + requestType = com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.class, + responseType = com.google.recaptchaenterprise.v1.FirewallPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetFirewallPolicyMethod() { + io.grpc.MethodDescriptor getGetFirewallPolicyMethod; + if ((getGetFirewallPolicyMethod = RecaptchaEnterpriseServiceGrpc.getGetFirewallPolicyMethod) == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getGetFirewallPolicyMethod = RecaptchaEnterpriseServiceGrpc.getGetFirewallPolicyMethod) == null) { + RecaptchaEnterpriseServiceGrpc.getGetFirewallPolicyMethod = getGetFirewallPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFirewallPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance())) + .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("GetFirewallPolicy")) + .build(); + } + } + } + return getGetFirewallPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateFirewallPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFirewallPolicy", + requestType = com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.class, + responseType = com.google.recaptchaenterprise.v1.FirewallPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateFirewallPolicyMethod() { + io.grpc.MethodDescriptor getUpdateFirewallPolicyMethod; + if ((getUpdateFirewallPolicyMethod = RecaptchaEnterpriseServiceGrpc.getUpdateFirewallPolicyMethod) == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getUpdateFirewallPolicyMethod = RecaptchaEnterpriseServiceGrpc.getUpdateFirewallPolicyMethod) == null) { + RecaptchaEnterpriseServiceGrpc.getUpdateFirewallPolicyMethod = getUpdateFirewallPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFirewallPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance())) + .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("UpdateFirewallPolicy")) + .build(); + } + } + } + return getUpdateFirewallPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteFirewallPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFirewallPolicy", + requestType = com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteFirewallPolicyMethod() { + io.grpc.MethodDescriptor getDeleteFirewallPolicyMethod; + if ((getDeleteFirewallPolicyMethod = RecaptchaEnterpriseServiceGrpc.getDeleteFirewallPolicyMethod) == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getDeleteFirewallPolicyMethod = RecaptchaEnterpriseServiceGrpc.getDeleteFirewallPolicyMethod) == null) { + RecaptchaEnterpriseServiceGrpc.getDeleteFirewallPolicyMethod = getDeleteFirewallPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFirewallPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("DeleteFirewallPolicy")) + .build(); + } + } + } + return getDeleteFirewallPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getListRelatedAccountGroupsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRelatedAccountGroups", + requestType = com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.class, + responseType = com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListRelatedAccountGroupsMethod() { + io.grpc.MethodDescriptor getListRelatedAccountGroupsMethod; + if ((getListRelatedAccountGroupsMethod = RecaptchaEnterpriseServiceGrpc.getListRelatedAccountGroupsMethod) == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getListRelatedAccountGroupsMethod = RecaptchaEnterpriseServiceGrpc.getListRelatedAccountGroupsMethod) == null) { + RecaptchaEnterpriseServiceGrpc.getListRelatedAccountGroupsMethod = getListRelatedAccountGroupsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRelatedAccountGroups")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.getDefaultInstance())) + .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("ListRelatedAccountGroups")) + .build(); + } + } + } + return getListRelatedAccountGroupsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListRelatedAccountGroupMembershipsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRelatedAccountGroupMemberships", + requestType = com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.class, + responseType = com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListRelatedAccountGroupMembershipsMethod() { + io.grpc.MethodDescriptor getListRelatedAccountGroupMembershipsMethod; + if ((getListRelatedAccountGroupMembershipsMethod = RecaptchaEnterpriseServiceGrpc.getListRelatedAccountGroupMembershipsMethod) == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getListRelatedAccountGroupMembershipsMethod = RecaptchaEnterpriseServiceGrpc.getListRelatedAccountGroupMembershipsMethod) == null) { + RecaptchaEnterpriseServiceGrpc.getListRelatedAccountGroupMembershipsMethod = getListRelatedAccountGroupMembershipsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRelatedAccountGroupMemberships")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.getDefaultInstance())) + .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("ListRelatedAccountGroupMemberships")) + .build(); + } + } + } + return getListRelatedAccountGroupMembershipsMethod; + } + + private static volatile io.grpc.MethodDescriptor getSearchRelatedAccountGroupMembershipsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchRelatedAccountGroupMemberships", + requestType = com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.class, + responseType = com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSearchRelatedAccountGroupMembershipsMethod() { + io.grpc.MethodDescriptor getSearchRelatedAccountGroupMembershipsMethod; + if ((getSearchRelatedAccountGroupMembershipsMethod = RecaptchaEnterpriseServiceGrpc.getSearchRelatedAccountGroupMembershipsMethod) == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + if ((getSearchRelatedAccountGroupMembershipsMethod = RecaptchaEnterpriseServiceGrpc.getSearchRelatedAccountGroupMembershipsMethod) == null) { + RecaptchaEnterpriseServiceGrpc.getSearchRelatedAccountGroupMembershipsMethod = getSearchRelatedAccountGroupMembershipsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchRelatedAccountGroupMemberships")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.getDefaultInstance())) + .setSchemaDescriptor(new RecaptchaEnterpriseServiceMethodDescriptorSupplier("SearchRelatedAccountGroupMemberships")) + .build(); + } + } + } + return getSearchRelatedAccountGroupMembershipsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static RecaptchaEnterpriseServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RecaptchaEnterpriseServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecaptchaEnterpriseServiceStub(channel, callOptions); + } + }; + return RecaptchaEnterpriseServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static RecaptchaEnterpriseServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RecaptchaEnterpriseServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecaptchaEnterpriseServiceBlockingStub(channel, callOptions); + } + }; + return RecaptchaEnterpriseServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static RecaptchaEnterpriseServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RecaptchaEnterpriseServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecaptchaEnterpriseServiceFutureStub(channel, callOptions); + } + }; + return RecaptchaEnterpriseServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service to determine the likelihood an event is legitimate.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Creates an Assessment of the likelihood an event is legitimate.
+     * 
+ */ + default void createAssessment(com.google.recaptchaenterprise.v1.CreateAssessmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAssessmentMethod(), responseObserver); + } + + /** + *
+     * Annotates a previously created Assessment to provide additional information
+     * on whether the event turned out to be authentic or fraudulent.
+     * 
+ */ + default void annotateAssessment(com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAnnotateAssessmentMethod(), responseObserver); + } + + /** + *
+     * Creates a new reCAPTCHA Enterprise key.
+     * 
+ */ + default void createKey(com.google.recaptchaenterprise.v1.CreateKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateKeyMethod(), responseObserver); + } + + /** + *
+     * Returns the list of all keys that belong to a project.
+     * 
+ */ + default void listKeys(com.google.recaptchaenterprise.v1.ListKeysRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListKeysMethod(), responseObserver); + } + + /** + *
+     * Returns the secret key related to the specified public key.
+     * You must use the legacy secret key only in a 3rd party integration with
+     * legacy reCAPTCHA.
+     * 
+ */ + default void retrieveLegacySecretKey(com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRetrieveLegacySecretKeyMethod(), responseObserver); + } + + /** + *
+     * Returns the specified key.
+     * 
+ */ + default void getKey(com.google.recaptchaenterprise.v1.GetKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetKeyMethod(), responseObserver); + } + + /** + *
+     * Updates the specified key.
+     * 
+ */ + default void updateKey(com.google.recaptchaenterprise.v1.UpdateKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateKeyMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified key.
+     * 
+ */ + default void deleteKey(com.google.recaptchaenterprise.v1.DeleteKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteKeyMethod(), responseObserver); + } + + /** + *
+     * Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise.
+     * Once a key is migrated, it can be used from either product. SiteVerify
+     * requests are billed as CreateAssessment calls. You must be
+     * authenticated as one of the current owners of the reCAPTCHA Key, and
+     * your user must have the reCAPTCHA Enterprise Admin IAM role in the
+     * destination project.
+     * 
+ */ + default void migrateKey(com.google.recaptchaenterprise.v1.MigrateKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMigrateKeyMethod(), responseObserver); + } + + /** + *
+     * Get some aggregated metrics for a Key. This data can be used to build
+     * dashboards.
+     * 
+ */ + default void getMetrics(com.google.recaptchaenterprise.v1.GetMetricsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMetricsMethod(), responseObserver); + } + + /** + *
+     * Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
+     * Enterprise actions can be executed.
+     * A project may have a maximum of 1000 policies.
+     * 
+ */ + default void createFirewallPolicy(com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFirewallPolicyMethod(), responseObserver); + } + + /** + *
+     * Returns the list of all firewall policies that belong to a project.
+     * 
+ */ + default void listFirewallPolicies(com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFirewallPoliciesMethod(), responseObserver); + } + + /** + *
+     * Returns the specified firewall policy.
+     * 
+ */ + default void getFirewallPolicy(com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFirewallPolicyMethod(), responseObserver); + } + + /** + *
+     * Updates the specified firewall policy.
+     * 
+ */ + default void updateFirewallPolicy(com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFirewallPolicyMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified firewall policy.
+     * 
+ */ + default void deleteFirewallPolicy(com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFirewallPolicyMethod(), responseObserver); + } + + /** + *
+     * List groups of related accounts.
+     * 
+ */ + default void listRelatedAccountGroups(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRelatedAccountGroupsMethod(), responseObserver); + } + + /** + *
+     * Get memberships in a group of related accounts.
+     * 
+ */ + default void listRelatedAccountGroupMemberships(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRelatedAccountGroupMembershipsMethod(), responseObserver); + } + + /** + *
+     * Search group memberships related to a given account.
+     * 
+ */ + default void searchRelatedAccountGroupMemberships(com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchRelatedAccountGroupMembershipsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service RecaptchaEnterpriseService. + *
+   * Service to determine the likelihood an event is legitimate.
+   * 
+ */ + public static abstract class RecaptchaEnterpriseServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return RecaptchaEnterpriseServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service RecaptchaEnterpriseService. + *
+   * Service to determine the likelihood an event is legitimate.
+   * 
+ */ + public static final class RecaptchaEnterpriseServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private RecaptchaEnterpriseServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RecaptchaEnterpriseServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecaptchaEnterpriseServiceStub(channel, callOptions); + } + + /** + *
+     * Creates an Assessment of the likelihood an event is legitimate.
+     * 
+ */ + public void createAssessment(com.google.recaptchaenterprise.v1.CreateAssessmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAssessmentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Annotates a previously created Assessment to provide additional information
+     * on whether the event turned out to be authentic or fraudulent.
+     * 
+ */ + public void annotateAssessment(com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAnnotateAssessmentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new reCAPTCHA Enterprise key.
+     * 
+ */ + public void createKey(com.google.recaptchaenterprise.v1.CreateKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateKeyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the list of all keys that belong to a project.
+     * 
+ */ + public void listKeys(com.google.recaptchaenterprise.v1.ListKeysRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListKeysMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the secret key related to the specified public key.
+     * You must use the legacy secret key only in a 3rd party integration with
+     * legacy reCAPTCHA.
+     * 
+ */ + public void retrieveLegacySecretKey(com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRetrieveLegacySecretKeyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the specified key.
+     * 
+ */ + public void getKey(com.google.recaptchaenterprise.v1.GetKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetKeyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the specified key.
+     * 
+ */ + public void updateKey(com.google.recaptchaenterprise.v1.UpdateKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateKeyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified key.
+     * 
+ */ + public void deleteKey(com.google.recaptchaenterprise.v1.DeleteKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteKeyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise.
+     * Once a key is migrated, it can be used from either product. SiteVerify
+     * requests are billed as CreateAssessment calls. You must be
+     * authenticated as one of the current owners of the reCAPTCHA Key, and
+     * your user must have the reCAPTCHA Enterprise Admin IAM role in the
+     * destination project.
+     * 
+ */ + public void migrateKey(com.google.recaptchaenterprise.v1.MigrateKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getMigrateKeyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get some aggregated metrics for a Key. This data can be used to build
+     * dashboards.
+     * 
+ */ + public void getMetrics(com.google.recaptchaenterprise.v1.GetMetricsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMetricsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
+     * Enterprise actions can be executed.
+     * A project may have a maximum of 1000 policies.
+     * 
+ */ + public void createFirewallPolicy(com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFirewallPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the list of all firewall policies that belong to a project.
+     * 
+ */ + public void listFirewallPolicies(com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFirewallPoliciesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the specified firewall policy.
+     * 
+ */ + public void getFirewallPolicy(com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFirewallPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the specified firewall policy.
+     * 
+ */ + public void updateFirewallPolicy(com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFirewallPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified firewall policy.
+     * 
+ */ + public void deleteFirewallPolicy(com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFirewallPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List groups of related accounts.
+     * 
+ */ + public void listRelatedAccountGroups(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRelatedAccountGroupsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get memberships in a group of related accounts.
+     * 
+ */ + public void listRelatedAccountGroupMemberships(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRelatedAccountGroupMembershipsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Search group memberships related to a given account.
+     * 
+ */ + public void searchRelatedAccountGroupMemberships(com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchRelatedAccountGroupMembershipsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service RecaptchaEnterpriseService. + *
+   * Service to determine the likelihood an event is legitimate.
+   * 
+ */ + public static final class RecaptchaEnterpriseServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private RecaptchaEnterpriseServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RecaptchaEnterpriseServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecaptchaEnterpriseServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates an Assessment of the likelihood an event is legitimate.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.Assessment createAssessment(com.google.recaptchaenterprise.v1.CreateAssessmentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAssessmentMethod(), getCallOptions(), request); + } + + /** + *
+     * Annotates a previously created Assessment to provide additional information
+     * on whether the event turned out to be authentic or fraudulent.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse annotateAssessment(com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAnnotateAssessmentMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new reCAPTCHA Enterprise key.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.Key createKey(com.google.recaptchaenterprise.v1.CreateKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateKeyMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the list of all keys that belong to a project.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.ListKeysResponse listKeys(com.google.recaptchaenterprise.v1.ListKeysRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListKeysMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the secret key related to the specified public key.
+     * You must use the legacy secret key only in a 3rd party integration with
+     * legacy reCAPTCHA.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse retrieveLegacySecretKey(com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRetrieveLegacySecretKeyMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the specified key.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.Key getKey(com.google.recaptchaenterprise.v1.GetKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetKeyMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the specified key.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.Key updateKey(com.google.recaptchaenterprise.v1.UpdateKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateKeyMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified key.
+     * 
+ */ + public com.google.protobuf.Empty deleteKey(com.google.recaptchaenterprise.v1.DeleteKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteKeyMethod(), getCallOptions(), request); + } + + /** + *
+     * Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise.
+     * Once a key is migrated, it can be used from either product. SiteVerify
+     * requests are billed as CreateAssessment calls. You must be
+     * authenticated as one of the current owners of the reCAPTCHA Key, and
+     * your user must have the reCAPTCHA Enterprise Admin IAM role in the
+     * destination project.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.Key migrateKey(com.google.recaptchaenterprise.v1.MigrateKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getMigrateKeyMethod(), getCallOptions(), request); + } + + /** + *
+     * Get some aggregated metrics for a Key. This data can be used to build
+     * dashboards.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.Metrics getMetrics(com.google.recaptchaenterprise.v1.GetMetricsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMetricsMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
+     * Enterprise actions can be executed.
+     * A project may have a maximum of 1000 policies.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.FirewallPolicy createFirewallPolicy(com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFirewallPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the list of all firewall policies that belong to a project.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse listFirewallPolicies(com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFirewallPoliciesMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the specified firewall policy.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy(com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFirewallPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the specified firewall policy.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.FirewallPolicy updateFirewallPolicy(com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFirewallPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified firewall policy.
+     * 
+ */ + public com.google.protobuf.Empty deleteFirewallPolicy(com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFirewallPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * List groups of related accounts.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse listRelatedAccountGroups(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRelatedAccountGroupsMethod(), getCallOptions(), request); + } + + /** + *
+     * Get memberships in a group of related accounts.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse listRelatedAccountGroupMemberships(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRelatedAccountGroupMembershipsMethod(), getCallOptions(), request); + } + + /** + *
+     * Search group memberships related to a given account.
+     * 
+ */ + public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse searchRelatedAccountGroupMemberships(com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchRelatedAccountGroupMembershipsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service RecaptchaEnterpriseService. + *
+   * Service to determine the likelihood an event is legitimate.
+   * 
+ */ + public static final class RecaptchaEnterpriseServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private RecaptchaEnterpriseServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RecaptchaEnterpriseServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecaptchaEnterpriseServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Creates an Assessment of the likelihood an event is legitimate.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createAssessment( + com.google.recaptchaenterprise.v1.CreateAssessmentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAssessmentMethod(), getCallOptions()), request); + } + + /** + *
+     * Annotates a previously created Assessment to provide additional information
+     * on whether the event turned out to be authentic or fraudulent.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture annotateAssessment( + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAnnotateAssessmentMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new reCAPTCHA Enterprise key.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createKey( + com.google.recaptchaenterprise.v1.CreateKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateKeyMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the list of all keys that belong to a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listKeys( + com.google.recaptchaenterprise.v1.ListKeysRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListKeysMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the secret key related to the specified public key.
+     * You must use the legacy secret key only in a 3rd party integration with
+     * legacy reCAPTCHA.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture retrieveLegacySecretKey( + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRetrieveLegacySecretKeyMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the specified key.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getKey( + com.google.recaptchaenterprise.v1.GetKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetKeyMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the specified key.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateKey( + com.google.recaptchaenterprise.v1.UpdateKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateKeyMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified key.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteKey( + com.google.recaptchaenterprise.v1.DeleteKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteKeyMethod(), getCallOptions()), request); + } + + /** + *
+     * Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise.
+     * Once a key is migrated, it can be used from either product. SiteVerify
+     * requests are billed as CreateAssessment calls. You must be
+     * authenticated as one of the current owners of the reCAPTCHA Key, and
+     * your user must have the reCAPTCHA Enterprise Admin IAM role in the
+     * destination project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture migrateKey( + com.google.recaptchaenterprise.v1.MigrateKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getMigrateKeyMethod(), getCallOptions()), request); + } + + /** + *
+     * Get some aggregated metrics for a Key. This data can be used to build
+     * dashboards.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getMetrics( + com.google.recaptchaenterprise.v1.GetMetricsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMetricsMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
+     * Enterprise actions can be executed.
+     * A project may have a maximum of 1000 policies.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createFirewallPolicy( + com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFirewallPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the list of all firewall policies that belong to a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listFirewallPolicies( + com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFirewallPoliciesMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the specified firewall policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getFirewallPolicy( + com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFirewallPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the specified firewall policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateFirewallPolicy( + com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFirewallPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified firewall policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteFirewallPolicy( + com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFirewallPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * List groups of related accounts.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listRelatedAccountGroups( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRelatedAccountGroupsMethod(), getCallOptions()), request); + } + + /** + *
+     * Get memberships in a group of related accounts.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listRelatedAccountGroupMemberships( + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRelatedAccountGroupMembershipsMethod(), getCallOptions()), request); + } + + /** + *
+     * Search group memberships related to a given account.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture searchRelatedAccountGroupMemberships( + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchRelatedAccountGroupMembershipsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_ASSESSMENT = 0; + private static final int METHODID_ANNOTATE_ASSESSMENT = 1; + private static final int METHODID_CREATE_KEY = 2; + private static final int METHODID_LIST_KEYS = 3; + private static final int METHODID_RETRIEVE_LEGACY_SECRET_KEY = 4; + private static final int METHODID_GET_KEY = 5; + private static final int METHODID_UPDATE_KEY = 6; + private static final int METHODID_DELETE_KEY = 7; + private static final int METHODID_MIGRATE_KEY = 8; + private static final int METHODID_GET_METRICS = 9; + private static final int METHODID_CREATE_FIREWALL_POLICY = 10; + private static final int METHODID_LIST_FIREWALL_POLICIES = 11; + private static final int METHODID_GET_FIREWALL_POLICY = 12; + private static final int METHODID_UPDATE_FIREWALL_POLICY = 13; + private static final int METHODID_DELETE_FIREWALL_POLICY = 14; + private static final int METHODID_LIST_RELATED_ACCOUNT_GROUPS = 15; + private static final int METHODID_LIST_RELATED_ACCOUNT_GROUP_MEMBERSHIPS = 16; + private static final int METHODID_SEARCH_RELATED_ACCOUNT_GROUP_MEMBERSHIPS = 17; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_ASSESSMENT: + serviceImpl.createAssessment((com.google.recaptchaenterprise.v1.CreateAssessmentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ANNOTATE_ASSESSMENT: + serviceImpl.annotateAssessment((com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_KEY: + serviceImpl.createKey((com.google.recaptchaenterprise.v1.CreateKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_KEYS: + serviceImpl.listKeys((com.google.recaptchaenterprise.v1.ListKeysRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RETRIEVE_LEGACY_SECRET_KEY: + serviceImpl.retrieveLegacySecretKey((com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_KEY: + serviceImpl.getKey((com.google.recaptchaenterprise.v1.GetKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_KEY: + serviceImpl.updateKey((com.google.recaptchaenterprise.v1.UpdateKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_KEY: + serviceImpl.deleteKey((com.google.recaptchaenterprise.v1.DeleteKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_MIGRATE_KEY: + serviceImpl.migrateKey((com.google.recaptchaenterprise.v1.MigrateKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_METRICS: + serviceImpl.getMetrics((com.google.recaptchaenterprise.v1.GetMetricsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_FIREWALL_POLICY: + serviceImpl.createFirewallPolicy((com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FIREWALL_POLICIES: + serviceImpl.listFirewallPolicies((com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_FIREWALL_POLICY: + serviceImpl.getFirewallPolicy((com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FIREWALL_POLICY: + serviceImpl.updateFirewallPolicy((com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FIREWALL_POLICY: + serviceImpl.deleteFirewallPolicy((com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_RELATED_ACCOUNT_GROUPS: + serviceImpl.listRelatedAccountGroups((com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_RELATED_ACCOUNT_GROUP_MEMBERSHIPS: + serviceImpl.listRelatedAccountGroupMemberships((com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEARCH_RELATED_ACCOUNT_GROUP_MEMBERSHIPS: + serviceImpl.searchRelatedAccountGroupMemberships((com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateAssessmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.CreateAssessmentRequest, + com.google.recaptchaenterprise.v1.Assessment>( + service, METHODID_CREATE_ASSESSMENT))) + .addMethod( + getAnnotateAssessmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest, + com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse>( + service, METHODID_ANNOTATE_ASSESSMENT))) + .addMethod( + getCreateKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.CreateKeyRequest, + com.google.recaptchaenterprise.v1.Key>( + service, METHODID_CREATE_KEY))) + .addMethod( + getListKeysMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.ListKeysRequest, + com.google.recaptchaenterprise.v1.ListKeysResponse>( + service, METHODID_LIST_KEYS))) + .addMethod( + getRetrieveLegacySecretKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest, + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse>( + service, METHODID_RETRIEVE_LEGACY_SECRET_KEY))) + .addMethod( + getGetKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.GetKeyRequest, + com.google.recaptchaenterprise.v1.Key>( + service, METHODID_GET_KEY))) + .addMethod( + getUpdateKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.UpdateKeyRequest, + com.google.recaptchaenterprise.v1.Key>( + service, METHODID_UPDATE_KEY))) + .addMethod( + getDeleteKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.DeleteKeyRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_KEY))) + .addMethod( + getMigrateKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.MigrateKeyRequest, + com.google.recaptchaenterprise.v1.Key>( + service, METHODID_MIGRATE_KEY))) + .addMethod( + getGetMetricsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.GetMetricsRequest, + com.google.recaptchaenterprise.v1.Metrics>( + service, METHODID_GET_METRICS))) + .addMethod( + getCreateFirewallPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest, + com.google.recaptchaenterprise.v1.FirewallPolicy>( + service, METHODID_CREATE_FIREWALL_POLICY))) + .addMethod( + getListFirewallPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest, + com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse>( + service, METHODID_LIST_FIREWALL_POLICIES))) + .addMethod( + getGetFirewallPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest, + com.google.recaptchaenterprise.v1.FirewallPolicy>( + service, METHODID_GET_FIREWALL_POLICY))) + .addMethod( + getUpdateFirewallPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest, + com.google.recaptchaenterprise.v1.FirewallPolicy>( + service, METHODID_UPDATE_FIREWALL_POLICY))) + .addMethod( + getDeleteFirewallPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_FIREWALL_POLICY))) + .addMethod( + getListRelatedAccountGroupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest, + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse>( + service, METHODID_LIST_RELATED_ACCOUNT_GROUPS))) + .addMethod( + getListRelatedAccountGroupMembershipsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest, + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse>( + service, METHODID_LIST_RELATED_ACCOUNT_GROUP_MEMBERSHIPS))) + .addMethod( + getSearchRelatedAccountGroupMembershipsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest, + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse>( + service, METHODID_SEARCH_RELATED_ACCOUNT_GROUP_MEMBERSHIPS))) + .build(); + } + + private static abstract class RecaptchaEnterpriseServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + RecaptchaEnterpriseServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("RecaptchaEnterpriseService"); + } + } + + private static final class RecaptchaEnterpriseServiceFileDescriptorSupplier + extends RecaptchaEnterpriseServiceBaseDescriptorSupplier { + RecaptchaEnterpriseServiceFileDescriptorSupplier() {} + } + + private static final class RecaptchaEnterpriseServiceMethodDescriptorSupplier + extends RecaptchaEnterpriseServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + RecaptchaEnterpriseServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (RecaptchaEnterpriseServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new RecaptchaEnterpriseServiceFileDescriptorSupplier()) + .addMethod(getCreateAssessmentMethod()) + .addMethod(getAnnotateAssessmentMethod()) + .addMethod(getCreateKeyMethod()) + .addMethod(getListKeysMethod()) + .addMethod(getRetrieveLegacySecretKeyMethod()) + .addMethod(getGetKeyMethod()) + .addMethod(getUpdateKeyMethod()) + .addMethod(getDeleteKeyMethod()) + .addMethod(getMigrateKeyMethod()) + .addMethod(getGetMetricsMethod()) + .addMethod(getCreateFirewallPolicyMethod()) + .addMethod(getListFirewallPoliciesMethod()) + .addMethod(getGetFirewallPolicyMethod()) + .addMethod(getUpdateFirewallPolicyMethod()) + .addMethod(getDeleteFirewallPolicyMethod()) + .addMethod(getListRelatedAccountGroupsMethod()) + .addMethod(getListRelatedAccountGroupMembershipsMethod()) + .addMethod(getSearchRelatedAccountGroupMembershipsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessment.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessment.java similarity index 61% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessment.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessment.java index 24cd7b5b4ef7..97f87a0ce18a 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessment.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessment.java @@ -1,81 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * Account defender risk assessment.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment} */ -public final class AccountDefenderAssessment extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AccountDefenderAssessment extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment) AccountDefenderAssessmentOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AccountDefenderAssessment.newBuilder() to construct. private AccountDefenderAssessment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AccountDefenderAssessment() { labels_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AccountDefenderAssessment(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.AccountDefenderAssessment.class, - com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder.class); + com.google.recaptchaenterprise.v1.AccountDefenderAssessment.class, com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder.class); } /** - * - * *
    * Labels returned by account defender for this request.
    * 
* - * Protobuf enum {@code - * google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel} + * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel} */ - public enum AccountDefenderLabel implements com.google.protobuf.ProtocolMessageEnum { + public enum AccountDefenderLabel + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default unspecified type.
      * 
@@ -84,8 +61,6 @@ public enum AccountDefenderLabel implements com.google.protobuf.ProtocolMessageE */ ACCOUNT_DEFENDER_LABEL_UNSPECIFIED(0), /** - * - * *
      * The request matches a known good profile for the user.
      * 
@@ -94,8 +69,6 @@ public enum AccountDefenderLabel implements com.google.protobuf.ProtocolMessageE */ PROFILE_MATCH(1), /** - * - * *
      * The request is potentially a suspicious login event and must be further
      * verified either through multi-factor authentication or another system.
@@ -105,8 +78,6 @@ public enum AccountDefenderLabel implements com.google.protobuf.ProtocolMessageE
      */
     SUSPICIOUS_LOGIN_ACTIVITY(2),
     /**
-     *
-     *
      * 
      * The request matched a profile that previously had suspicious account
      * creation behavior. This can mean that this is a fake account.
@@ -116,8 +87,6 @@ public enum AccountDefenderLabel implements com.google.protobuf.ProtocolMessageE
      */
     SUSPICIOUS_ACCOUNT_CREATION(3),
     /**
-     *
-     *
      * 
      * The account in the request has a high number of related accounts. It does
      * not necessarily imply that the account is bad but can require further
@@ -131,8 +100,6 @@ public enum AccountDefenderLabel implements com.google.protobuf.ProtocolMessageE
     ;
 
     /**
-     *
-     *
      * 
      * Default unspecified type.
      * 
@@ -141,8 +108,6 @@ public enum AccountDefenderLabel implements com.google.protobuf.ProtocolMessageE */ public static final int ACCOUNT_DEFENDER_LABEL_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The request matches a known good profile for the user.
      * 
@@ -151,8 +116,6 @@ public enum AccountDefenderLabel implements com.google.protobuf.ProtocolMessageE */ public static final int PROFILE_MATCH_VALUE = 1; /** - * - * *
      * The request is potentially a suspicious login event and must be further
      * verified either through multi-factor authentication or another system.
@@ -162,8 +125,6 @@ public enum AccountDefenderLabel implements com.google.protobuf.ProtocolMessageE
      */
     public static final int SUSPICIOUS_LOGIN_ACTIVITY_VALUE = 2;
     /**
-     *
-     *
      * 
      * The request matched a profile that previously had suspicious account
      * creation behavior. This can mean that this is a fake account.
@@ -173,8 +134,6 @@ public enum AccountDefenderLabel implements com.google.protobuf.ProtocolMessageE
      */
     public static final int SUSPICIOUS_ACCOUNT_CREATION_VALUE = 3;
     /**
-     *
-     *
      * 
      * The account in the request has a high number of related accounts. It does
      * not necessarily imply that the account is bad but can require further
@@ -185,6 +144,7 @@ public enum AccountDefenderLabel implements com.google.protobuf.ProtocolMessageE
      */
     public static final int RELATED_ACCOUNTS_NUMBER_HIGH_VALUE = 4;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -209,18 +169,12 @@ public static AccountDefenderLabel valueOf(int value) {
      */
     public static AccountDefenderLabel forNumber(int value) {
       switch (value) {
-        case 0:
-          return ACCOUNT_DEFENDER_LABEL_UNSPECIFIED;
-        case 1:
-          return PROFILE_MATCH;
-        case 2:
-          return SUSPICIOUS_LOGIN_ACTIVITY;
-        case 3:
-          return SUSPICIOUS_ACCOUNT_CREATION;
-        case 4:
-          return RELATED_ACCOUNTS_NUMBER_HIGH;
-        default:
-          return null;
+        case 0: return ACCOUNT_DEFENDER_LABEL_UNSPECIFIED;
+        case 1: return PROFILE_MATCH;
+        case 2: return SUSPICIOUS_LOGIN_ACTIVITY;
+        case 3: return SUSPICIOUS_ACCOUNT_CREATION;
+        case 4: return RELATED_ACCOUNTS_NUMBER_HIGH;
+        default: return null;
       }
     }
 
@@ -228,31 +182,29 @@ public static AccountDefenderLabel forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        AccountDefenderLabel> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public AccountDefenderLabel findValueByNumber(int number) {
+              return AccountDefenderLabel.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public AccountDefenderLabel findValueByNumber(int number) {
-                return AccountDefenderLabel.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.recaptchaenterprise.v1.AccountDefenderAssessment.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.recaptchaenterprise.v1.AccountDefenderAssessment.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final AccountDefenderLabel[] VALUES = values();
@@ -260,7 +212,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static AccountDefenderLabel valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -278,62 +231,36 @@ private AccountDefenderLabel(int value) {
   }
 
   public static final int LABELS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List labels_;
-
   private static final com.google.protobuf.Internal.ListAdapter.Converter<
-          java.lang.Integer,
-          com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel>
-      labels_converter_ =
+      java.lang.Integer, com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel> labels_converter_ =
           new com.google.protobuf.Internal.ListAdapter.Converter<
-              java.lang.Integer,
-              com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel>() {
-            public com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel
-                convert(java.lang.Integer from) {
-              com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel
-                  result =
-                      com.google.recaptchaenterprise.v1.AccountDefenderAssessment
-                          .AccountDefenderLabel.forNumber(from);
-              return result == null
-                  ? com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel
-                      .UNRECOGNIZED
-                  : result;
+              java.lang.Integer, com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel>() {
+            public com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel convert(java.lang.Integer from) {
+              com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel result = com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel.forNumber(from);
+              return result == null ? com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel.UNRECOGNIZED : result;
             }
           };
   /**
-   *
-   *
    * 
    * Output only. Labels for this request.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the labels. */ @java.lang.Override - public java.util.List< - com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel> - getLabelsList() { + public java.util.List getLabelsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, - com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel>( - labels_, labels_converter_); + java.lang.Integer, com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel>(labels_, labels_converter_); } /** - * - * *
    * Output only. Labels for this request.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of labels. */ @java.lang.Override @@ -341,52 +268,37 @@ public int getLabelsCount() { return labels_.size(); } /** - * - * *
    * Output only. Labels for this request.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The labels at the given index. */ @java.lang.Override - public com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel getLabels( - int index) { + public com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel getLabels(int index) { return labels_converter_.convert(labels_.get(index)); } /** - * - * *
    * Output only. Labels for this request.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the enum numeric values on the wire for labels. */ @java.lang.Override - public java.util.List getLabelsValueList() { + public java.util.List + getLabelsValueList() { return labels_; } /** - * - * *
    * Output only. Labels for this request.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The enum numeric value on the wire of labels at the given index. */ @@ -394,11 +306,9 @@ public java.util.List getLabelsValueList() { public int getLabelsValue(int index) { return labels_.get(index); } - private int labelsMemoizedSerializedSize; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -410,7 +320,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (getLabelsList().size() > 0) { output.writeUInt32NoTag(10); @@ -431,14 +342,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < labels_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(labels_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(labels_.get(i)); } size += dataSize; - if (!getLabelsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - labelsMemoizedSerializedSize = dataSize; + if (!getLabelsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }labelsMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -448,13 +359,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.AccountDefenderAssessment)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.AccountDefenderAssessment other = - (com.google.recaptchaenterprise.v1.AccountDefenderAssessment) obj; + com.google.recaptchaenterprise.v1.AccountDefenderAssessment other = (com.google.recaptchaenterprise.v1.AccountDefenderAssessment) obj; if (!labels_.equals(other.labels_)) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -478,136 +388,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.AccountDefenderAssessment prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.AccountDefenderAssessment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Account defender risk assessment.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment) com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.AccountDefenderAssessment.class, - com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder.class); + com.google.recaptchaenterprise.v1.AccountDefenderAssessment.class, com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.AccountDefenderAssessment.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -618,9 +523,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor; } @java.lang.Override @@ -639,18 +544,14 @@ public com.google.recaptchaenterprise.v1.AccountDefenderAssessment build() { @java.lang.Override public com.google.recaptchaenterprise.v1.AccountDefenderAssessment buildPartial() { - com.google.recaptchaenterprise.v1.AccountDefenderAssessment result = - new com.google.recaptchaenterprise.v1.AccountDefenderAssessment(this); + com.google.recaptchaenterprise.v1.AccountDefenderAssessment result = new com.google.recaptchaenterprise.v1.AccountDefenderAssessment(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.recaptchaenterprise.v1.AccountDefenderAssessment result) { + private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.AccountDefenderAssessment result) { if (((bitField0_ & 0x00000001) != 0)) { labels_ = java.util.Collections.unmodifiableList(labels_); bitField0_ = (bitField0_ & ~0x00000001); @@ -666,39 +567,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.AccountDefenderAsse public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.AccountDefenderAssessment) { - return mergeFrom((com.google.recaptchaenterprise.v1.AccountDefenderAssessment) other); + return mergeFrom((com.google.recaptchaenterprise.v1.AccountDefenderAssessment)other); } else { super.mergeFrom(other); return this; @@ -706,8 +606,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.AccountDefenderAssessment other) { - if (other == com.google.recaptchaenterprise.v1.AccountDefenderAssessment.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.AccountDefenderAssessment.getDefaultInstance()) return this; if (!other.labels_.isEmpty()) { if (labels_.isEmpty()) { labels_ = other.labels_; @@ -744,32 +643,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { + case 8: { + int tmpRaw = input.readEnum(); + ensureLabelsIsMutable(); + labels_.add(tmpRaw); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureLabelsIsMutable(); labels_.add(tmpRaw); - break; - } // case 8 - case 10: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureLabelsIsMutable(); - labels_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + } + input.popLimit(oldLimit); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -779,11 +675,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List labels_ = java.util.Collections.emptyList(); - + private java.util.List labels_ = + java.util.Collections.emptyList(); private void ensureLabelsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { labels_ = new java.util.ArrayList(labels_); @@ -791,78 +686,52 @@ private void ensureLabelsIsMutable() { } } /** - * - * *
      * Output only. Labels for this request.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the labels. */ - public java.util.List< - com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel> - getLabelsList() { + public java.util.List getLabelsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, - com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel>( - labels_, labels_converter_); + java.lang.Integer, com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel>(labels_, labels_converter_); } /** - * - * *
      * Output only. Labels for this request.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of labels. */ public int getLabelsCount() { return labels_.size(); } /** - * - * *
      * Output only. Labels for this request.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The labels at the given index. */ - public com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel - getLabels(int index) { + public com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel getLabels(int index) { return labels_converter_.convert(labels_.get(index)); } /** - * - * *
      * Output only. Labels for this request.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The labels to set. * @return This builder for chaining. */ public Builder setLabels( - int index, - com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel value) { + int index, com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel value) { if (value == null) { throw new NullPointerException(); } @@ -872,21 +741,15 @@ public Builder setLabels( return this; } /** - * - * *
      * Output only. Labels for this request.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The labels to add. * @return This builder for chaining. */ - public Builder addLabels( - com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel value) { + public Builder addLabels(com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel value) { if (value == null) { throw new NullPointerException(); } @@ -896,44 +759,29 @@ public Builder addLabels( return this; } /** - * - * *
      * Output only. Labels for this request.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The labels to add. * @return This builder for chaining. */ public Builder addAllLabels( - java.lang.Iterable< - ? extends - com.google.recaptchaenterprise.v1.AccountDefenderAssessment - .AccountDefenderLabel> - values) { + java.lang.Iterable values) { ensureLabelsIsMutable(); - for (com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel value : - values) { + for (com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel value : values) { labels_.add(value.getNumber()); } onChanged(); return this; } /** - * - * *
      * Output only. Labels for this request.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearLabels() { @@ -943,32 +791,23 @@ public Builder clearLabels() { return this; } /** - * - * *
      * Output only. Labels for this request.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the enum numeric values on the wire for labels. */ - public java.util.List getLabelsValueList() { + public java.util.List + getLabelsValueList() { return java.util.Collections.unmodifiableList(labels_); } /** - * - * *
      * Output only. Labels for this request.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The enum numeric value on the wire of labels at the given index. */ @@ -976,37 +815,28 @@ public int getLabelsValue(int index) { return labels_.get(index); } /** - * - * *
      * Output only. Labels for this request.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The enum numeric value on the wire for labels to set. * @return This builder for chaining. */ - public Builder setLabelsValue(int index, int value) { + public Builder setLabelsValue( + int index, int value) { ensureLabelsIsMutable(); labels_.set(index, value); onChanged(); return this; } /** - * - * *
      * Output only. Labels for this request.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for labels to add. * @return This builder for chaining. */ @@ -1017,20 +847,16 @@ public Builder addLabelsValue(int value) { return this; } /** - * - * *
      * Output only. Labels for this request.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The enum numeric values on the wire for labels to add. * @return This builder for chaining. */ - public Builder addAllLabelsValue(java.lang.Iterable values) { + public Builder addAllLabelsValue( + java.lang.Iterable values) { ensureLabelsIsMutable(); for (int value : values) { labels_.add(value); @@ -1038,9 +864,9 @@ public Builder addAllLabelsValue(java.lang.Iterable values) { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1050,12 +876,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment) private static final com.google.recaptchaenterprise.v1.AccountDefenderAssessment DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.AccountDefenderAssessment(); } @@ -1064,27 +890,27 @@ public static com.google.recaptchaenterprise.v1.AccountDefenderAssessment getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccountDefenderAssessment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccountDefenderAssessment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1099,4 +925,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.recaptchaenterprise.v1.AccountDefenderAssessment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessmentOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessmentOrBuilder.java new file mode 100644 index 000000000000..40a335486f96 --- /dev/null +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountDefenderAssessmentOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface AccountDefenderAssessmentOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. Labels for this request.
+   * 
+ * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return A list containing the labels. + */ + java.util.List getLabelsList(); + /** + *
+   * Output only. Labels for this request.
+   * 
+ * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The count of labels. + */ + int getLabelsCount(); + /** + *
+   * Output only. Labels for this request.
+   * 
+ * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param index The index of the element to return. + * @return The labels at the given index. + */ + com.google.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel getLabels(int index); + /** + *
+   * Output only. Labels for this request.
+   * 
+ * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return A list containing the enum numeric values on the wire for labels. + */ + java.util.List + getLabelsValueList(); + /** + *
+   * Output only. Labels for this request.
+   * 
+ * + * repeated .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of labels at the given index. + */ + int getLabelsValue(int index); +} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfo.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfo.java similarity index 65% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfo.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfo.java index e1e4be757a80..b3e3c0f99fba 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfo.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfo.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * Information about account verification, used for identity verification.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.AccountVerificationInfo} */ -public final class AccountVerificationInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AccountVerificationInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.AccountVerificationInfo) AccountVerificationInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AccountVerificationInfo.newBuilder() to construct. private AccountVerificationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AccountVerificationInfo() { endpoints_ = java.util.Collections.emptyList(); languageCode_ = ""; @@ -46,28 +28,25 @@ private AccountVerificationInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AccountVerificationInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.AccountVerificationInfo.class, - com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder.class); + com.google.recaptchaenterprise.v1.AccountVerificationInfo.class, com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder.class); } /** - * - * *
    * Result of the account verification as contained in the verdict token issued
    * at the end of the verification flow.
@@ -75,10 +54,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result}
    */
-  public enum Result implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Result
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * No information about the latest account verification.
      * 
@@ -87,8 +65,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum { */ RESULT_UNSPECIFIED(0), /** - * - * *
      * The user was successfully verified. This means the account verification
      * challenge was successfully completed.
@@ -98,8 +74,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum {
      */
     SUCCESS_USER_VERIFIED(1),
     /**
-     *
-     *
      * 
      * The user failed the verification challenge.
      * 
@@ -108,8 +82,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum { */ ERROR_USER_NOT_VERIFIED(2), /** - * - * *
      * The site is not properly onboarded to use the account verification
      * feature.
@@ -119,8 +91,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum {
      */
     ERROR_SITE_ONBOARDING_INCOMPLETE(3),
     /**
-     *
-     *
      * 
      * The recipient is not allowed for account verification. This can occur
      * during integration but should not occur in production.
@@ -130,8 +100,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum {
      */
     ERROR_RECIPIENT_NOT_ALLOWED(4),
     /**
-     *
-     *
      * 
      * The recipient has already been sent too many verification codes in a
      * short amount of time.
@@ -141,8 +109,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum {
      */
     ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED(5),
     /**
-     *
-     *
      * 
      * The verification flow could not be completed due to a critical internal
      * error.
@@ -152,8 +118,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum {
      */
     ERROR_CRITICAL_INTERNAL(6),
     /**
-     *
-     *
      * 
      * The client has exceeded their two factor request quota for this period of
      * time.
@@ -163,8 +127,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum {
      */
     ERROR_CUSTOMER_QUOTA_EXHAUSTED(7),
     /**
-     *
-     *
      * 
      * The request cannot be processed at the time because of an incident. This
      * bypass can be restricted to a problematic destination email domain, a
@@ -175,8 +137,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum {
      */
     ERROR_VERIFICATION_BYPASSED(8),
     /**
-     *
-     *
      * 
      * The request parameters do not match with the token provided and cannot be
      * processed.
@@ -189,8 +149,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * No information about the latest account verification.
      * 
@@ -199,8 +157,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RESULT_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The user was successfully verified. This means the account verification
      * challenge was successfully completed.
@@ -210,8 +166,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SUCCESS_USER_VERIFIED_VALUE = 1;
     /**
-     *
-     *
      * 
      * The user failed the verification challenge.
      * 
@@ -220,8 +174,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_USER_NOT_VERIFIED_VALUE = 2; /** - * - * *
      * The site is not properly onboarded to use the account verification
      * feature.
@@ -231,8 +183,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ERROR_SITE_ONBOARDING_INCOMPLETE_VALUE = 3;
     /**
-     *
-     *
      * 
      * The recipient is not allowed for account verification. This can occur
      * during integration but should not occur in production.
@@ -242,8 +192,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ERROR_RECIPIENT_NOT_ALLOWED_VALUE = 4;
     /**
-     *
-     *
      * 
      * The recipient has already been sent too many verification codes in a
      * short amount of time.
@@ -253,8 +201,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED_VALUE = 5;
     /**
-     *
-     *
      * 
      * The verification flow could not be completed due to a critical internal
      * error.
@@ -264,8 +210,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ERROR_CRITICAL_INTERNAL_VALUE = 6;
     /**
-     *
-     *
      * 
      * The client has exceeded their two factor request quota for this period of
      * time.
@@ -275,8 +219,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ERROR_CUSTOMER_QUOTA_EXHAUSTED_VALUE = 7;
     /**
-     *
-     *
      * 
      * The request cannot be processed at the time because of an incident. This
      * bypass can be restricted to a problematic destination email domain, a
@@ -287,8 +229,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ERROR_VERIFICATION_BYPASSED_VALUE = 8;
     /**
-     *
-     *
      * 
      * The request parameters do not match with the token provided and cannot be
      * processed.
@@ -298,6 +238,7 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ERROR_VERDICT_MISMATCH_VALUE = 9;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -322,65 +263,56 @@ public static Result valueOf(int value) {
      */
     public static Result forNumber(int value) {
       switch (value) {
-        case 0:
-          return RESULT_UNSPECIFIED;
-        case 1:
-          return SUCCESS_USER_VERIFIED;
-        case 2:
-          return ERROR_USER_NOT_VERIFIED;
-        case 3:
-          return ERROR_SITE_ONBOARDING_INCOMPLETE;
-        case 4:
-          return ERROR_RECIPIENT_NOT_ALLOWED;
-        case 5:
-          return ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED;
-        case 6:
-          return ERROR_CRITICAL_INTERNAL;
-        case 7:
-          return ERROR_CUSTOMER_QUOTA_EXHAUSTED;
-        case 8:
-          return ERROR_VERIFICATION_BYPASSED;
-        case 9:
-          return ERROR_VERDICT_MISMATCH;
-        default:
-          return null;
+        case 0: return RESULT_UNSPECIFIED;
+        case 1: return SUCCESS_USER_VERIFIED;
+        case 2: return ERROR_USER_NOT_VERIFIED;
+        case 3: return ERROR_SITE_ONBOARDING_INCOMPLETE;
+        case 4: return ERROR_RECIPIENT_NOT_ALLOWED;
+        case 5: return ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED;
+        case 6: return ERROR_CRITICAL_INTERNAL;
+        case 7: return ERROR_CUSTOMER_QUOTA_EXHAUSTED;
+        case 8: return ERROR_VERIFICATION_BYPASSED;
+        case 9: return ERROR_VERDICT_MISMATCH;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        Result> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Result findValueByNumber(int number) {
+              return Result.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Result findValueByNumber(int number) {
-            return Result.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Result[] VALUES = values();
 
-    public static Result valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Result valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -398,82 +330,59 @@ private Result(int value) {
   }
 
   public static final int ENDPOINTS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List endpoints_;
   /**
-   *
-   *
    * 
    * Optional. Endpoints that can be used for identity verification.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getEndpointsList() { + public java.util.List getEndpointsList() { return endpoints_; } /** - * - * *
    * Optional. Endpoints that can be used for identity verification.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - ? extends com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder> + public java.util.List getEndpointsOrBuilderList() { return endpoints_; } /** - * - * *
    * Optional. Endpoints that can be used for identity verification.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getEndpointsCount() { return endpoints_.size(); } /** - * - * *
    * Optional. Endpoints that can be used for identity verification.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.recaptchaenterprise.v1.EndpointVerificationInfo getEndpoints(int index) { return endpoints_.get(index); } /** - * - * *
    * Optional. Endpoints that can be used for identity verification.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder getEndpointsOrBuilder( @@ -482,19 +391,15 @@ public com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder getEn } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** - * - * *
    * Optional. Language code preference for the verification message, set as a
    * IETF BCP 47 language code.
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ @java.lang.Override @@ -503,30 +408,30 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Optional. Language code preference for the verification message, set as a
    * IETF BCP 47 language code.
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -537,98 +442,75 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int LATEST_VERIFICATION_RESULT_FIELD_NUMBER = 7; private int latestVerificationResult_ = 0; /** - * - * *
    * Output only. Result of the latest account verification challenge.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for latestVerificationResult. */ - @java.lang.Override - public int getLatestVerificationResultValue() { + @java.lang.Override public int getLatestVerificationResultValue() { return latestVerificationResult_; } /** - * - * *
    * Output only. Result of the latest account verification challenge.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The latestVerificationResult. */ - @java.lang.Override - public com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result - getLatestVerificationResult() { - com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result result = - com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result.forNumber( - latestVerificationResult_); - return result == null - ? com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result.UNRECOGNIZED - : result; + @java.lang.Override public com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result getLatestVerificationResult() { + com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result result = com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result.forNumber(latestVerificationResult_); + return result == null ? com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result.UNRECOGNIZED : result; } public static final int USERNAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** - * - * *
    * Username of the account that is being verified. Deprecated. Customers
    * should now provide the hashed account ID field in Event.
    * 
* * string username = 2 [deprecated = true]; - * * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=553 * @return The username. */ @java.lang.Override - @java.lang.Deprecated - public java.lang.String getUsername() { + @java.lang.Deprecated public java.lang.String getUsername() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
    * Username of the account that is being verified. Deprecated. Customers
    * should now provide the hashed account ID field in Event.
    * 
* * string username = 2 [deprecated = true]; - * * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=553 * @return The bytes for username. */ @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getUsernameBytes() { + @java.lang.Deprecated public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -637,7 +519,6 @@ public com.google.protobuf.ByteString getUsernameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -649,7 +530,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < endpoints_.size(); i++) { output.writeMessage(1, endpoints_.get(i)); } @@ -659,9 +541,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_); } - if (latestVerificationResult_ - != com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result.RESULT_UNSPECIFIED - .getNumber()) { + if (latestVerificationResult_ != com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result.RESULT_UNSPECIFIED.getNumber()) { output.writeEnum(7, latestVerificationResult_); } getUnknownFields().writeTo(output); @@ -674,7 +554,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < endpoints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, endpoints_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, endpoints_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); @@ -682,10 +563,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); } - if (latestVerificationResult_ - != com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result.RESULT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, latestVerificationResult_); + if (latestVerificationResult_ != com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result.RESULT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, latestVerificationResult_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -695,18 +575,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.AccountVerificationInfo)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.AccountVerificationInfo other = - (com.google.recaptchaenterprise.v1.AccountVerificationInfo) obj; + com.google.recaptchaenterprise.v1.AccountVerificationInfo other = (com.google.recaptchaenterprise.v1.AccountVerificationInfo) obj; - if (!getEndpointsList().equals(other.getEndpointsList())) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getEndpointsList() + .equals(other.getEndpointsList())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (latestVerificationResult_ != other.latestVerificationResult_) return false; - if (!getUsername().equals(other.getUsername())) return false; + if (!getUsername() + .equals(other.getUsername())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -734,136 +616,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.AccountVerificationInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.AccountVerificationInfo prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.AccountVerificationInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information about account verification, used for identity verification.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.AccountVerificationInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.AccountVerificationInfo) com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.AccountVerificationInfo.class, - com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder.class); + com.google.recaptchaenterprise.v1.AccountVerificationInfo.class, com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.AccountVerificationInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -882,9 +759,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_descriptor; } @java.lang.Override @@ -903,18 +780,14 @@ public com.google.recaptchaenterprise.v1.AccountVerificationInfo build() { @java.lang.Override public com.google.recaptchaenterprise.v1.AccountVerificationInfo buildPartial() { - com.google.recaptchaenterprise.v1.AccountVerificationInfo result = - new com.google.recaptchaenterprise.v1.AccountVerificationInfo(this); + com.google.recaptchaenterprise.v1.AccountVerificationInfo result = new com.google.recaptchaenterprise.v1.AccountVerificationInfo(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.recaptchaenterprise.v1.AccountVerificationInfo result) { + private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.AccountVerificationInfo result) { if (endpointsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { endpoints_ = java.util.Collections.unmodifiableList(endpoints_); @@ -943,39 +816,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.AccountVerification public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.AccountVerificationInfo) { - return mergeFrom((com.google.recaptchaenterprise.v1.AccountVerificationInfo) other); + return mergeFrom((com.google.recaptchaenterprise.v1.AccountVerificationInfo)other); } else { super.mergeFrom(other); return this; @@ -983,8 +855,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.AccountVerificationInfo other) { - if (other == com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDefaultInstance()) return this; if (endpointsBuilder_ == null) { if (!other.endpoints_.isEmpty()) { if (endpoints_.isEmpty()) { @@ -1003,10 +874,9 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.AccountVerificationIn endpointsBuilder_ = null; endpoints_ = other.endpoints_; bitField0_ = (bitField0_ & ~0x00000001); - endpointsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEndpointsFieldBuilder() - : null; + endpointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEndpointsFieldBuilder() : null; } else { endpointsBuilder_.addAllMessages(other.endpoints_); } @@ -1051,45 +921,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.recaptchaenterprise.v1.EndpointVerificationInfo m = - input.readMessage( - com.google.recaptchaenterprise.v1.EndpointVerificationInfo.parser(), - extensionRegistry); - if (endpointsBuilder_ == null) { - ensureEndpointsIsMutable(); - endpoints_.add(m); - } else { - endpointsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 18 - case 26: - { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 56: - { - latestVerificationResult_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 56 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.recaptchaenterprise.v1.EndpointVerificationInfo m = + input.readMessage( + com.google.recaptchaenterprise.v1.EndpointVerificationInfo.parser(), + extensionRegistry); + if (endpointsBuilder_ == null) { + ensureEndpointsIsMutable(); + endpoints_.add(m); + } else { + endpointsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 56: { + latestVerificationResult_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 56 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1099,40 +964,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List endpoints_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureEndpointsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - endpoints_ = - new java.util.ArrayList( - endpoints_); + endpoints_ = new java.util.ArrayList(endpoints_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.EndpointVerificationInfo, - com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder, - com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder> - endpointsBuilder_; + com.google.recaptchaenterprise.v1.EndpointVerificationInfo, com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder, com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder> endpointsBuilder_; /** - * - * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getEndpointsList() { + public java.util.List getEndpointsList() { if (endpointsBuilder_ == null) { return java.util.Collections.unmodifiableList(endpoints_); } else { @@ -1140,15 +993,11 @@ private void ensureEndpointsIsMutable() { } } /** - * - * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public int getEndpointsCount() { if (endpointsBuilder_ == null) { @@ -1158,15 +1007,11 @@ public int getEndpointsCount() { } } /** - * - * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.EndpointVerificationInfo getEndpoints(int index) { if (endpointsBuilder_ == null) { @@ -1176,15 +1021,11 @@ public com.google.recaptchaenterprise.v1.EndpointVerificationInfo getEndpoints(i } } /** - * - * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEndpoints( int index, com.google.recaptchaenterprise.v1.EndpointVerificationInfo value) { @@ -1201,19 +1042,14 @@ public Builder setEndpoints( return this; } /** - * - * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEndpoints( - int index, - com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder builderForValue) { + int index, com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder builderForValue) { if (endpointsBuilder_ == null) { ensureEndpointsIsMutable(); endpoints_.set(index, builderForValue.build()); @@ -1224,15 +1060,11 @@ public Builder setEndpoints( return this; } /** - * - * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addEndpoints(com.google.recaptchaenterprise.v1.EndpointVerificationInfo value) { if (endpointsBuilder_ == null) { @@ -1248,15 +1080,11 @@ public Builder addEndpoints(com.google.recaptchaenterprise.v1.EndpointVerificati return this; } /** - * - * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addEndpoints( int index, com.google.recaptchaenterprise.v1.EndpointVerificationInfo value) { @@ -1273,15 +1101,11 @@ public Builder addEndpoints( return this; } /** - * - * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addEndpoints( com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder builderForValue) { @@ -1295,19 +1119,14 @@ public Builder addEndpoints( return this; } /** - * - * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addEndpoints( - int index, - com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder builderForValue) { + int index, com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder builderForValue) { if (endpointsBuilder_ == null) { ensureEndpointsIsMutable(); endpoints_.add(index, builderForValue.build()); @@ -1318,22 +1137,18 @@ public Builder addEndpoints( return this; } /** - * - * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllEndpoints( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (endpointsBuilder_ == null) { ensureEndpointsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, endpoints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, endpoints_); onChanged(); } else { endpointsBuilder_.addAllMessages(values); @@ -1341,15 +1156,11 @@ public Builder addAllEndpoints( return this; } /** - * - * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearEndpoints() { if (endpointsBuilder_ == null) { @@ -1362,15 +1173,11 @@ public Builder clearEndpoints() { return this; } /** - * - * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeEndpoints(int index) { if (endpointsBuilder_ == null) { @@ -1383,53 +1190,39 @@ public Builder removeEndpoints(int index) { return this; } /** - * - * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder getEndpointsBuilder( int index) { return getEndpointsFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder - getEndpointsOrBuilder(int index) { + public com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder getEndpointsOrBuilder( + int index) { if (endpointsBuilder_ == null) { - return endpoints_.get(index); - } else { + return endpoints_.get(index); } else { return endpointsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder> - getEndpointsOrBuilderList() { + public java.util.List + getEndpointsOrBuilderList() { if (endpointsBuilder_ != null) { return endpointsBuilder_.getMessageOrBuilderList(); } else { @@ -1437,68 +1230,49 @@ public com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder getEnd } } /** - * - * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder - addEndpointsBuilder() { - return getEndpointsFieldBuilder() - .addBuilder( - com.google.recaptchaenterprise.v1.EndpointVerificationInfo.getDefaultInstance()); + public com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder addEndpointsBuilder() { + return getEndpointsFieldBuilder().addBuilder( + com.google.recaptchaenterprise.v1.EndpointVerificationInfo.getDefaultInstance()); } /** - * - * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder addEndpointsBuilder( int index) { - return getEndpointsFieldBuilder() - .addBuilder( - index, - com.google.recaptchaenterprise.v1.EndpointVerificationInfo.getDefaultInstance()); + return getEndpointsFieldBuilder().addBuilder( + index, com.google.recaptchaenterprise.v1.EndpointVerificationInfo.getDefaultInstance()); } /** - * - * *
      * Optional. Endpoints that can be used for identity verification.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getEndpointsBuilderList() { + public java.util.List + getEndpointsBuilderList() { return getEndpointsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.EndpointVerificationInfo, - com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder, - com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder> + com.google.recaptchaenterprise.v1.EndpointVerificationInfo, com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder, com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder> getEndpointsFieldBuilder() { if (endpointsBuilder_ == null) { - endpointsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.EndpointVerificationInfo, - com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder, - com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder>( - endpoints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + endpointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1.EndpointVerificationInfo, com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder, com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder>( + endpoints_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); endpoints_ = null; } return endpointsBuilder_; @@ -1506,21 +1280,19 @@ public com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder addEnd private java.lang.Object languageCode_ = ""; /** - * - * *
      * Optional. Language code preference for the verification message, set as a
      * IETF BCP 47 language code.
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -1529,22 +1301,21 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Optional. Language code preference for the verification message, set as a
      * IETF BCP 47 language code.
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1552,37 +1323,30 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Optional. Language code preference for the verification message, set as a
      * IETF BCP 47 language code.
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Language code preference for the verification message, set as a
      * IETF BCP 47 language code.
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -1592,22 +1356,18 @@ public Builder clearLanguageCode() { return this; } /** - * - * *
      * Optional. Language code preference for the verification message, set as a
      * IETF BCP 47 language code.
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000002; @@ -1617,33 +1377,22 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { private int latestVerificationResult_ = 0; /** - * - * *
      * Output only. Result of the latest account verification challenge.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for latestVerificationResult. */ - @java.lang.Override - public int getLatestVerificationResultValue() { + @java.lang.Override public int getLatestVerificationResultValue() { return latestVerificationResult_; } /** - * - * *
      * Output only. Result of the latest account verification challenge.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for latestVerificationResult to set. * @return This builder for chaining. */ @@ -1654,44 +1403,28 @@ public Builder setLatestVerificationResultValue(int value) { return this; } /** - * - * *
      * Output only. Result of the latest account verification challenge.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The latestVerificationResult. */ @java.lang.Override - public com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result - getLatestVerificationResult() { - com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result result = - com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result.forNumber( - latestVerificationResult_); - return result == null - ? com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result.UNRECOGNIZED - : result; + public com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result getLatestVerificationResult() { + com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result result = com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result.forNumber(latestVerificationResult_); + return result == null ? com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Result of the latest account verification challenge.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The latestVerificationResult to set. * @return This builder for chaining. */ - public Builder setLatestVerificationResult( - com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result value) { + public Builder setLatestVerificationResult(com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result value) { if (value == null) { throw new NullPointerException(); } @@ -1701,16 +1434,11 @@ public Builder setLatestVerificationResult( return this; } /** - * - * *
      * Output only. Result of the latest account verification challenge.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearLatestVerificationResult() { @@ -1722,24 +1450,21 @@ public Builder clearLatestVerificationResult() { private java.lang.Object username_ = ""; /** - * - * *
      * Username of the account that is being verified. Deprecated. Customers
      * should now provide the hashed account ID field in Event.
      * 
* * string username = 2 [deprecated = true]; - * - * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is - * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=553 + * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. + * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=553 * @return The username. */ - @java.lang.Deprecated - public java.lang.String getUsername() { + @java.lang.Deprecated public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -1748,25 +1473,23 @@ public java.lang.String getUsername() { } } /** - * - * *
      * Username of the account that is being verified. Deprecated. Customers
      * should now provide the hashed account ID field in Event.
      * 
* * string username = 2 [deprecated = true]; - * - * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is - * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=553 + * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. + * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=553 * @return The bytes for username. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getUsernameBytes() { + @java.lang.Deprecated public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -1774,80 +1497,66 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
      * Username of the account that is being verified. Deprecated. Customers
      * should now provide the hashed account ID field in Event.
      * 
* * string username = 2 [deprecated = true]; - * - * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is - * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=553 + * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. + * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=553 * @param value The username to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setUsername(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + @java.lang.Deprecated public Builder setUsername( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } username_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Username of the account that is being verified. Deprecated. Customers
      * should now provide the hashed account ID field in Event.
      * 
* * string username = 2 [deprecated = true]; - * - * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is - * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=553 + * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. + * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=553 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearUsername() { + @java.lang.Deprecated public Builder clearUsername() { username_ = getDefaultInstance().getUsername(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** - * - * *
      * Username of the account that is being verified. Deprecated. Customers
      * should now provide the hashed account ID field in Event.
      * 
* * string username = 2 [deprecated = true]; - * - * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is - * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=553 + * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. + * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=553 * @param value The bytes for username to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + @java.lang.Deprecated public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1857,12 +1566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.AccountVerificationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.AccountVerificationInfo) private static final com.google.recaptchaenterprise.v1.AccountVerificationInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.AccountVerificationInfo(); } @@ -1871,27 +1580,27 @@ public static com.google.recaptchaenterprise.v1.AccountVerificationInfo getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccountVerificationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccountVerificationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1906,4 +1615,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.AccountVerificationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfoOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfoOrBuilder.java similarity index 59% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfoOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfoOrBuilder.java index d107463a96b7..e4dc8d8c3cbf 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfoOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AccountVerificationInfoOrBuilder.java @@ -1,177 +1,120 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface AccountVerificationInfoOrBuilder - extends +public interface AccountVerificationInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.AccountVerificationInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Endpoints that can be used for identity verification.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getEndpointsList(); + java.util.List + getEndpointsList(); /** - * - * *
    * Optional. Endpoints that can be used for identity verification.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.recaptchaenterprise.v1.EndpointVerificationInfo getEndpoints(int index); /** - * - * *
    * Optional. Endpoints that can be used for identity verification.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ int getEndpointsCount(); /** - * - * *
    * Optional. Endpoints that can be used for identity verification.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getEndpointsOrBuilderList(); /** - * - * *
    * Optional. Endpoints that can be used for identity verification.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder getEndpointsOrBuilder( int index); /** - * - * *
    * Optional. Language code preference for the verification message, set as a
    * IETF BCP 47 language code.
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Optional. Language code preference for the verification message, set as a
    * IETF BCP 47 language code.
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * Output only. Result of the latest account verification challenge.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for latestVerificationResult. */ int getLatestVerificationResultValue(); /** - * - * *
    * Output only. Result of the latest account verification challenge.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The latestVerificationResult. */ com.google.recaptchaenterprise.v1.AccountVerificationInfo.Result getLatestVerificationResult(); /** - * - * *
    * Username of the account that is being verified. Deprecated. Customers
    * should now provide the hashed account ID field in Event.
    * 
* * string username = 2 [deprecated = true]; - * * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=553 * @return The username. */ - @java.lang.Deprecated - java.lang.String getUsername(); + @java.lang.Deprecated java.lang.String getUsername(); /** - * - * *
    * Username of the account that is being verified. Deprecated. Customers
    * should now provide the hashed account ID field in Event.
    * 
* * string username = 2 [deprecated = true]; - * * @deprecated google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. * See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=553 * @return The bytes for username. */ - @java.lang.Deprecated - com.google.protobuf.ByteString getUsernameBytes(); + @java.lang.Deprecated com.google.protobuf.ByteString + getUsernameBytes(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettings.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettings.java similarity index 69% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettings.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettings.java index e223e7810470..6521b8ded4b4 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettings.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettings.java @@ -1,78 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * Settings specific to keys that can be used by Android apps.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.AndroidKeySettings} */ -public final class AndroidKeySettings extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AndroidKeySettings extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.AndroidKeySettings) AndroidKeySettingsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AndroidKeySettings.newBuilder() to construct. private AndroidKeySettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AndroidKeySettings() { - allowedPackageNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + allowedPackageNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AndroidKeySettings(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.AndroidKeySettings.class, - com.google.recaptchaenterprise.v1.AndroidKeySettings.Builder.class); + com.google.recaptchaenterprise.v1.AndroidKeySettings.class, com.google.recaptchaenterprise.v1.AndroidKeySettings.Builder.class); } public static final int ALLOW_ALL_PACKAGE_NAMES_FIELD_NUMBER = 2; private boolean allowAllPackageNames_ = false; /** - * - * *
    * Optional. If set to true, allowed_package_names are not enforced.
    * 
* * bool allow_all_package_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowAllPackageNames. */ @java.lang.Override @@ -81,53 +60,41 @@ public boolean getAllowAllPackageNames() { } public static final int ALLOWED_PACKAGE_NAMES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList allowedPackageNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. Android package names of apps allowed to use the key.
    * Example: 'com.companyname.appname'
    * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the allowedPackageNames. */ - public com.google.protobuf.ProtocolStringList getAllowedPackageNamesList() { + public com.google.protobuf.ProtocolStringList + getAllowedPackageNamesList() { return allowedPackageNames_; } /** - * - * *
    * Optional. Android package names of apps allowed to use the key.
    * Example: 'com.companyname.appname'
    * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of allowedPackageNames. */ public int getAllowedPackageNamesCount() { return allowedPackageNames_.size(); } /** - * - * *
    * Optional. Android package names of apps allowed to use the key.
    * Example: 'com.companyname.appname'
    * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The allowedPackageNames at the given index. */ @@ -135,38 +102,30 @@ public java.lang.String getAllowedPackageNames(int index) { return allowedPackageNames_.get(index); } /** - * - * *
    * Optional. Android package names of apps allowed to use the key.
    * Example: 'com.companyname.appname'
    * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @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) { + public com.google.protobuf.ByteString + getAllowedPackageNamesBytes(int index) { return allowedPackageNames_.getByteString(index); } public static final int SUPPORT_NON_GOOGLE_APP_STORE_DISTRIBUTION_FIELD_NUMBER = 3; private boolean supportNonGoogleAppStoreDistribution_ = false; /** - * - * *
    * Optional. Set to true for keys that are used in an Android application that
    * is available for download in app stores in addition to the Google Play
    * Store.
    * 
* - * - * bool support_non_google_app_store_distribution = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool support_non_google_app_store_distribution = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The supportNonGoogleAppStoreDistribution. */ @java.lang.Override @@ -175,7 +134,6 @@ public boolean getSupportNonGoogleAppStoreDistribution() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,7 +145,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < allowedPackageNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, allowedPackageNames_.getRaw(i)); } @@ -215,12 +174,12 @@ public int getSerializedSize() { size += 1 * getAllowedPackageNamesList().size(); } if (allowAllPackageNames_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, allowAllPackageNames_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, allowAllPackageNames_); } if (supportNonGoogleAppStoreDistribution_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 3, supportNonGoogleAppStoreDistribution_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, supportNonGoogleAppStoreDistribution_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -230,16 +189,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.AndroidKeySettings)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.AndroidKeySettings other = - (com.google.recaptchaenterprise.v1.AndroidKeySettings) obj; + com.google.recaptchaenterprise.v1.AndroidKeySettings other = (com.google.recaptchaenterprise.v1.AndroidKeySettings) obj; - if (getAllowAllPackageNames() != other.getAllowAllPackageNames()) return false; - if (!getAllowedPackageNamesList().equals(other.getAllowedPackageNamesList())) return false; + if (getAllowAllPackageNames() + != other.getAllowAllPackageNames()) return false; + if (!getAllowedPackageNamesList() + .equals(other.getAllowedPackageNamesList())) return false; if (getSupportNonGoogleAppStoreDistribution() != other.getSupportNonGoogleAppStoreDistribution()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -254,164 +214,161 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ALLOW_ALL_PACKAGE_NAMES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowAllPackageNames()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowAllPackageNames()); if (getAllowedPackageNamesCount() > 0) { hash = (37 * hash) + ALLOWED_PACKAGE_NAMES_FIELD_NUMBER; hash = (53 * hash) + getAllowedPackageNamesList().hashCode(); } hash = (37 * hash) + SUPPORT_NON_GOOGLE_APP_STORE_DISTRIBUTION_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getSupportNonGoogleAppStoreDistribution()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSupportNonGoogleAppStoreDistribution()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.AndroidKeySettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.AndroidKeySettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Settings specific to keys that can be used by Android apps.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.AndroidKeySettings} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.AndroidKeySettings) com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.AndroidKeySettings.class, - com.google.recaptchaenterprise.v1.AndroidKeySettings.Builder.class); + com.google.recaptchaenterprise.v1.AndroidKeySettings.class, com.google.recaptchaenterprise.v1.AndroidKeySettings.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.AndroidKeySettings.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; allowAllPackageNames_ = false; - allowedPackageNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + allowedPackageNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); supportNonGoogleAppStoreDistribution_ = false; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor; } @java.lang.Override @@ -430,11 +387,8 @@ public com.google.recaptchaenterprise.v1.AndroidKeySettings build() { @java.lang.Override public com.google.recaptchaenterprise.v1.AndroidKeySettings buildPartial() { - com.google.recaptchaenterprise.v1.AndroidKeySettings result = - new com.google.recaptchaenterprise.v1.AndroidKeySettings(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.AndroidKeySettings result = new com.google.recaptchaenterprise.v1.AndroidKeySettings(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -457,39 +411,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.AndroidKeySettings public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.AndroidKeySettings) { - return mergeFrom((com.google.recaptchaenterprise.v1.AndroidKeySettings) other); + return mergeFrom((com.google.recaptchaenterprise.v1.AndroidKeySettings)other); } else { super.mergeFrom(other); return this; @@ -497,8 +450,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.AndroidKeySettings other) { - if (other == com.google.recaptchaenterprise.v1.AndroidKeySettings.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.AndroidKeySettings.getDefaultInstance()) return this; if (other.getAllowAllPackageNames() != false) { setAllowAllPackageNames(other.getAllowAllPackageNames()); } @@ -541,32 +493,28 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureAllowedPackageNamesIsMutable(); - allowedPackageNames_.add(s); - break; - } // case 10 - case 16: - { - allowAllPackageNames_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 16 - case 24: - { - supportNonGoogleAppStoreDistribution_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedPackageNamesIsMutable(); + allowedPackageNames_.add(s); + break; + } // case 10 + case 16: { + allowAllPackageNames_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 16 + case 24: { + supportNonGoogleAppStoreDistribution_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -576,19 +524,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean allowAllPackageNames_; + private boolean allowAllPackageNames_ ; /** - * - * *
      * Optional. If set to true, allowed_package_names are not enforced.
      * 
* * bool allow_all_package_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowAllPackageNames. */ @java.lang.Override @@ -596,14 +540,11 @@ public boolean getAllowAllPackageNames() { return allowAllPackageNames_; } /** - * - * *
      * Optional. If set to true, allowed_package_names are not enforced.
      * 
* * bool allow_all_package_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The allowAllPackageNames to set. * @return This builder for chaining. */ @@ -615,14 +556,11 @@ public Builder setAllowAllPackageNames(boolean value) { return this; } /** - * - * *
      * Optional. If set to true, allowed_package_names are not enforced.
      * 
* * bool allow_all_package_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAllowAllPackageNames() { @@ -634,7 +572,6 @@ public Builder clearAllowAllPackageNames() { private com.google.protobuf.LazyStringArrayList allowedPackageNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureAllowedPackageNamesIsMutable() { if (!allowedPackageNames_.isModifiable()) { allowedPackageNames_ = new com.google.protobuf.LazyStringArrayList(allowedPackageNames_); @@ -642,49 +579,38 @@ private void ensureAllowedPackageNamesIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
      * Optional. Android package names of apps allowed to use the key.
      * Example: 'com.companyname.appname'
      * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the allowedPackageNames. */ - public com.google.protobuf.ProtocolStringList getAllowedPackageNamesList() { + public com.google.protobuf.ProtocolStringList + getAllowedPackageNamesList() { allowedPackageNames_.makeImmutable(); return allowedPackageNames_; } /** - * - * *
      * Optional. Android package names of apps allowed to use the key.
      * Example: 'com.companyname.appname'
      * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of allowedPackageNames. */ public int getAllowedPackageNamesCount() { return allowedPackageNames_.size(); } /** - * - * *
      * Optional. Android package names of apps allowed to use the key.
      * Example: 'com.companyname.appname'
      * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The allowedPackageNames at the given index. */ @@ -692,41 +618,33 @@ public java.lang.String getAllowedPackageNames(int index) { return allowedPackageNames_.get(index); } /** - * - * *
      * Optional. Android package names of apps allowed to use the key.
      * Example: 'com.companyname.appname'
      * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @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) { + public com.google.protobuf.ByteString + getAllowedPackageNamesBytes(int index) { return allowedPackageNames_.getByteString(index); } /** - * - * *
      * Optional. Android package names of apps allowed to use the key.
      * Example: 'com.companyname.appname'
      * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @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) { - throw new NullPointerException(); - } + public Builder setAllowedPackageNames( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAllowedPackageNamesIsMutable(); allowedPackageNames_.set(index, value); bitField0_ |= 0x00000002; @@ -734,23 +652,18 @@ public Builder setAllowedPackageNames(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. Android package names of apps allowed to use the key.
      * Example: 'com.companyname.appname'
      * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param value The allowedPackageNames to add. * @return This builder for chaining. */ - public Builder addAllowedPackageNames(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAllowedPackageNames( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAllowedPackageNamesIsMutable(); allowedPackageNames_.add(value); bitField0_ |= 0x00000002; @@ -758,64 +671,53 @@ public Builder addAllowedPackageNames(java.lang.String value) { return this; } /** - * - * *
      * Optional. Android package names of apps allowed to use the key.
      * Example: 'com.companyname.appname'
      * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param values The allowedPackageNames to add. * @return This builder for chaining. */ - public Builder addAllAllowedPackageNames(java.lang.Iterable values) { + public Builder addAllAllowedPackageNames( + java.lang.Iterable values) { ensureAllowedPackageNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedPackageNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowedPackageNames_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Android package names of apps allowed to use the key.
      * Example: 'com.companyname.appname'
      * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearAllowedPackageNames() { - allowedPackageNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + allowedPackageNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
      * Optional. Android package names of apps allowed to use the key.
      * Example: 'com.companyname.appname'
      * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @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) { - throw new NullPointerException(); - } + public Builder addAllowedPackageNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAllowedPackageNamesIsMutable(); allowedPackageNames_.add(value); @@ -824,20 +726,15 @@ public Builder addAllowedPackageNamesBytes(com.google.protobuf.ByteString value) return this; } - private boolean supportNonGoogleAppStoreDistribution_; + private boolean supportNonGoogleAppStoreDistribution_ ; /** - * - * *
      * Optional. Set to true for keys that are used in an Android application that
      * is available for download in app stores in addition to the Google Play
      * Store.
      * 
* - * - * bool support_non_google_app_store_distribution = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool support_non_google_app_store_distribution = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The supportNonGoogleAppStoreDistribution. */ @java.lang.Override @@ -845,18 +742,13 @@ public boolean getSupportNonGoogleAppStoreDistribution() { return supportNonGoogleAppStoreDistribution_; } /** - * - * *
      * Optional. Set to true for keys that are used in an Android application that
      * is available for download in app stores in addition to the Google Play
      * Store.
      * 
* - * - * bool support_non_google_app_store_distribution = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool support_non_google_app_store_distribution = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The supportNonGoogleAppStoreDistribution to set. * @return This builder for chaining. */ @@ -868,18 +760,13 @@ public Builder setSupportNonGoogleAppStoreDistribution(boolean value) { return this; } /** - * - * *
      * Optional. Set to true for keys that are used in an Android application that
      * is available for download in app stores in addition to the Google Play
      * Store.
      * 
* - * - * bool support_non_google_app_store_distribution = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool support_non_google_app_store_distribution = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearSupportNonGoogleAppStoreDistribution() { @@ -888,9 +775,9 @@ public Builder clearSupportNonGoogleAppStoreDistribution() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -900,12 +787,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.AndroidKeySettings) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.AndroidKeySettings) private static final com.google.recaptchaenterprise.v1.AndroidKeySettings DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.AndroidKeySettings(); } @@ -914,27 +801,27 @@ public static com.google.recaptchaenterprise.v1.AndroidKeySettings getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AndroidKeySettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AndroidKeySettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -949,4 +836,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.AndroidKeySettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettingsOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettingsOrBuilder.java similarity index 65% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettingsOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettingsOrBuilder.java index 3d0ee4504a91..1126b310e3b7 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettingsOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AndroidKeySettingsOrBuilder.java @@ -1,113 +1,75 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface AndroidKeySettingsOrBuilder - extends +public interface AndroidKeySettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.AndroidKeySettings) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. If set to true, allowed_package_names are not enforced.
    * 
* * bool allow_all_package_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowAllPackageNames. */ boolean getAllowAllPackageNames(); /** - * - * *
    * Optional. Android package names of apps allowed to use the key.
    * Example: 'com.companyname.appname'
    * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the allowedPackageNames. */ - java.util.List getAllowedPackageNamesList(); + java.util.List + getAllowedPackageNamesList(); /** - * - * *
    * Optional. Android package names of apps allowed to use the key.
    * Example: 'com.companyname.appname'
    * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of allowedPackageNames. */ int getAllowedPackageNamesCount(); /** - * - * *
    * Optional. Android package names of apps allowed to use the key.
    * Example: 'com.companyname.appname'
    * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The allowedPackageNames at the given index. */ java.lang.String getAllowedPackageNames(int index); /** - * - * *
    * Optional. Android package names of apps allowed to use the key.
    * Example: 'com.companyname.appname'
    * 
* - * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @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); + com.google.protobuf.ByteString + getAllowedPackageNamesBytes(int index); /** - * - * *
    * Optional. Set to true for keys that are used in an Android application that
    * is available for download in app stores in addition to the Google Play
    * Store.
    * 
* - * - * bool support_non_google_app_store_distribution = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool support_non_google_app_store_distribution = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The supportNonGoogleAppStoreDistribution. */ boolean getSupportNonGoogleAppStoreDistribution(); diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequest.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequest.java similarity index 67% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequest.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequest.java index 0c7f80861396..25899d47e3ed 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequest.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * The request message to annotate an Assessment.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest} */ -public final class AnnotateAssessmentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AnnotateAssessmentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest) AnnotateAssessmentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AnnotateAssessmentRequest.newBuilder() to construct. private AnnotateAssessmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnnotateAssessmentRequest() { name_ = ""; annotation_ = 0; @@ -46,38 +28,34 @@ private AnnotateAssessmentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnnotateAssessmentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.class, - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Builder.class); + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.class, com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Builder.class); } /** - * - * *
    * Enum that represents the types of annotations.
    * 
* * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation} */ - public enum Annotation implements com.google.protobuf.ProtocolMessageEnum { + public enum Annotation + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default unspecified type.
      * 
@@ -86,8 +64,6 @@ public enum Annotation implements com.google.protobuf.ProtocolMessageEnum { */ ANNOTATION_UNSPECIFIED(0), /** - * - * *
      * Provides information that the event turned out to be legitimate.
      * 
@@ -96,8 +72,6 @@ public enum Annotation implements com.google.protobuf.ProtocolMessageEnum { */ LEGITIMATE(1), /** - * - * *
      * Provides information that the event turned out to be fraudulent.
      * 
@@ -106,8 +80,6 @@ public enum Annotation implements com.google.protobuf.ProtocolMessageEnum { */ FRAUDULENT(2), /** - * - * *
      * Provides information that the event was related to a login event in which
      * the user typed the correct password. Deprecated, prefer indicating
@@ -119,8 +91,6 @@ public enum Annotation implements com.google.protobuf.ProtocolMessageEnum {
     @java.lang.Deprecated
     PASSWORD_CORRECT(3),
     /**
-     *
-     *
      * 
      * Provides information that the event was related to a login event in which
      * the user typed the incorrect password. Deprecated, prefer indicating
@@ -135,8 +105,6 @@ public enum Annotation implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default unspecified type.
      * 
@@ -145,8 +113,6 @@ public enum Annotation implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ANNOTATION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Provides information that the event turned out to be legitimate.
      * 
@@ -155,8 +121,6 @@ public enum Annotation implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEGITIMATE_VALUE = 1; /** - * - * *
      * Provides information that the event turned out to be fraudulent.
      * 
@@ -165,8 +129,6 @@ public enum Annotation implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FRAUDULENT_VALUE = 2; /** - * - * *
      * Provides information that the event was related to a login event in which
      * the user typed the correct password. Deprecated, prefer indicating
@@ -177,8 +139,6 @@ public enum Annotation implements com.google.protobuf.ProtocolMessageEnum {
      */
     @java.lang.Deprecated public static final int PASSWORD_CORRECT_VALUE = 3;
     /**
-     *
-     *
      * 
      * Provides information that the event was related to a login event in which
      * the user typed the incorrect password. Deprecated, prefer indicating
@@ -189,6 +149,7 @@ public enum Annotation implements com.google.protobuf.ProtocolMessageEnum {
      */
     @java.lang.Deprecated public static final int PASSWORD_INCORRECT_VALUE = 4;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -213,55 +174,51 @@ public static Annotation valueOf(int value) {
      */
     public static Annotation forNumber(int value) {
       switch (value) {
-        case 0:
-          return ANNOTATION_UNSPECIFIED;
-        case 1:
-          return LEGITIMATE;
-        case 2:
-          return FRAUDULENT;
-        case 3:
-          return PASSWORD_CORRECT;
-        case 4:
-          return PASSWORD_INCORRECT;
-        default:
-          return null;
+        case 0: return ANNOTATION_UNSPECIFIED;
+        case 1: return LEGITIMATE;
+        case 2: return FRAUDULENT;
+        case 3: return PASSWORD_CORRECT;
+        case 4: return PASSWORD_INCORRECT;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        Annotation> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Annotation findValueByNumber(int number) {
+              return Annotation.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Annotation findValueByNumber(int number) {
-            return Annotation.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Annotation[] VALUES = values();
 
-    public static Annotation valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Annotation valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -279,18 +236,15 @@ private Annotation(int value) {
   }
 
   /**
-   *
-   *
    * 
    * Enum that represents potential reasons for annotating an assessment.
    * 
* * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason} */ - public enum Reason implements com.google.protobuf.ProtocolMessageEnum { + public enum Reason + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default unspecified reason.
      * 
@@ -299,8 +253,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { */ REASON_UNSPECIFIED(0), /** - * - * *
      * Indicates that the transaction had a chargeback issued with no other
      * details. When possible, specify the type by using CHARGEBACK_FRAUD or
@@ -311,8 +263,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     CHARGEBACK(1),
     /**
-     *
-     *
      * 
      * Indicates that the transaction had a chargeback issued related to an
      * alleged unauthorized transaction from the cardholder's perspective (for
@@ -323,8 +273,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     CHARGEBACK_FRAUD(8),
     /**
-     *
-     *
      * 
      * Indicates that the transaction had a chargeback issued related to the
      * cardholder having provided their card details but allegedly not being
@@ -336,8 +284,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     CHARGEBACK_DISPUTE(9),
     /**
-     *
-     *
      * 
      * Indicates that the completed payment transaction was refunded by the
      * seller.
@@ -347,8 +293,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     REFUND(10),
     /**
-     *
-     *
      * 
      * Indicates that the completed payment transaction was determined to be
      * fraudulent by the seller, and was cancelled and refunded as a result.
@@ -358,8 +302,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     REFUND_FRAUD(11),
     /**
-     *
-     *
      * 
      * Indicates that the payment transaction was accepted, and the user was
      * charged.
@@ -369,8 +311,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     TRANSACTION_ACCEPTED(12),
     /**
-     *
-     *
      * 
      * Indicates that the payment transaction was declined, for example due to
      * invalid card details.
@@ -380,8 +320,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     TRANSACTION_DECLINED(13),
     /**
-     *
-     *
      * 
      * Indicates the transaction associated with the assessment is suspected of
      * being fraudulent based on the payment method, billing details, shipping
@@ -392,8 +330,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     PAYMENT_HEURISTICS(2),
     /**
-     *
-     *
      * 
      * Indicates that the user was served a 2FA challenge. An old assessment
      * with `ENUM_VALUES.INITIATED_TWO_FACTOR` reason that has not been
@@ -405,8 +341,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     INITIATED_TWO_FACTOR(7),
     /**
-     *
-     *
      * 
      * Indicates that the user passed a 2FA challenge.
      * 
@@ -415,8 +349,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { */ PASSED_TWO_FACTOR(3), /** - * - * *
      * Indicates that the user failed a 2FA challenge.
      * 
@@ -425,8 +357,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { */ FAILED_TWO_FACTOR(4), /** - * - * *
      * Indicates the user provided the correct password.
      * 
@@ -435,8 +365,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { */ CORRECT_PASSWORD(5), /** - * - * *
      * Indicates the user provided an incorrect password.
      * 
@@ -445,8 +373,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { */ INCORRECT_PASSWORD(6), /** - * - * *
      * Indicates that the user sent unwanted and abusive messages to other users
      * of the platform, such as spam, scams, phishing, or social engineering.
@@ -459,8 +385,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default unspecified reason.
      * 
@@ -469,8 +393,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REASON_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Indicates that the transaction had a chargeback issued with no other
      * details. When possible, specify the type by using CHARGEBACK_FRAUD or
@@ -481,8 +403,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CHARGEBACK_VALUE = 1;
     /**
-     *
-     *
      * 
      * Indicates that the transaction had a chargeback issued related to an
      * alleged unauthorized transaction from the cardholder's perspective (for
@@ -493,8 +413,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CHARGEBACK_FRAUD_VALUE = 8;
     /**
-     *
-     *
      * 
      * Indicates that the transaction had a chargeback issued related to the
      * cardholder having provided their card details but allegedly not being
@@ -506,8 +424,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CHARGEBACK_DISPUTE_VALUE = 9;
     /**
-     *
-     *
      * 
      * Indicates that the completed payment transaction was refunded by the
      * seller.
@@ -517,8 +433,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int REFUND_VALUE = 10;
     /**
-     *
-     *
      * 
      * Indicates that the completed payment transaction was determined to be
      * fraudulent by the seller, and was cancelled and refunded as a result.
@@ -528,8 +442,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int REFUND_FRAUD_VALUE = 11;
     /**
-     *
-     *
      * 
      * Indicates that the payment transaction was accepted, and the user was
      * charged.
@@ -539,8 +451,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TRANSACTION_ACCEPTED_VALUE = 12;
     /**
-     *
-     *
      * 
      * Indicates that the payment transaction was declined, for example due to
      * invalid card details.
@@ -550,8 +460,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TRANSACTION_DECLINED_VALUE = 13;
     /**
-     *
-     *
      * 
      * Indicates the transaction associated with the assessment is suspected of
      * being fraudulent based on the payment method, billing details, shipping
@@ -562,8 +470,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int PAYMENT_HEURISTICS_VALUE = 2;
     /**
-     *
-     *
      * 
      * Indicates that the user was served a 2FA challenge. An old assessment
      * with `ENUM_VALUES.INITIATED_TWO_FACTOR` reason that has not been
@@ -575,8 +481,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int INITIATED_TWO_FACTOR_VALUE = 7;
     /**
-     *
-     *
      * 
      * Indicates that the user passed a 2FA challenge.
      * 
@@ -585,8 +489,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PASSED_TWO_FACTOR_VALUE = 3; /** - * - * *
      * Indicates that the user failed a 2FA challenge.
      * 
@@ -595,8 +497,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_TWO_FACTOR_VALUE = 4; /** - * - * *
      * Indicates the user provided the correct password.
      * 
@@ -605,8 +505,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CORRECT_PASSWORD_VALUE = 5; /** - * - * *
      * Indicates the user provided an incorrect password.
      * 
@@ -615,8 +513,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INCORRECT_PASSWORD_VALUE = 6; /** - * - * *
      * Indicates that the user sent unwanted and abusive messages to other users
      * of the platform, such as spam, scams, phishing, or social engineering.
@@ -626,6 +522,7 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SOCIAL_SPAM_VALUE = 14;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -650,75 +547,61 @@ public static Reason valueOf(int value) {
      */
     public static Reason forNumber(int value) {
       switch (value) {
-        case 0:
-          return REASON_UNSPECIFIED;
-        case 1:
-          return CHARGEBACK;
-        case 8:
-          return CHARGEBACK_FRAUD;
-        case 9:
-          return CHARGEBACK_DISPUTE;
-        case 10:
-          return REFUND;
-        case 11:
-          return REFUND_FRAUD;
-        case 12:
-          return TRANSACTION_ACCEPTED;
-        case 13:
-          return TRANSACTION_DECLINED;
-        case 2:
-          return PAYMENT_HEURISTICS;
-        case 7:
-          return INITIATED_TWO_FACTOR;
-        case 3:
-          return PASSED_TWO_FACTOR;
-        case 4:
-          return FAILED_TWO_FACTOR;
-        case 5:
-          return CORRECT_PASSWORD;
-        case 6:
-          return INCORRECT_PASSWORD;
-        case 14:
-          return SOCIAL_SPAM;
-        default:
-          return null;
+        case 0: return REASON_UNSPECIFIED;
+        case 1: return CHARGEBACK;
+        case 8: return CHARGEBACK_FRAUD;
+        case 9: return CHARGEBACK_DISPUTE;
+        case 10: return REFUND;
+        case 11: return REFUND_FRAUD;
+        case 12: return TRANSACTION_ACCEPTED;
+        case 13: return TRANSACTION_DECLINED;
+        case 2: return PAYMENT_HEURISTICS;
+        case 7: return INITIATED_TWO_FACTOR;
+        case 3: return PASSED_TWO_FACTOR;
+        case 4: return FAILED_TWO_FACTOR;
+        case 5: return CORRECT_PASSWORD;
+        case 6: return INCORRECT_PASSWORD;
+        case 14: return SOCIAL_SPAM;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        Reason> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Reason findValueByNumber(int number) {
+              return Reason.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Reason findValueByNumber(int number) {
-            return Reason.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.getDescriptor()
-          .getEnumTypes()
-          .get(1);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final Reason[] VALUES = values();
 
-    public static Reason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Reason valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -736,21 +619,15 @@ private Reason(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The resource name of the Assessment, in the format
    * `projects/{project}/assessments/{assessment}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -759,32 +636,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the Assessment, in the format
    * `projects/{project}/assessments/{assessment}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -795,103 +670,66 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ANNOTATION_FIELD_NUMBER = 2; private int annotation_ = 0; /** - * - * *
    * Optional. The annotation that will be assigned to the Event. This field can
    * be left empty to provide reasons that apply to an event without concluding
    * whether the event is legitimate or fraudulent.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for annotation. */ - @java.lang.Override - public int getAnnotationValue() { + @java.lang.Override public int getAnnotationValue() { return annotation_; } /** - * - * *
    * Optional. The annotation that will be assigned to the Event. This field can
    * be left empty to provide reasons that apply to an event without concluding
    * whether the event is legitimate or fraudulent.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The annotation. */ - @java.lang.Override - public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation getAnnotation() { - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation result = - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation.forNumber( - annotation_); - return result == null - ? com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation.UNRECOGNIZED - : result; + @java.lang.Override public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation getAnnotation() { + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation result = com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation.forNumber(annotation_); + return result == null ? com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation.UNRECOGNIZED : result; } public static final int REASONS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List reasons_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason> - reasons_converter_ = + java.lang.Integer, com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason> reasons_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason>() { - public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason convert( - java.lang.Integer from) { - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason result = - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason.forNumber( - from); - return result == null - ? com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason.UNRECOGNIZED - : result; + java.lang.Integer, com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason>() { + public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason convert(java.lang.Integer from) { + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason result = com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason.forNumber(from); + return result == null ? com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason.UNRECOGNIZED : result; } }; /** - * - * *
    * Optional. Optional reasons for the annotation that will be assigned to the
    * Event.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the reasons. */ @java.lang.Override - public java.util.List - getReasonsList() { + public java.util.List getReasonsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason>( - reasons_, reasons_converter_); + java.lang.Integer, com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason>(reasons_, reasons_converter_); } /** - * - * *
    * Optional. Optional reasons for the annotation that will be assigned to the
    * Event.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of reasons. */ @java.lang.Override @@ -899,17 +737,12 @@ public int getReasonsCount() { return reasons_.size(); } /** - * - * *
    * Optional. Optional reasons for the annotation that will be assigned to the
    * Event.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The reasons at the given index. */ @@ -918,35 +751,26 @@ public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason getRea return reasons_converter_.convert(reasons_.get(index)); } /** - * - * *
    * Optional. Optional reasons for the annotation that will be assigned to the
    * Event.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the enum numeric values on the wire for reasons. */ @java.lang.Override - public java.util.List getReasonsValueList() { + public java.util.List + getReasonsValueList() { return reasons_; } /** - * - * *
    * Optional. Optional reasons for the annotation that will be assigned to the
    * Event.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The enum numeric value on the wire of reasons at the given index. */ @@ -954,14 +778,11 @@ public java.util.List getReasonsValueList() { public int getReasonsValue(int index) { return reasons_.get(index); } - private int reasonsMemoizedSerializedSize; public static final int HASHED_ACCOUNT_ID_FIELD_NUMBER = 4; private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * Optional. Unique stable hashed user identifier to apply to the assessment.
    * This is an alternative to setting the hashed_account_id in
@@ -971,7 +792,6 @@ public int getReasonsValue(int index) {
    * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hashedAccountId. */ @java.lang.Override @@ -982,17 +802,12 @@ public com.google.protobuf.ByteString getHashedAccountId() { public static final int TRANSACTION_EVENT_FIELD_NUMBER = 5; private com.google.recaptchaenterprise.v1.TransactionEvent transactionEvent_; /** - * - * *
    * Optional. If the assessment is part of a payment transaction, provide
    * details on payment lifecycle events that occur in the transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the transactionEvent field is set. */ @java.lang.Override @@ -1000,47 +815,32 @@ public boolean hasTransactionEvent() { return transactionEvent_ != null; } /** - * - * *
    * Optional. If the assessment is part of a payment transaction, provide
    * details on payment lifecycle events that occur in the transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The transactionEvent. */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionEvent getTransactionEvent() { - return transactionEvent_ == null - ? com.google.recaptchaenterprise.v1.TransactionEvent.getDefaultInstance() - : transactionEvent_; + return transactionEvent_ == null ? com.google.recaptchaenterprise.v1.TransactionEvent.getDefaultInstance() : transactionEvent_; } /** - * - * *
    * Optional. If the assessment is part of a payment transaction, provide
    * details on payment lifecycle events that occur in the transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.TransactionEventOrBuilder - getTransactionEventOrBuilder() { - return transactionEvent_ == null - ? com.google.recaptchaenterprise.v1.TransactionEvent.getDefaultInstance() - : transactionEvent_; + public com.google.recaptchaenterprise.v1.TransactionEventOrBuilder getTransactionEventOrBuilder() { + return transactionEvent_ == null ? com.google.recaptchaenterprise.v1.TransactionEvent.getDefaultInstance() : transactionEvent_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1052,15 +852,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (annotation_ - != com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation - .ANNOTATION_UNSPECIFIED - .getNumber()) { + if (annotation_ != com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation.ANNOTATION_UNSPECIFIED.getNumber()) { output.writeEnum(2, annotation_); } if (getReasonsList().size() > 0) { @@ -1088,29 +886,29 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (annotation_ - != com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation - .ANNOTATION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, annotation_); + if (annotation_ != com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation.ANNOTATION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, annotation_); } { int dataSize = 0; for (int i = 0; i < reasons_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(reasons_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(reasons_.get(i)); } size += dataSize; - if (!getReasonsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - reasonsMemoizedSerializedSize = dataSize; + if (!getReasonsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }reasonsMemoizedSerializedSize = dataSize; } if (!hashedAccountId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, hashedAccountId_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, hashedAccountId_); } if (transactionEvent_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTransactionEvent()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getTransactionEvent()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1120,21 +918,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest other = - (com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest) obj; + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest other = (com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (annotation_ != other.annotation_) return false; if (!reasons_.equals(other.reasons_)) return false; - if (!getHashedAccountId().equals(other.getHashedAccountId())) return false; + if (!getHashedAccountId() + .equals(other.getHashedAccountId())) return false; if (hasTransactionEvent() != other.hasTransactionEvent()) return false; if (hasTransactionEvent()) { - if (!getTransactionEvent().equals(other.getTransactionEvent())) return false; + if (!getTransactionEvent() + .equals(other.getTransactionEvent())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1167,136 +967,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message to annotate an Assessment.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest) com.google.recaptchaenterprise.v1.AnnotateAssessmentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.class, - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Builder.class); + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.class, com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1315,9 +1110,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_descriptor; } @java.lang.Override @@ -1336,18 +1131,14 @@ public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest buildPartial() { - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest result = - new com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest(this); + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest result = new com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest result) { + private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest result) { if (((bitField0_ & 0x00000004) != 0)) { reasons_ = java.util.Collections.unmodifiableList(reasons_); bitField0_ = (bitField0_ & ~0x00000004); @@ -1367,8 +1158,9 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.AnnotateAssessmentR result.hashedAccountId_ = hashedAccountId_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.transactionEvent_ = - transactionEventBuilder_ == null ? transactionEvent_ : transactionEventBuilder_.build(); + result.transactionEvent_ = transactionEventBuilder_ == null + ? transactionEvent_ + : transactionEventBuilder_.build(); } } @@ -1376,39 +1168,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.AnnotateAssessmentR public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest) other); + return mergeFrom((com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest)other); } else { super.mergeFrom(other); return this; @@ -1416,8 +1207,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest other) { - if (other == com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1468,57 +1258,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - annotation_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + annotation_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + int tmpRaw = input.readEnum(); + ensureReasonsIsMutable(); + reasons_.add(tmpRaw); + break; + } // case 24 + case 26: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureReasonsIsMutable(); reasons_.add(tmpRaw); - break; - } // case 24 - case 26: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureReasonsIsMutable(); - reasons_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 26 - case 34: - { - hashedAccountId_ = input.readBytes(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage( - getTransactionEventFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + } + input.popLimit(oldLimit); + break; + } // case 26 + case 34: { + hashedAccountId_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getTransactionEventFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1528,28 +1312,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the Assessment, in the format
      * `projects/{project}/assessments/{assessment}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1558,24 +1337,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the Assessment, in the format
      * `projects/{project}/assessments/{assessment}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1583,41 +1359,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the Assessment, in the format
      * `projects/{project}/assessments/{assessment}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Assessment, in the format
      * `projects/{project}/assessments/{assessment}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -1627,24 +1392,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the Assessment, in the format
      * `projects/{project}/assessments/{assessment}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1654,37 +1413,26 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int annotation_ = 0; /** - * - * *
      * Optional. The annotation that will be assigned to the Event. This field can
      * be left empty to provide reasons that apply to an event without concluding
      * whether the event is legitimate or fraudulent.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for annotation. */ - @java.lang.Override - public int getAnnotationValue() { + @java.lang.Override public int getAnnotationValue() { return annotation_; } /** - * - * *
      * Optional. The annotation that will be assigned to the Event. This field can
      * be left empty to provide reasons that apply to an event without concluding
      * whether the event is legitimate or fraudulent.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for annotation to set. * @return This builder for chaining. */ @@ -1695,47 +1443,32 @@ public Builder setAnnotationValue(int value) { return this; } /** - * - * *
      * Optional. The annotation that will be assigned to the Event. This field can
      * be left empty to provide reasons that apply to an event without concluding
      * whether the event is legitimate or fraudulent.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The annotation. */ @java.lang.Override public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation getAnnotation() { - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation result = - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation.forNumber( - annotation_); - return result == null - ? com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation.UNRECOGNIZED - : result; + com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation result = com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation.forNumber(annotation_); + return result == null ? com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The annotation that will be assigned to the Event. This field can
      * be left empty to provide reasons that apply to an event without concluding
      * whether the event is legitimate or fraudulent.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The annotation to set. * @return This builder for chaining. */ - public Builder setAnnotation( - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation value) { + public Builder setAnnotation(com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation value) { if (value == null) { throw new NullPointerException(); } @@ -1745,18 +1478,13 @@ public Builder setAnnotation( return this; } /** - * - * *
      * Optional. The annotation that will be assigned to the Event. This field can
      * be left empty to provide reasons that apply to an event without concluding
      * whether the event is legitimate or fraudulent.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearAnnotation() { @@ -1766,8 +1494,8 @@ public Builder clearAnnotation() { return this; } - private java.util.List reasons_ = java.util.Collections.emptyList(); - + private java.util.List reasons_ = + java.util.Collections.emptyList(); private void ensureReasonsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { reasons_ = new java.util.ArrayList(reasons_); @@ -1775,73 +1503,50 @@ private void ensureReasonsIsMutable() { } } /** - * - * *
      * Optional. Optional reasons for the annotation that will be assigned to the
      * Event.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the reasons. */ - public java.util.List - getReasonsList() { + public java.util.List getReasonsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason>( - reasons_, reasons_converter_); + java.lang.Integer, com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason>(reasons_, reasons_converter_); } /** - * - * *
      * Optional. Optional reasons for the annotation that will be assigned to the
      * Event.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of reasons. */ public int getReasonsCount() { return reasons_.size(); } /** - * - * *
      * Optional. Optional reasons for the annotation that will be assigned to the
      * Event.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The reasons at the given index. */ - public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason getReasons( - int index) { + public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason getReasons(int index) { return reasons_converter_.convert(reasons_.get(index)); } /** - * - * *
      * Optional. Optional reasons for the annotation that will be assigned to the
      * Event.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The reasons to set. * @return This builder for chaining. @@ -1857,22 +1562,16 @@ public Builder setReasons( return this; } /** - * - * *
      * Optional. Optional reasons for the annotation that will be assigned to the
      * Event.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The reasons to add. * @return This builder for chaining. */ - public Builder addReasons( - com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason value) { + public Builder addReasons(com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason value) { if (value == null) { throw new NullPointerException(); } @@ -1882,24 +1581,17 @@ public Builder addReasons( return this; } /** - * - * *
      * Optional. Optional reasons for the annotation that will be assigned to the
      * Event.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param values The reasons to add. * @return This builder for chaining. */ public Builder addAllReasons( - java.lang.Iterable< - ? extends com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason> - values) { + java.lang.Iterable values) { ensureReasonsIsMutable(); for (com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason value : values) { reasons_.add(value.getNumber()); @@ -1908,17 +1600,12 @@ public Builder addAllReasons( return this; } /** - * - * *
      * Optional. Optional reasons for the annotation that will be assigned to the
      * Event.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearReasons() { @@ -1928,34 +1615,25 @@ public Builder clearReasons() { return this; } /** - * - * *
      * Optional. Optional reasons for the annotation that will be assigned to the
      * Event.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the enum numeric values on the wire for reasons. */ - public java.util.List getReasonsValueList() { + public java.util.List + getReasonsValueList() { return java.util.Collections.unmodifiableList(reasons_); } /** - * - * *
      * Optional. Optional reasons for the annotation that will be assigned to the
      * Event.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The enum numeric value on the wire of reasons at the given index. */ @@ -1963,39 +1641,30 @@ public int getReasonsValue(int index) { return reasons_.get(index); } /** - * - * *
      * Optional. Optional reasons for the annotation that will be assigned to the
      * Event.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The enum numeric value on the wire for reasons to set. * @return This builder for chaining. */ - public Builder setReasonsValue(int index, int value) { + public Builder setReasonsValue( + int index, int value) { ensureReasonsIsMutable(); reasons_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. Optional reasons for the annotation that will be assigned to the
      * Event.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for reasons to add. * @return This builder for chaining. */ @@ -2006,21 +1675,17 @@ public Builder addReasonsValue(int value) { return this; } /** - * - * *
      * Optional. Optional reasons for the annotation that will be assigned to the
      * Event.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @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) { + public Builder addAllReasonsValue( + java.lang.Iterable values) { ensureReasonsIsMutable(); for (int value : values) { reasons_.add(value); @@ -2031,8 +1696,6 @@ public Builder addAllReasonsValue(java.lang.Iterable values) private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Optional. Unique stable hashed user identifier to apply to the assessment.
      * This is an alternative to setting the hashed_account_id in
@@ -2042,7 +1705,6 @@ public Builder addAllReasonsValue(java.lang.Iterable values)
      * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hashedAccountId. */ @java.lang.Override @@ -2050,8 +1712,6 @@ public com.google.protobuf.ByteString getHashedAccountId() { return hashedAccountId_; } /** - * - * *
      * Optional. Unique stable hashed user identifier to apply to the assessment.
      * This is an alternative to setting the hashed_account_id in
@@ -2061,22 +1721,17 @@ public com.google.protobuf.ByteString getHashedAccountId() {
      * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The hashedAccountId to set. * @return This builder for chaining. */ public Builder setHashedAccountId(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } hashedAccountId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. Unique stable hashed user identifier to apply to the assessment.
      * This is an alternative to setting the hashed_account_id in
@@ -2086,7 +1741,6 @@ public Builder setHashedAccountId(com.google.protobuf.ByteString value) {
      * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearHashedAccountId() { @@ -2098,61 +1752,42 @@ public Builder clearHashedAccountId() { private com.google.recaptchaenterprise.v1.TransactionEvent transactionEvent_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionEvent, - com.google.recaptchaenterprise.v1.TransactionEvent.Builder, - com.google.recaptchaenterprise.v1.TransactionEventOrBuilder> - transactionEventBuilder_; + com.google.recaptchaenterprise.v1.TransactionEvent, com.google.recaptchaenterprise.v1.TransactionEvent.Builder, com.google.recaptchaenterprise.v1.TransactionEventOrBuilder> transactionEventBuilder_; /** - * - * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the transactionEvent field is set. */ public boolean hasTransactionEvent() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The transactionEvent. */ public com.google.recaptchaenterprise.v1.TransactionEvent getTransactionEvent() { if (transactionEventBuilder_ == null) { - return transactionEvent_ == null - ? com.google.recaptchaenterprise.v1.TransactionEvent.getDefaultInstance() - : transactionEvent_; + return transactionEvent_ == null ? com.google.recaptchaenterprise.v1.TransactionEvent.getDefaultInstance() : transactionEvent_; } else { return transactionEventBuilder_.getMessage(); } } /** - * - * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTransactionEvent(com.google.recaptchaenterprise.v1.TransactionEvent value) { if (transactionEventBuilder_ == null) { @@ -2168,16 +1803,12 @@ public Builder setTransactionEvent(com.google.recaptchaenterprise.v1.Transaction return this; } /** - * - * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTransactionEvent( com.google.recaptchaenterprise.v1.TransactionEvent.Builder builderForValue) { @@ -2191,23 +1822,18 @@ public Builder setTransactionEvent( return this; } /** - * - * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeTransactionEvent(com.google.recaptchaenterprise.v1.TransactionEvent value) { if (transactionEventBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && transactionEvent_ != null - && transactionEvent_ - != com.google.recaptchaenterprise.v1.TransactionEvent.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + transactionEvent_ != null && + transactionEvent_ != com.google.recaptchaenterprise.v1.TransactionEvent.getDefaultInstance()) { getTransactionEventBuilder().mergeFrom(value); } else { transactionEvent_ = value; @@ -2220,16 +1846,12 @@ public Builder mergeTransactionEvent(com.google.recaptchaenterprise.v1.Transacti return this; } /** - * - * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearTransactionEvent() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2242,16 +1864,12 @@ public Builder clearTransactionEvent() { return this; } /** - * - * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.TransactionEvent.Builder getTransactionEventBuilder() { bitField0_ |= 0x00000010; @@ -2259,58 +1877,45 @@ public com.google.recaptchaenterprise.v1.TransactionEvent.Builder getTransaction return getTransactionEventFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.recaptchaenterprise.v1.TransactionEventOrBuilder - getTransactionEventOrBuilder() { + public com.google.recaptchaenterprise.v1.TransactionEventOrBuilder getTransactionEventOrBuilder() { if (transactionEventBuilder_ != null) { return transactionEventBuilder_.getMessageOrBuilder(); } else { - return transactionEvent_ == null - ? com.google.recaptchaenterprise.v1.TransactionEvent.getDefaultInstance() - : transactionEvent_; + return transactionEvent_ == null ? + com.google.recaptchaenterprise.v1.TransactionEvent.getDefaultInstance() : transactionEvent_; } } /** - * - * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionEvent, - com.google.recaptchaenterprise.v1.TransactionEvent.Builder, - com.google.recaptchaenterprise.v1.TransactionEventOrBuilder> + com.google.recaptchaenterprise.v1.TransactionEvent, com.google.recaptchaenterprise.v1.TransactionEvent.Builder, com.google.recaptchaenterprise.v1.TransactionEventOrBuilder> getTransactionEventFieldBuilder() { if (transactionEventBuilder_ == null) { - transactionEventBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionEvent, - com.google.recaptchaenterprise.v1.TransactionEvent.Builder, - com.google.recaptchaenterprise.v1.TransactionEventOrBuilder>( - getTransactionEvent(), getParentForChildren(), isClean()); + transactionEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.TransactionEvent, com.google.recaptchaenterprise.v1.TransactionEvent.Builder, com.google.recaptchaenterprise.v1.TransactionEventOrBuilder>( + getTransactionEvent(), + getParentForChildren(), + isClean()); transactionEvent_ = null; } return transactionEventBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2320,12 +1925,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest) private static final com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest(); } @@ -2334,27 +1939,27 @@ public static com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateAssessmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateAssessmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2369,4 +1974,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequestOrBuilder.java similarity index 59% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequestOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequestOrBuilder.java index 7f96e9cbfd6b..0eae79b3ab34 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequestOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequestOrBuilder.java @@ -1,174 +1,112 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface AnnotateAssessmentRequestOrBuilder - extends +public interface AnnotateAssessmentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the Assessment, in the format
    * `projects/{project}/assessments/{assessment}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the Assessment, in the format
    * `projects/{project}/assessments/{assessment}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. The annotation that will be assigned to the Event. This field can
    * be left empty to provide reasons that apply to an event without concluding
    * whether the event is legitimate or fraudulent.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for annotation. */ int getAnnotationValue(); /** - * - * *
    * Optional. The annotation that will be assigned to the Event. This field can
    * be left empty to provide reasons that apply to an event without concluding
    * whether the event is legitimate or fraudulent.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The annotation. */ com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation getAnnotation(); /** - * - * *
    * Optional. Optional reasons for the annotation that will be assigned to the
    * Event.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the reasons. */ - java.util.List - getReasonsList(); + java.util.List getReasonsList(); /** - * - * *
    * Optional. Optional reasons for the annotation that will be assigned to the
    * Event.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of reasons. */ int getReasonsCount(); /** - * - * *
    * Optional. Optional reasons for the annotation that will be assigned to the
    * Event.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The reasons at the given index. */ com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason getReasons(int index); /** - * - * *
    * Optional. Optional reasons for the annotation that will be assigned to the
    * Event.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the enum numeric values on the wire for reasons. */ - java.util.List getReasonsValueList(); + java.util.List + getReasonsValueList(); /** - * - * *
    * Optional. Optional reasons for the annotation that will be assigned to the
    * Event.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @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); /** - * - * *
    * Optional. Unique stable hashed user identifier to apply to the assessment.
    * This is an alternative to setting the hashed_account_id in
@@ -178,52 +116,37 @@ public interface AnnotateAssessmentRequestOrBuilder
    * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hashedAccountId. */ com.google.protobuf.ByteString getHashedAccountId(); /** - * - * *
    * Optional. If the assessment is part of a payment transaction, provide
    * details on payment lifecycle events that occur in the transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the transactionEvent field is set. */ boolean hasTransactionEvent(); /** - * - * *
    * Optional. If the assessment is part of a payment transaction, provide
    * details on payment lifecycle events that occur in the transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The transactionEvent. */ com.google.recaptchaenterprise.v1.TransactionEvent getTransactionEvent(); /** - * - * *
    * Optional. If the assessment is part of a payment transaction, provide
    * details on payment lifecycle events that occur in the transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.recaptchaenterprise.v1.TransactionEventOrBuilder getTransactionEventOrBuilder(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponse.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponse.java similarity index 62% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponse.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponse.java index de6713e3dfd4..ab404259ba6d 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponse.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponse.java @@ -1,67 +1,48 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * Empty response for AnnotateAssessment.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse} */ -public final class AnnotateAssessmentResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AnnotateAssessmentResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse) AnnotateAssessmentResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AnnotateAssessmentResponse.newBuilder() to construct. private AnnotateAssessmentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private AnnotateAssessmentResponse() {} + private AnnotateAssessmentResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnnotateAssessmentResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.class, - com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.Builder.class); + com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.class, com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -73,7 +54,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -91,13 +73,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse other = - (com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse) obj; + com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse other = (com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -116,136 +97,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Empty response for AnnotateAssessment.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse) com.google.recaptchaenterprise.v1.AnnotateAssessmentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.class, - com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.Builder.class); + com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.class, com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -253,14 +229,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.getDefaultInstance(); } @@ -275,8 +250,7 @@ public com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse build() { @java.lang.Override public com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse buildPartial() { - com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse result = - new com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse(this); + com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse result = new com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse(this); onBuilt(); return result; } @@ -285,39 +259,38 @@ public com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse) { - return mergeFrom((com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse) other); + return mergeFrom((com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse)other); } else { super.mergeFrom(other); return this; @@ -325,9 +298,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse other) { - if (other - == com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -354,13 +325,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -370,9 +340,9 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -382,13 +352,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse) - private static final com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse(); } @@ -397,27 +366,27 @@ public static com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateAssessmentResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateAssessmentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -432,4 +401,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.recaptchaenterprise.v1.AnnotateAssessmentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponseOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponseOrBuilder.java new file mode 100644 index 000000000000..194e7abaa4c5 --- /dev/null +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface AnnotateAssessmentResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperId.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperId.java similarity index 69% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperId.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperId.java index 972491a5d260..ff30b4f639f1 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperId.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperId.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * Contains fields that are required to perform Apple-specific integrity checks.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.AppleDeveloperId} */ -public final class AppleDeveloperId extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AppleDeveloperId extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.AppleDeveloperId) AppleDeveloperIdOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AppleDeveloperId.newBuilder() to construct. private AppleDeveloperId(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AppleDeveloperId() { privateKey_ = ""; keyId_ = ""; @@ -45,42 +27,35 @@ private AppleDeveloperId() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AppleDeveloperId(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.AppleDeveloperId.class, - com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder.class); + com.google.recaptchaenterprise.v1.AppleDeveloperId.class, com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder.class); } public static final int PRIVATE_KEY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object privateKey_ = ""; /** - * - * *
    * Required. Input only. A private key (downloaded as a text file with a .p8
    * file extension) generated for your Apple Developer account. Ensure that
    * Apple DeviceCheck is enabled for the private key.
    * 
* - * - * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The privateKey. */ @java.lang.Override @@ -89,33 +64,31 @@ public java.lang.String getPrivateKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateKey_ = s; return s; } } /** - * - * *
    * Required. Input only. A private key (downloaded as a text file with a .p8
    * file extension) generated for your Apple Developer account. Ensure that
    * Apple DeviceCheck is enabled for the private key.
    * 
* - * - * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for privateKey. */ @java.lang.Override - public com.google.protobuf.ByteString getPrivateKeyBytes() { + public com.google.protobuf.ByteString + getPrivateKeyBytes() { java.lang.Object ref = privateKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); privateKey_ = b; return b; } else { @@ -124,18 +97,14 @@ public com.google.protobuf.ByteString getPrivateKeyBytes() { } public static final int KEY_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object keyId_ = ""; /** - * - * *
    * Required. The Apple developer key ID (10-character string).
    * 
* * string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The keyId. */ @java.lang.Override @@ -144,29 +113,29 @@ public java.lang.String getKeyId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyId_ = s; return s; } } /** - * - * *
    * Required. The Apple developer key ID (10-character string).
    * 
* * string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for keyId. */ @java.lang.Override - public com.google.protobuf.ByteString getKeyIdBytes() { + public com.google.protobuf.ByteString + getKeyIdBytes() { java.lang.Object ref = keyId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); keyId_ = b; return b; } else { @@ -175,19 +144,15 @@ public com.google.protobuf.ByteString getKeyIdBytes() { } public static final int TEAM_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object teamId_ = ""; /** - * - * *
    * Required. The Apple team ID (10-character string) owning the provisioning
    * profile used to build your application.
    * 
* * string team_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The teamId. */ @java.lang.Override @@ -196,30 +161,30 @@ public java.lang.String getTeamId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); teamId_ = s; return s; } } /** - * - * *
    * Required. The Apple team ID (10-character string) owning the provisioning
    * profile used to build your application.
    * 
* * string team_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for teamId. */ @java.lang.Override - public com.google.protobuf.ByteString getTeamIdBytes() { + public com.google.protobuf.ByteString + getTeamIdBytes() { java.lang.Object ref = teamId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); teamId_ = b; return b; } else { @@ -228,7 +193,6 @@ public com.google.protobuf.ByteString getTeamIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privateKey_); } @@ -276,17 +241,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.AppleDeveloperId)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.AppleDeveloperId other = - (com.google.recaptchaenterprise.v1.AppleDeveloperId) obj; + com.google.recaptchaenterprise.v1.AppleDeveloperId other = (com.google.recaptchaenterprise.v1.AppleDeveloperId) obj; - if (!getPrivateKey().equals(other.getPrivateKey())) return false; - if (!getKeyId().equals(other.getKeyId())) return false; - if (!getTeamId().equals(other.getTeamId())) return false; + if (!getPrivateKey() + .equals(other.getPrivateKey())) return false; + if (!getKeyId() + .equals(other.getKeyId())) return false; + if (!getTeamId() + .equals(other.getTeamId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -310,135 +277,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.AppleDeveloperId parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.AppleDeveloperId prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Contains fields that are required to perform Apple-specific integrity checks.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.AppleDeveloperId} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.AppleDeveloperId) com.google.recaptchaenterprise.v1.AppleDeveloperIdOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.AppleDeveloperId.class, - com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder.class); + com.google.recaptchaenterprise.v1.AppleDeveloperId.class, com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.AppleDeveloperId.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -450,9 +413,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor; } @java.lang.Override @@ -471,11 +434,8 @@ public com.google.recaptchaenterprise.v1.AppleDeveloperId build() { @java.lang.Override public com.google.recaptchaenterprise.v1.AppleDeveloperId buildPartial() { - com.google.recaptchaenterprise.v1.AppleDeveloperId result = - new com.google.recaptchaenterprise.v1.AppleDeveloperId(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.AppleDeveloperId result = new com.google.recaptchaenterprise.v1.AppleDeveloperId(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -497,39 +457,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.AppleDeveloperId re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.AppleDeveloperId) { - return mergeFrom((com.google.recaptchaenterprise.v1.AppleDeveloperId) other); + return mergeFrom((com.google.recaptchaenterprise.v1.AppleDeveloperId)other); } else { super.mergeFrom(other); return this; @@ -537,8 +496,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.AppleDeveloperId other) { - if (other == com.google.recaptchaenterprise.v1.AppleDeveloperId.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.AppleDeveloperId.getDefaultInstance()) return this; if (!other.getPrivateKey().isEmpty()) { privateKey_ = other.privateKey_; bitField0_ |= 0x00000001; @@ -580,31 +538,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - privateKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - keyId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - teamId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + privateKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + keyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + teamId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -614,29 +568,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object privateKey_ = ""; /** - * - * *
      * Required. Input only. A private key (downloaded as a text file with a .p8
      * file extension) generated for your Apple Developer account. Ensure that
      * Apple DeviceCheck is enabled for the private key.
      * 
* - * - * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The privateKey. */ public java.lang.String getPrivateKey() { java.lang.Object ref = privateKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateKey_ = s; return s; @@ -645,25 +594,22 @@ public java.lang.String getPrivateKey() { } } /** - * - * *
      * Required. Input only. A private key (downloaded as a text file with a .p8
      * file extension) generated for your Apple Developer account. Ensure that
      * Apple DeviceCheck is enabled for the private key.
      * 
* - * - * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for privateKey. */ - public com.google.protobuf.ByteString getPrivateKeyBytes() { + public com.google.protobuf.ByteString + getPrivateKeyBytes() { java.lang.Object ref = privateKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); privateKey_ = b; return b; } else { @@ -671,43 +617,32 @@ public com.google.protobuf.ByteString getPrivateKeyBytes() { } } /** - * - * *
      * Required. Input only. A private key (downloaded as a text file with a .p8
      * file extension) generated for your Apple Developer account. Ensure that
      * Apple DeviceCheck is enabled for the private key.
      * 
* - * - * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @param value The privateKey to set. * @return This builder for chaining. */ - public Builder setPrivateKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrivateKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } privateKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Input only. A private key (downloaded as a text file with a .p8
      * file extension) generated for your Apple Developer account. Ensure that
      * Apple DeviceCheck is enabled for the private key.
      * 
* - * - * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPrivateKey() { @@ -717,25 +652,19 @@ public Builder clearPrivateKey() { return this; } /** - * - * *
      * Required. Input only. A private key (downloaded as a text file with a .p8
      * file extension) generated for your Apple Developer account. Ensure that
      * Apple DeviceCheck is enabled for the private key.
      * 
* - * - * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @param value The bytes for privateKey to set. * @return This builder for chaining. */ - public Builder setPrivateKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrivateKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); privateKey_ = value; bitField0_ |= 0x00000001; @@ -745,20 +674,18 @@ public Builder setPrivateKeyBytes(com.google.protobuf.ByteString value) { private java.lang.Object keyId_ = ""; /** - * - * *
      * Required. The Apple developer key ID (10-character string).
      * 
* * string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The keyId. */ public java.lang.String getKeyId() { java.lang.Object ref = keyId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyId_ = s; return s; @@ -767,21 +694,20 @@ public java.lang.String getKeyId() { } } /** - * - * *
      * Required. The Apple developer key ID (10-character string).
      * 
* * string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for keyId. */ - public com.google.protobuf.ByteString getKeyIdBytes() { + public com.google.protobuf.ByteString + getKeyIdBytes() { java.lang.Object ref = keyId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); keyId_ = b; return b; } else { @@ -789,35 +715,28 @@ public com.google.protobuf.ByteString getKeyIdBytes() { } } /** - * - * *
      * Required. The Apple developer key ID (10-character string).
      * 
* * string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The keyId to set. * @return This builder for chaining. */ - public Builder setKeyId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKeyId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } keyId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The Apple developer key ID (10-character string).
      * 
* * string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearKeyId() { @@ -827,21 +746,17 @@ public Builder clearKeyId() { return this; } /** - * - * *
      * Required. The Apple developer key ID (10-character string).
      * 
* * string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for keyId to set. * @return This builder for chaining. */ - public Builder setKeyIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKeyIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); keyId_ = value; bitField0_ |= 0x00000002; @@ -851,21 +766,19 @@ public Builder setKeyIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object teamId_ = ""; /** - * - * *
      * Required. The Apple team ID (10-character string) owning the provisioning
      * profile used to build your application.
      * 
* * string team_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The teamId. */ public java.lang.String getTeamId() { java.lang.Object ref = teamId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); teamId_ = s; return s; @@ -874,22 +787,21 @@ public java.lang.String getTeamId() { } } /** - * - * *
      * Required. The Apple team ID (10-character string) owning the provisioning
      * profile used to build your application.
      * 
* * string team_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for teamId. */ - public com.google.protobuf.ByteString getTeamIdBytes() { + public com.google.protobuf.ByteString + getTeamIdBytes() { java.lang.Object ref = teamId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); teamId_ = b; return b; } else { @@ -897,37 +809,30 @@ public com.google.protobuf.ByteString getTeamIdBytes() { } } /** - * - * *
      * Required. The Apple team ID (10-character string) owning the provisioning
      * profile used to build your application.
      * 
* * string team_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The teamId to set. * @return This builder for chaining. */ - public Builder setTeamId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTeamId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } teamId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. The Apple team ID (10-character string) owning the provisioning
      * profile used to build your application.
      * 
* * string team_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTeamId() { @@ -937,31 +842,27 @@ public Builder clearTeamId() { return this; } /** - * - * *
      * Required. The Apple team ID (10-character string) owning the provisioning
      * profile used to build your application.
      * 
* * string team_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for teamId to set. * @return This builder for chaining. */ - public Builder setTeamIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTeamIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); teamId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -971,12 +872,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.AppleDeveloperId) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.AppleDeveloperId) private static final com.google.recaptchaenterprise.v1.AppleDeveloperId DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.AppleDeveloperId(); } @@ -985,27 +886,27 @@ public static com.google.recaptchaenterprise.v1.AppleDeveloperId getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AppleDeveloperId parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AppleDeveloperId parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1020,4 +921,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.AppleDeveloperId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperIdOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperIdOrBuilder.java similarity index 62% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperIdOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperIdOrBuilder.java index e1c2b7e9901b..cc8e7288535b 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperIdOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AppleDeveloperIdOrBuilder.java @@ -1,110 +1,75 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface AppleDeveloperIdOrBuilder - extends +public interface AppleDeveloperIdOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.AppleDeveloperId) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Input only. A private key (downloaded as a text file with a .p8
    * file extension) generated for your Apple Developer account. Ensure that
    * Apple DeviceCheck is enabled for the private key.
    * 
* - * - * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The privateKey. */ java.lang.String getPrivateKey(); /** - * - * *
    * Required. Input only. A private key (downloaded as a text file with a .p8
    * file extension) generated for your Apple Developer account. Ensure that
    * Apple DeviceCheck is enabled for the private key.
    * 
* - * - * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string private_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for privateKey. */ - com.google.protobuf.ByteString getPrivateKeyBytes(); + com.google.protobuf.ByteString + getPrivateKeyBytes(); /** - * - * *
    * Required. The Apple developer key ID (10-character string).
    * 
* * string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The keyId. */ java.lang.String getKeyId(); /** - * - * *
    * Required. The Apple developer key ID (10-character string).
    * 
* * string key_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for keyId. */ - com.google.protobuf.ByteString getKeyIdBytes(); + com.google.protobuf.ByteString + getKeyIdBytes(); /** - * - * *
    * Required. The Apple team ID (10-character string) owning the provisioning
    * profile used to build your application.
    * 
* * string team_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The teamId. */ java.lang.String getTeamId(); /** - * - * *
    * Required. The Apple team ID (10-character string) owning the provisioning
    * profile used to build your application.
    * 
* * string team_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for teamId. */ - com.google.protobuf.ByteString getTeamIdBytes(); + com.google.protobuf.ByteString + getTeamIdBytes(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Assessment.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Assessment.java similarity index 58% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Assessment.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Assessment.java index 56a5f95f2819..d75230efca95 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Assessment.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Assessment.java @@ -1,81 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * A reCAPTCHA Enterprise assessment resource.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.Assessment} */ -public final class Assessment extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Assessment extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.Assessment) AssessmentOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Assessment.newBuilder() to construct. private Assessment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Assessment() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Assessment(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_Assessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Assessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_Assessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Assessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.Assessment.class, - com.google.recaptchaenterprise.v1.Assessment.Builder.class); + com.google.recaptchaenterprise.v1.Assessment.class, com.google.recaptchaenterprise.v1.Assessment.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. The resource name for the Assessment in the format
    * `projects/{project}/assessments/{assessment}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -84,30 +61,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name for the Assessment in the format
    * `projects/{project}/assessments/{assessment}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -118,16 +95,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int EVENT_FIELD_NUMBER = 2; private com.google.recaptchaenterprise.v1.Event event_; /** - * - * *
    * Optional. The event being assessed.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the event field is set. */ @java.lang.Override @@ -135,16 +107,11 @@ public boolean hasEvent() { return event_ != null; } /** - * - * *
    * Optional. The event being assessed.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The event. */ @java.lang.Override @@ -152,15 +119,11 @@ public com.google.recaptchaenterprise.v1.Event getEvent() { return event_ == null ? com.google.recaptchaenterprise.v1.Event.getDefaultInstance() : event_; } /** - * - * *
    * Optional. The event being assessed.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.recaptchaenterprise.v1.EventOrBuilder getEventOrBuilder() { @@ -170,16 +133,11 @@ public com.google.recaptchaenterprise.v1.EventOrBuilder getEventOrBuilder() { public static final int RISK_ANALYSIS_FIELD_NUMBER = 3; private com.google.recaptchaenterprise.v1.RiskAnalysis riskAnalysis_; /** - * - * *
    * Output only. The risk analysis result for the event being assessed.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the riskAnalysis field is set. */ @java.lang.Override @@ -187,55 +145,37 @@ public boolean hasRiskAnalysis() { return riskAnalysis_ != null; } /** - * - * *
    * Output only. The risk analysis result for the event being assessed.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The riskAnalysis. */ @java.lang.Override public com.google.recaptchaenterprise.v1.RiskAnalysis getRiskAnalysis() { - return riskAnalysis_ == null - ? com.google.recaptchaenterprise.v1.RiskAnalysis.getDefaultInstance() - : riskAnalysis_; + return riskAnalysis_ == null ? com.google.recaptchaenterprise.v1.RiskAnalysis.getDefaultInstance() : riskAnalysis_; } /** - * - * *
    * Output only. The risk analysis result for the event being assessed.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.recaptchaenterprise.v1.RiskAnalysisOrBuilder getRiskAnalysisOrBuilder() { - return riskAnalysis_ == null - ? com.google.recaptchaenterprise.v1.RiskAnalysis.getDefaultInstance() - : riskAnalysis_; + return riskAnalysis_ == null ? com.google.recaptchaenterprise.v1.RiskAnalysis.getDefaultInstance() : riskAnalysis_; } public static final int TOKEN_PROPERTIES_FIELD_NUMBER = 4; private com.google.recaptchaenterprise.v1.TokenProperties tokenProperties_; /** - * - * *
    * Output only. Properties of the provided event token.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the tokenProperties field is set. */ @java.lang.Override @@ -243,56 +183,38 @@ public boolean hasTokenProperties() { return tokenProperties_ != null; } /** - * - * *
    * Output only. Properties of the provided event token.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The tokenProperties. */ @java.lang.Override public com.google.recaptchaenterprise.v1.TokenProperties getTokenProperties() { - return tokenProperties_ == null - ? com.google.recaptchaenterprise.v1.TokenProperties.getDefaultInstance() - : tokenProperties_; + return tokenProperties_ == null ? com.google.recaptchaenterprise.v1.TokenProperties.getDefaultInstance() : tokenProperties_; } /** - * - * *
    * Output only. Properties of the provided event token.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.recaptchaenterprise.v1.TokenPropertiesOrBuilder getTokenPropertiesOrBuilder() { - return tokenProperties_ == null - ? com.google.recaptchaenterprise.v1.TokenProperties.getDefaultInstance() - : tokenProperties_; + return tokenProperties_ == null ? com.google.recaptchaenterprise.v1.TokenProperties.getDefaultInstance() : tokenProperties_; } public static final int ACCOUNT_VERIFICATION_FIELD_NUMBER = 5; private com.google.recaptchaenterprise.v1.AccountVerificationInfo accountVerification_; /** - * - * *
    * Optional. Account verification information for identity verification. The
    * assessment event must include a token and site key to use this feature.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the accountVerification field is set. */ @java.lang.Override @@ -300,59 +222,40 @@ public boolean hasAccountVerification() { return accountVerification_ != null; } /** - * - * *
    * Optional. Account verification information for identity verification. The
    * assessment event must include a token and site key to use this feature.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The accountVerification. */ @java.lang.Override public com.google.recaptchaenterprise.v1.AccountVerificationInfo getAccountVerification() { - return accountVerification_ == null - ? com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDefaultInstance() - : accountVerification_; + return accountVerification_ == null ? com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDefaultInstance() : accountVerification_; } /** - * - * *
    * Optional. Account verification information for identity verification. The
    * assessment event must include a token and site key to use this feature.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder - getAccountVerificationOrBuilder() { - return accountVerification_ == null - ? com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDefaultInstance() - : accountVerification_; + public com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder getAccountVerificationOrBuilder() { + return accountVerification_ == null ? com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDefaultInstance() : accountVerification_; } public static final int ACCOUNT_DEFENDER_ASSESSMENT_FIELD_NUMBER = 6; private com.google.recaptchaenterprise.v1.AccountDefenderAssessment accountDefenderAssessment_; /** - * - * *
    * Output only. Assessment returned by account defender when a
    * hashed_account_id is provided.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the accountDefenderAssessment field is set. */ @java.lang.Override @@ -360,62 +263,41 @@ public boolean hasAccountDefenderAssessment() { return accountDefenderAssessment_ != null; } /** - * - * *
    * Output only. Assessment returned by account defender when a
    * hashed_account_id is provided.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The accountDefenderAssessment. */ @java.lang.Override - public com.google.recaptchaenterprise.v1.AccountDefenderAssessment - getAccountDefenderAssessment() { - return accountDefenderAssessment_ == null - ? com.google.recaptchaenterprise.v1.AccountDefenderAssessment.getDefaultInstance() - : accountDefenderAssessment_; + public com.google.recaptchaenterprise.v1.AccountDefenderAssessment getAccountDefenderAssessment() { + return accountDefenderAssessment_ == null ? com.google.recaptchaenterprise.v1.AccountDefenderAssessment.getDefaultInstance() : accountDefenderAssessment_; } /** - * - * *
    * Output only. Assessment returned by account defender when a
    * hashed_account_id is provided.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder - getAccountDefenderAssessmentOrBuilder() { - return accountDefenderAssessment_ == null - ? com.google.recaptchaenterprise.v1.AccountDefenderAssessment.getDefaultInstance() - : accountDefenderAssessment_; + public com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder getAccountDefenderAssessmentOrBuilder() { + return accountDefenderAssessment_ == null ? com.google.recaptchaenterprise.v1.AccountDefenderAssessment.getDefaultInstance() : accountDefenderAssessment_; } public static final int PRIVATE_PASSWORD_LEAK_VERIFICATION_FIELD_NUMBER = 8; - private com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification - privatePasswordLeakVerification_; + private com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification privatePasswordLeakVerification_; /** - * - * *
    * Optional. The private password leak verification field contains the
    * parameters that are used to to check for leaks privately without sharing
    * user credentials.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the privatePasswordLeakVerification field is set. */ @java.lang.Override @@ -423,62 +305,42 @@ public boolean hasPrivatePasswordLeakVerification() { return privatePasswordLeakVerification_ != null; } /** - * - * *
    * Optional. The private password leak verification field contains the
    * parameters that are used to to check for leaks privately without sharing
    * user credentials.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The privatePasswordLeakVerification. */ @java.lang.Override - public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification - getPrivatePasswordLeakVerification() { - return privatePasswordLeakVerification_ == null - ? com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.getDefaultInstance() - : privatePasswordLeakVerification_; + public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification getPrivatePasswordLeakVerification() { + return privatePasswordLeakVerification_ == null ? com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.getDefaultInstance() : privatePasswordLeakVerification_; } /** - * - * *
    * Optional. The private password leak verification field contains the
    * parameters that are used to to check for leaks privately without sharing
    * user credentials.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder - getPrivatePasswordLeakVerificationOrBuilder() { - return privatePasswordLeakVerification_ == null - ? com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.getDefaultInstance() - : privatePasswordLeakVerification_; + public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder getPrivatePasswordLeakVerificationOrBuilder() { + return privatePasswordLeakVerification_ == null ? com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.getDefaultInstance() : privatePasswordLeakVerification_; } public static final int FIREWALL_POLICY_ASSESSMENT_FIELD_NUMBER = 10; private com.google.recaptchaenterprise.v1.FirewallPolicyAssessment firewallPolicyAssessment_; /** - * - * *
    * Output only. Assessment returned when firewall policies belonging to the
    * project are evaluated using the field firewall_policy_evaluation.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the firewallPolicyAssessment field is set. */ @java.lang.Override @@ -486,59 +348,40 @@ public boolean hasFirewallPolicyAssessment() { return firewallPolicyAssessment_ != null; } /** - * - * *
    * Output only. Assessment returned when firewall policies belonging to the
    * project are evaluated using the field firewall_policy_evaluation.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The firewallPolicyAssessment. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallPolicyAssessment getFirewallPolicyAssessment() { - return firewallPolicyAssessment_ == null - ? com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.getDefaultInstance() - : firewallPolicyAssessment_; + return firewallPolicyAssessment_ == null ? com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.getDefaultInstance() : firewallPolicyAssessment_; } /** - * - * *
    * Output only. Assessment returned when firewall policies belonging to the
    * project are evaluated using the field firewall_policy_evaluation.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder - getFirewallPolicyAssessmentOrBuilder() { - return firewallPolicyAssessment_ == null - ? com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.getDefaultInstance() - : firewallPolicyAssessment_; + public com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder getFirewallPolicyAssessmentOrBuilder() { + return firewallPolicyAssessment_ == null ? com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.getDefaultInstance() : firewallPolicyAssessment_; } public static final int FRAUD_PREVENTION_ASSESSMENT_FIELD_NUMBER = 11; private com.google.recaptchaenterprise.v1.FraudPreventionAssessment fraudPreventionAssessment_; /** - * - * *
    * Output only. Assessment returned by Fraud Prevention when TransactionData
    * is provided.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the fraudPreventionAssessment field is set. */ @java.lang.Override @@ -546,60 +389,40 @@ public boolean hasFraudPreventionAssessment() { return fraudPreventionAssessment_ != null; } /** - * - * *
    * Output only. Assessment returned by Fraud Prevention when TransactionData
    * is provided.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The fraudPreventionAssessment. */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment - getFraudPreventionAssessment() { - return fraudPreventionAssessment_ == null - ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.getDefaultInstance() - : fraudPreventionAssessment_; + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment getFraudPreventionAssessment() { + return fraudPreventionAssessment_ == null ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.getDefaultInstance() : fraudPreventionAssessment_; } /** - * - * *
    * Output only. Assessment returned by Fraud Prevention when TransactionData
    * is provided.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder - getFraudPreventionAssessmentOrBuilder() { - return fraudPreventionAssessment_ == null - ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.getDefaultInstance() - : fraudPreventionAssessment_; + public com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder getFraudPreventionAssessmentOrBuilder() { + return fraudPreventionAssessment_ == null ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.getDefaultInstance() : fraudPreventionAssessment_; } public static final int FRAUD_SIGNALS_FIELD_NUMBER = 13; private com.google.recaptchaenterprise.v1.FraudSignals fraudSignals_; /** - * - * *
    * Output only. Fraud Signals specific to the users involved in a payment
    * transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the fraudSignals field is set. */ @java.lang.Override @@ -607,46 +430,32 @@ public boolean hasFraudSignals() { return fraudSignals_ != null; } /** - * - * *
    * Output only. Fraud Signals specific to the users involved in a payment
    * transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The fraudSignals. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FraudSignals getFraudSignals() { - return fraudSignals_ == null - ? com.google.recaptchaenterprise.v1.FraudSignals.getDefaultInstance() - : fraudSignals_; + return fraudSignals_ == null ? com.google.recaptchaenterprise.v1.FraudSignals.getDefaultInstance() : fraudSignals_; } /** - * - * *
    * Output only. Fraud Signals specific to the users involved in a payment
    * transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.recaptchaenterprise.v1.FraudSignalsOrBuilder getFraudSignalsOrBuilder() { - return fraudSignals_ == null - ? com.google.recaptchaenterprise.v1.FraudSignals.getDefaultInstance() - : fraudSignals_; + return fraudSignals_ == null ? com.google.recaptchaenterprise.v1.FraudSignals.getDefaultInstance() : fraudSignals_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -658,7 +467,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -702,39 +512,40 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (event_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEvent()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEvent()); } if (riskAnalysis_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRiskAnalysis()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRiskAnalysis()); } if (tokenProperties_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTokenProperties()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTokenProperties()); } if (accountVerification_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAccountVerification()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getAccountVerification()); } if (accountDefenderAssessment_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, getAccountDefenderAssessment()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getAccountDefenderAssessment()); } if (privatePasswordLeakVerification_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, getPrivatePasswordLeakVerification()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getPrivatePasswordLeakVerification()); } if (firewallPolicyAssessment_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, getFirewallPolicyAssessment()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getFirewallPolicyAssessment()); } if (fraudPreventionAssessment_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, getFraudPreventionAssessment()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getFraudPreventionAssessment()); } if (fraudSignals_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getFraudSignals()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getFraudSignals()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -744,54 +555,59 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.Assessment)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.Assessment other = - (com.google.recaptchaenterprise.v1.Assessment) obj; + com.google.recaptchaenterprise.v1.Assessment other = (com.google.recaptchaenterprise.v1.Assessment) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasEvent() != other.hasEvent()) return false; if (hasEvent()) { - if (!getEvent().equals(other.getEvent())) return false; + if (!getEvent() + .equals(other.getEvent())) return false; } if (hasRiskAnalysis() != other.hasRiskAnalysis()) return false; if (hasRiskAnalysis()) { - if (!getRiskAnalysis().equals(other.getRiskAnalysis())) return false; + if (!getRiskAnalysis() + .equals(other.getRiskAnalysis())) return false; } if (hasTokenProperties() != other.hasTokenProperties()) return false; if (hasTokenProperties()) { - if (!getTokenProperties().equals(other.getTokenProperties())) return false; + if (!getTokenProperties() + .equals(other.getTokenProperties())) return false; } if (hasAccountVerification() != other.hasAccountVerification()) return false; if (hasAccountVerification()) { - if (!getAccountVerification().equals(other.getAccountVerification())) return false; + if (!getAccountVerification() + .equals(other.getAccountVerification())) return false; } if (hasAccountDefenderAssessment() != other.hasAccountDefenderAssessment()) return false; if (hasAccountDefenderAssessment()) { - if (!getAccountDefenderAssessment().equals(other.getAccountDefenderAssessment())) - return false; + if (!getAccountDefenderAssessment() + .equals(other.getAccountDefenderAssessment())) return false; } - if (hasPrivatePasswordLeakVerification() != other.hasPrivatePasswordLeakVerification()) - return false; + if (hasPrivatePasswordLeakVerification() != other.hasPrivatePasswordLeakVerification()) return false; if (hasPrivatePasswordLeakVerification()) { - if (!getPrivatePasswordLeakVerification().equals(other.getPrivatePasswordLeakVerification())) - return false; + if (!getPrivatePasswordLeakVerification() + .equals(other.getPrivatePasswordLeakVerification())) return false; } if (hasFirewallPolicyAssessment() != other.hasFirewallPolicyAssessment()) return false; if (hasFirewallPolicyAssessment()) { - if (!getFirewallPolicyAssessment().equals(other.getFirewallPolicyAssessment())) return false; + if (!getFirewallPolicyAssessment() + .equals(other.getFirewallPolicyAssessment())) return false; } if (hasFraudPreventionAssessment() != other.hasFraudPreventionAssessment()) return false; if (hasFraudPreventionAssessment()) { - if (!getFraudPreventionAssessment().equals(other.getFraudPreventionAssessment())) - return false; + if (!getFraudPreventionAssessment() + .equals(other.getFraudPreventionAssessment())) return false; } if (hasFraudSignals() != other.hasFraudSignals()) return false; if (hasFraudSignals()) { - if (!getFraudSignals().equals(other.getFraudSignals())) return false; + if (!getFraudSignals() + .equals(other.getFraudSignals())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -847,136 +663,132 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.Assessment parseFrom(java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.Assessment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.Assessment parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.Assessment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.Assessment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.Assessment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.Assessment parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.Assessment parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.Assessment parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.Assessment parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.Assessment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.Assessment parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.Assessment parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.Assessment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.Assessment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A reCAPTCHA Enterprise assessment resource.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.Assessment} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.Assessment) com.google.recaptchaenterprise.v1.AssessmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_Assessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Assessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_Assessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Assessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.Assessment.class, - com.google.recaptchaenterprise.v1.Assessment.Builder.class); + com.google.recaptchaenterprise.v1.Assessment.class, com.google.recaptchaenterprise.v1.Assessment.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.Assessment.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1031,9 +843,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_Assessment_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Assessment_descriptor; } @java.lang.Override @@ -1052,11 +864,8 @@ public com.google.recaptchaenterprise.v1.Assessment build() { @java.lang.Override public com.google.recaptchaenterprise.v1.Assessment buildPartial() { - com.google.recaptchaenterprise.v1.Assessment result = - new com.google.recaptchaenterprise.v1.Assessment(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.Assessment result = new com.google.recaptchaenterprise.v1.Assessment(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1067,49 +876,49 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.Assessment result) result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.event_ = eventBuilder_ == null ? event_ : eventBuilder_.build(); + result.event_ = eventBuilder_ == null + ? event_ + : eventBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.riskAnalysis_ = - riskAnalysisBuilder_ == null ? riskAnalysis_ : riskAnalysisBuilder_.build(); + result.riskAnalysis_ = riskAnalysisBuilder_ == null + ? riskAnalysis_ + : riskAnalysisBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.tokenProperties_ = - tokenPropertiesBuilder_ == null ? tokenProperties_ : tokenPropertiesBuilder_.build(); + result.tokenProperties_ = tokenPropertiesBuilder_ == null + ? tokenProperties_ + : tokenPropertiesBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.accountVerification_ = - accountVerificationBuilder_ == null - ? accountVerification_ - : accountVerificationBuilder_.build(); + result.accountVerification_ = accountVerificationBuilder_ == null + ? accountVerification_ + : accountVerificationBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.accountDefenderAssessment_ = - accountDefenderAssessmentBuilder_ == null - ? accountDefenderAssessment_ - : accountDefenderAssessmentBuilder_.build(); + result.accountDefenderAssessment_ = accountDefenderAssessmentBuilder_ == null + ? accountDefenderAssessment_ + : accountDefenderAssessmentBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.privatePasswordLeakVerification_ = - privatePasswordLeakVerificationBuilder_ == null - ? privatePasswordLeakVerification_ - : privatePasswordLeakVerificationBuilder_.build(); + result.privatePasswordLeakVerification_ = privatePasswordLeakVerificationBuilder_ == null + ? privatePasswordLeakVerification_ + : privatePasswordLeakVerificationBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { - result.firewallPolicyAssessment_ = - firewallPolicyAssessmentBuilder_ == null - ? firewallPolicyAssessment_ - : firewallPolicyAssessmentBuilder_.build(); + result.firewallPolicyAssessment_ = firewallPolicyAssessmentBuilder_ == null + ? firewallPolicyAssessment_ + : firewallPolicyAssessmentBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { - result.fraudPreventionAssessment_ = - fraudPreventionAssessmentBuilder_ == null - ? fraudPreventionAssessment_ - : fraudPreventionAssessmentBuilder_.build(); + result.fraudPreventionAssessment_ = fraudPreventionAssessmentBuilder_ == null + ? fraudPreventionAssessment_ + : fraudPreventionAssessmentBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { - result.fraudSignals_ = - fraudSignalsBuilder_ == null ? fraudSignals_ : fraudSignalsBuilder_.build(); + result.fraudSignals_ = fraudSignalsBuilder_ == null + ? fraudSignals_ + : fraudSignalsBuilder_.build(); } } @@ -1117,39 +926,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.Assessment result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.Assessment) { - return mergeFrom((com.google.recaptchaenterprise.v1.Assessment) other); + return mergeFrom((com.google.recaptchaenterprise.v1.Assessment)other); } else { super.mergeFrom(other); return this; @@ -1216,79 +1024,80 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEventFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getRiskAnalysisFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getTokenPropertiesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage( - getAccountVerificationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage( - getAccountDefenderAssessmentFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 66: - { - input.readMessage( - getPrivatePasswordLeakVerificationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 82: - { - input.readMessage( - getFirewallPolicyAssessmentFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 82 - case 90: - { - input.readMessage( - getFraudPreventionAssessmentFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 90 - case 106: - { - input.readMessage(getFraudSignalsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 106 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEventFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getRiskAnalysisFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getTokenPropertiesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getAccountVerificationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getAccountDefenderAssessmentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 66: { + input.readMessage( + getPrivatePasswordLeakVerificationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 82: { + input.readMessage( + getFirewallPolicyAssessmentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 82 + case 90: { + input.readMessage( + getFraudPreventionAssessmentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 90 + case 106: { + input.readMessage( + getFraudSignalsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 106 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1298,26 +1107,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name for the Assessment in the format
      * `projects/{project}/assessments/{assessment}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1326,22 +1132,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name for the Assessment in the format
      * `projects/{project}/assessments/{assessment}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1349,37 +1154,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name for the Assessment in the format
      * `projects/{project}/assessments/{assessment}`.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The resource name for the Assessment in the format
      * `projects/{project}/assessments/{assessment}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1389,22 +1187,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource name for the Assessment in the format
      * `projects/{project}/assessments/{assessment}`.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1414,58 +1208,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.recaptchaenterprise.v1.Event event_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.Event, - com.google.recaptchaenterprise.v1.Event.Builder, - com.google.recaptchaenterprise.v1.EventOrBuilder> - eventBuilder_; + com.google.recaptchaenterprise.v1.Event, com.google.recaptchaenterprise.v1.Event.Builder, com.google.recaptchaenterprise.v1.EventOrBuilder> eventBuilder_; /** - * - * *
      * Optional. The event being assessed.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the event field is set. */ public boolean hasEvent() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Optional. The event being assessed.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The event. */ public com.google.recaptchaenterprise.v1.Event getEvent() { if (eventBuilder_ == null) { - return event_ == null - ? com.google.recaptchaenterprise.v1.Event.getDefaultInstance() - : event_; + return event_ == null ? com.google.recaptchaenterprise.v1.Event.getDefaultInstance() : event_; } else { return eventBuilder_.getMessage(); } } /** - * - * *
      * Optional. The event being assessed.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEvent(com.google.recaptchaenterprise.v1.Event value) { if (eventBuilder_ == null) { @@ -1481,17 +1256,14 @@ public Builder setEvent(com.google.recaptchaenterprise.v1.Event value) { return this; } /** - * - * *
      * Optional. The event being assessed.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setEvent(com.google.recaptchaenterprise.v1.Event.Builder builderForValue) { + public Builder setEvent( + com.google.recaptchaenterprise.v1.Event.Builder builderForValue) { if (eventBuilder_ == null) { event_ = builderForValue.build(); } else { @@ -1502,21 +1274,17 @@ public Builder setEvent(com.google.recaptchaenterprise.v1.Event.Builder builderF return this; } /** - * - * *
      * Optional. The event being assessed.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeEvent(com.google.recaptchaenterprise.v1.Event value) { if (eventBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && event_ != null - && event_ != com.google.recaptchaenterprise.v1.Event.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + event_ != null && + event_ != com.google.recaptchaenterprise.v1.Event.getDefaultInstance()) { getEventBuilder().mergeFrom(value); } else { event_ = value; @@ -1529,15 +1297,11 @@ public Builder mergeEvent(com.google.recaptchaenterprise.v1.Event value) { return this; } /** - * - * *
      * Optional. The event being assessed.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearEvent() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1550,15 +1314,11 @@ public Builder clearEvent() { return this; } /** - * - * *
      * Optional. The event being assessed.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.Event.Builder getEventBuilder() { bitField0_ |= 0x00000002; @@ -1566,48 +1326,36 @@ public com.google.recaptchaenterprise.v1.Event.Builder getEventBuilder() { return getEventFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The event being assessed.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.EventOrBuilder getEventOrBuilder() { if (eventBuilder_ != null) { return eventBuilder_.getMessageOrBuilder(); } else { - return event_ == null - ? com.google.recaptchaenterprise.v1.Event.getDefaultInstance() - : event_; + return event_ == null ? + com.google.recaptchaenterprise.v1.Event.getDefaultInstance() : event_; } } /** - * - * *
      * Optional. The event being assessed.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.Event, - com.google.recaptchaenterprise.v1.Event.Builder, - com.google.recaptchaenterprise.v1.EventOrBuilder> + com.google.recaptchaenterprise.v1.Event, com.google.recaptchaenterprise.v1.Event.Builder, com.google.recaptchaenterprise.v1.EventOrBuilder> getEventFieldBuilder() { if (eventBuilder_ == null) { - eventBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.Event, - com.google.recaptchaenterprise.v1.Event.Builder, - com.google.recaptchaenterprise.v1.EventOrBuilder>( - getEvent(), getParentForChildren(), isClean()); + eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.Event, com.google.recaptchaenterprise.v1.Event.Builder, com.google.recaptchaenterprise.v1.EventOrBuilder>( + getEvent(), + getParentForChildren(), + isClean()); event_ = null; } return eventBuilder_; @@ -1615,58 +1363,39 @@ public com.google.recaptchaenterprise.v1.EventOrBuilder getEventOrBuilder() { private com.google.recaptchaenterprise.v1.RiskAnalysis riskAnalysis_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.RiskAnalysis, - com.google.recaptchaenterprise.v1.RiskAnalysis.Builder, - com.google.recaptchaenterprise.v1.RiskAnalysisOrBuilder> - riskAnalysisBuilder_; + com.google.recaptchaenterprise.v1.RiskAnalysis, com.google.recaptchaenterprise.v1.RiskAnalysis.Builder, com.google.recaptchaenterprise.v1.RiskAnalysisOrBuilder> riskAnalysisBuilder_; /** - * - * *
      * Output only. The risk analysis result for the event being assessed.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the riskAnalysis field is set. */ public boolean hasRiskAnalysis() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The risk analysis result for the event being assessed.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The riskAnalysis. */ public com.google.recaptchaenterprise.v1.RiskAnalysis getRiskAnalysis() { if (riskAnalysisBuilder_ == null) { - return riskAnalysis_ == null - ? com.google.recaptchaenterprise.v1.RiskAnalysis.getDefaultInstance() - : riskAnalysis_; + return riskAnalysis_ == null ? com.google.recaptchaenterprise.v1.RiskAnalysis.getDefaultInstance() : riskAnalysis_; } else { return riskAnalysisBuilder_.getMessage(); } } /** - * - * *
      * Output only. The risk analysis result for the event being assessed.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRiskAnalysis(com.google.recaptchaenterprise.v1.RiskAnalysis value) { if (riskAnalysisBuilder_ == null) { @@ -1682,15 +1411,11 @@ public Builder setRiskAnalysis(com.google.recaptchaenterprise.v1.RiskAnalysis va return this; } /** - * - * *
      * Output only. The risk analysis result for the event being assessed.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRiskAnalysis( com.google.recaptchaenterprise.v1.RiskAnalysis.Builder builderForValue) { @@ -1704,22 +1429,17 @@ public Builder setRiskAnalysis( return this; } /** - * - * *
      * Output only. The risk analysis result for the event being assessed.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeRiskAnalysis(com.google.recaptchaenterprise.v1.RiskAnalysis value) { if (riskAnalysisBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && riskAnalysis_ != null - && riskAnalysis_ - != com.google.recaptchaenterprise.v1.RiskAnalysis.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + riskAnalysis_ != null && + riskAnalysis_ != com.google.recaptchaenterprise.v1.RiskAnalysis.getDefaultInstance()) { getRiskAnalysisBuilder().mergeFrom(value); } else { riskAnalysis_ = value; @@ -1732,15 +1452,11 @@ public Builder mergeRiskAnalysis(com.google.recaptchaenterprise.v1.RiskAnalysis return this; } /** - * - * *
      * Output only. The risk analysis result for the event being assessed.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearRiskAnalysis() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1753,15 +1469,11 @@ public Builder clearRiskAnalysis() { return this; } /** - * - * *
      * Output only. The risk analysis result for the event being assessed.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.recaptchaenterprise.v1.RiskAnalysis.Builder getRiskAnalysisBuilder() { bitField0_ |= 0x00000004; @@ -1769,48 +1481,36 @@ public com.google.recaptchaenterprise.v1.RiskAnalysis.Builder getRiskAnalysisBui return getRiskAnalysisFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The risk analysis result for the event being assessed.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.recaptchaenterprise.v1.RiskAnalysisOrBuilder getRiskAnalysisOrBuilder() { if (riskAnalysisBuilder_ != null) { return riskAnalysisBuilder_.getMessageOrBuilder(); } else { - return riskAnalysis_ == null - ? com.google.recaptchaenterprise.v1.RiskAnalysis.getDefaultInstance() - : riskAnalysis_; + return riskAnalysis_ == null ? + com.google.recaptchaenterprise.v1.RiskAnalysis.getDefaultInstance() : riskAnalysis_; } } /** - * - * *
      * Output only. The risk analysis result for the event being assessed.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.RiskAnalysis, - com.google.recaptchaenterprise.v1.RiskAnalysis.Builder, - com.google.recaptchaenterprise.v1.RiskAnalysisOrBuilder> + com.google.recaptchaenterprise.v1.RiskAnalysis, com.google.recaptchaenterprise.v1.RiskAnalysis.Builder, com.google.recaptchaenterprise.v1.RiskAnalysisOrBuilder> getRiskAnalysisFieldBuilder() { if (riskAnalysisBuilder_ == null) { - riskAnalysisBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.RiskAnalysis, - com.google.recaptchaenterprise.v1.RiskAnalysis.Builder, - com.google.recaptchaenterprise.v1.RiskAnalysisOrBuilder>( - getRiskAnalysis(), getParentForChildren(), isClean()); + riskAnalysisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.RiskAnalysis, com.google.recaptchaenterprise.v1.RiskAnalysis.Builder, com.google.recaptchaenterprise.v1.RiskAnalysisOrBuilder>( + getRiskAnalysis(), + getParentForChildren(), + isClean()); riskAnalysis_ = null; } return riskAnalysisBuilder_; @@ -1818,58 +1518,39 @@ public com.google.recaptchaenterprise.v1.RiskAnalysisOrBuilder getRiskAnalysisOr private com.google.recaptchaenterprise.v1.TokenProperties tokenProperties_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TokenProperties, - com.google.recaptchaenterprise.v1.TokenProperties.Builder, - com.google.recaptchaenterprise.v1.TokenPropertiesOrBuilder> - tokenPropertiesBuilder_; + com.google.recaptchaenterprise.v1.TokenProperties, com.google.recaptchaenterprise.v1.TokenProperties.Builder, com.google.recaptchaenterprise.v1.TokenPropertiesOrBuilder> tokenPropertiesBuilder_; /** - * - * *
      * Output only. Properties of the provided event token.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the tokenProperties field is set. */ public boolean hasTokenProperties() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Output only. Properties of the provided event token.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The tokenProperties. */ public com.google.recaptchaenterprise.v1.TokenProperties getTokenProperties() { if (tokenPropertiesBuilder_ == null) { - return tokenProperties_ == null - ? com.google.recaptchaenterprise.v1.TokenProperties.getDefaultInstance() - : tokenProperties_; + return tokenProperties_ == null ? com.google.recaptchaenterprise.v1.TokenProperties.getDefaultInstance() : tokenProperties_; } else { return tokenPropertiesBuilder_.getMessage(); } } /** - * - * *
      * Output only. Properties of the provided event token.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTokenProperties(com.google.recaptchaenterprise.v1.TokenProperties value) { if (tokenPropertiesBuilder_ == null) { @@ -1885,15 +1566,11 @@ public Builder setTokenProperties(com.google.recaptchaenterprise.v1.TokenPropert return this; } /** - * - * *
      * Output only. Properties of the provided event token.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTokenProperties( com.google.recaptchaenterprise.v1.TokenProperties.Builder builderForValue) { @@ -1907,22 +1584,17 @@ public Builder setTokenProperties( return this; } /** - * - * *
      * Output only. Properties of the provided event token.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeTokenProperties(com.google.recaptchaenterprise.v1.TokenProperties value) { if (tokenPropertiesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && tokenProperties_ != null - && tokenProperties_ - != com.google.recaptchaenterprise.v1.TokenProperties.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + tokenProperties_ != null && + tokenProperties_ != com.google.recaptchaenterprise.v1.TokenProperties.getDefaultInstance()) { getTokenPropertiesBuilder().mergeFrom(value); } else { tokenProperties_ = value; @@ -1935,15 +1607,11 @@ public Builder mergeTokenProperties(com.google.recaptchaenterprise.v1.TokenPrope return this; } /** - * - * *
      * Output only. Properties of the provided event token.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearTokenProperties() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1956,15 +1624,11 @@ public Builder clearTokenProperties() { return this; } /** - * - * *
      * Output only. Properties of the provided event token.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.recaptchaenterprise.v1.TokenProperties.Builder getTokenPropertiesBuilder() { bitField0_ |= 0x00000008; @@ -1972,49 +1636,36 @@ public com.google.recaptchaenterprise.v1.TokenProperties.Builder getTokenPropert return getTokenPropertiesFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Properties of the provided event token.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.recaptchaenterprise.v1.TokenPropertiesOrBuilder - getTokenPropertiesOrBuilder() { + public com.google.recaptchaenterprise.v1.TokenPropertiesOrBuilder getTokenPropertiesOrBuilder() { if (tokenPropertiesBuilder_ != null) { return tokenPropertiesBuilder_.getMessageOrBuilder(); } else { - return tokenProperties_ == null - ? com.google.recaptchaenterprise.v1.TokenProperties.getDefaultInstance() - : tokenProperties_; + return tokenProperties_ == null ? + com.google.recaptchaenterprise.v1.TokenProperties.getDefaultInstance() : tokenProperties_; } } /** - * - * *
      * Output only. Properties of the provided event token.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TokenProperties, - com.google.recaptchaenterprise.v1.TokenProperties.Builder, - com.google.recaptchaenterprise.v1.TokenPropertiesOrBuilder> + com.google.recaptchaenterprise.v1.TokenProperties, com.google.recaptchaenterprise.v1.TokenProperties.Builder, com.google.recaptchaenterprise.v1.TokenPropertiesOrBuilder> getTokenPropertiesFieldBuilder() { if (tokenPropertiesBuilder_ == null) { - tokenPropertiesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TokenProperties, - com.google.recaptchaenterprise.v1.TokenProperties.Builder, - com.google.recaptchaenterprise.v1.TokenPropertiesOrBuilder>( - getTokenProperties(), getParentForChildren(), isClean()); + tokenPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.TokenProperties, com.google.recaptchaenterprise.v1.TokenProperties.Builder, com.google.recaptchaenterprise.v1.TokenPropertiesOrBuilder>( + getTokenProperties(), + getParentForChildren(), + isClean()); tokenProperties_ = null; } return tokenPropertiesBuilder_; @@ -2022,64 +1673,44 @@ public com.google.recaptchaenterprise.v1.TokenProperties.Builder getTokenPropert private com.google.recaptchaenterprise.v1.AccountVerificationInfo accountVerification_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.AccountVerificationInfo, - com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder, - com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder> - accountVerificationBuilder_; + com.google.recaptchaenterprise.v1.AccountVerificationInfo, com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder, com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder> accountVerificationBuilder_; /** - * - * *
      * Optional. Account verification information for identity verification. The
      * assessment event must include a token and site key to use this feature.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the accountVerification field is set. */ public boolean hasAccountVerification() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Optional. Account verification information for identity verification. The
      * assessment event must include a token and site key to use this feature.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The accountVerification. */ public com.google.recaptchaenterprise.v1.AccountVerificationInfo getAccountVerification() { if (accountVerificationBuilder_ == null) { - return accountVerification_ == null - ? com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDefaultInstance() - : accountVerification_; + return accountVerification_ == null ? com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDefaultInstance() : accountVerification_; } else { return accountVerificationBuilder_.getMessage(); } } /** - * - * *
      * Optional. Account verification information for identity verification. The
      * assessment event must include a token and site key to use this feature.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setAccountVerification( - com.google.recaptchaenterprise.v1.AccountVerificationInfo value) { + public Builder setAccountVerification(com.google.recaptchaenterprise.v1.AccountVerificationInfo value) { if (accountVerificationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2093,16 +1724,12 @@ public Builder setAccountVerification( return this; } /** - * - * *
      * Optional. Account verification information for identity verification. The
      * assessment event must include a token and site key to use this feature.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAccountVerification( com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder builderForValue) { @@ -2116,24 +1743,18 @@ public Builder setAccountVerification( return this; } /** - * - * *
      * Optional. Account verification information for identity verification. The
      * assessment event must include a token and site key to use this feature.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeAccountVerification( - com.google.recaptchaenterprise.v1.AccountVerificationInfo value) { + public Builder mergeAccountVerification(com.google.recaptchaenterprise.v1.AccountVerificationInfo value) { if (accountVerificationBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && accountVerification_ != null - && accountVerification_ - != com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + accountVerification_ != null && + accountVerification_ != com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDefaultInstance()) { getAccountVerificationBuilder().mergeFrom(value); } else { accountVerification_ = value; @@ -2146,16 +1767,12 @@ public Builder mergeAccountVerification( return this; } /** - * - * *
      * Optional. Account verification information for identity verification. The
      * assessment event must include a token and site key to use this feature.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAccountVerification() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2168,69 +1785,51 @@ public Builder clearAccountVerification() { return this; } /** - * - * *
      * Optional. Account verification information for identity verification. The
      * assessment event must include a token and site key to use this feature.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder - getAccountVerificationBuilder() { + public com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder getAccountVerificationBuilder() { bitField0_ |= 0x00000010; onChanged(); return getAccountVerificationFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Account verification information for identity verification. The
      * assessment event must include a token and site key to use this feature.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder - getAccountVerificationOrBuilder() { + public com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder getAccountVerificationOrBuilder() { if (accountVerificationBuilder_ != null) { return accountVerificationBuilder_.getMessageOrBuilder(); } else { - return accountVerification_ == null - ? com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDefaultInstance() - : accountVerification_; + return accountVerification_ == null ? + com.google.recaptchaenterprise.v1.AccountVerificationInfo.getDefaultInstance() : accountVerification_; } } /** - * - * *
      * Optional. Account verification information for identity verification. The
      * assessment event must include a token and site key to use this feature.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.AccountVerificationInfo, - com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder, - com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder> + com.google.recaptchaenterprise.v1.AccountVerificationInfo, com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder, com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder> getAccountVerificationFieldBuilder() { if (accountVerificationBuilder_ == null) { - accountVerificationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.AccountVerificationInfo, - com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder, - com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder>( - getAccountVerification(), getParentForChildren(), isClean()); + accountVerificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.AccountVerificationInfo, com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder, com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder>( + getAccountVerification(), + getParentForChildren(), + isClean()); accountVerification_ = null; } return accountVerificationBuilder_; @@ -2238,65 +1837,44 @@ public Builder clearAccountVerification() { private com.google.recaptchaenterprise.v1.AccountDefenderAssessment accountDefenderAssessment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.AccountDefenderAssessment, - com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder, - com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder> - accountDefenderAssessmentBuilder_; + com.google.recaptchaenterprise.v1.AccountDefenderAssessment, com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder, com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder> accountDefenderAssessmentBuilder_; /** - * - * *
      * Output only. Assessment returned by account defender when a
      * hashed_account_id is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the accountDefenderAssessment field is set. */ public boolean hasAccountDefenderAssessment() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Output only. Assessment returned by account defender when a
      * hashed_account_id is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The accountDefenderAssessment. */ - public com.google.recaptchaenterprise.v1.AccountDefenderAssessment - getAccountDefenderAssessment() { + public com.google.recaptchaenterprise.v1.AccountDefenderAssessment getAccountDefenderAssessment() { if (accountDefenderAssessmentBuilder_ == null) { - return accountDefenderAssessment_ == null - ? com.google.recaptchaenterprise.v1.AccountDefenderAssessment.getDefaultInstance() - : accountDefenderAssessment_; + return accountDefenderAssessment_ == null ? com.google.recaptchaenterprise.v1.AccountDefenderAssessment.getDefaultInstance() : accountDefenderAssessment_; } else { return accountDefenderAssessmentBuilder_.getMessage(); } } /** - * - * *
      * Output only. Assessment returned by account defender when a
      * hashed_account_id is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setAccountDefenderAssessment( - com.google.recaptchaenterprise.v1.AccountDefenderAssessment value) { + public Builder setAccountDefenderAssessment(com.google.recaptchaenterprise.v1.AccountDefenderAssessment value) { if (accountDefenderAssessmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2310,16 +1888,12 @@ public Builder setAccountDefenderAssessment( return this; } /** - * - * *
      * Output only. Assessment returned by account defender when a
      * hashed_account_id is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAccountDefenderAssessment( com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder builderForValue) { @@ -2333,25 +1907,18 @@ public Builder setAccountDefenderAssessment( return this; } /** - * - * *
      * Output only. Assessment returned by account defender when a
      * hashed_account_id is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeAccountDefenderAssessment( - com.google.recaptchaenterprise.v1.AccountDefenderAssessment value) { + public Builder mergeAccountDefenderAssessment(com.google.recaptchaenterprise.v1.AccountDefenderAssessment value) { if (accountDefenderAssessmentBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && accountDefenderAssessment_ != null - && accountDefenderAssessment_ - != com.google.recaptchaenterprise.v1.AccountDefenderAssessment - .getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + accountDefenderAssessment_ != null && + accountDefenderAssessment_ != com.google.recaptchaenterprise.v1.AccountDefenderAssessment.getDefaultInstance()) { getAccountDefenderAssessmentBuilder().mergeFrom(value); } else { accountDefenderAssessment_ = value; @@ -2364,16 +1931,12 @@ public Builder mergeAccountDefenderAssessment( return this; } /** - * - * *
      * Output only. Assessment returned by account defender when a
      * hashed_account_id is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearAccountDefenderAssessment() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2386,139 +1949,99 @@ public Builder clearAccountDefenderAssessment() { return this; } /** - * - * *
      * Output only. Assessment returned by account defender when a
      * hashed_account_id is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder - getAccountDefenderAssessmentBuilder() { + public com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder getAccountDefenderAssessmentBuilder() { bitField0_ |= 0x00000020; onChanged(); return getAccountDefenderAssessmentFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Assessment returned by account defender when a
      * hashed_account_id is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder - getAccountDefenderAssessmentOrBuilder() { + public com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder getAccountDefenderAssessmentOrBuilder() { if (accountDefenderAssessmentBuilder_ != null) { return accountDefenderAssessmentBuilder_.getMessageOrBuilder(); } else { - return accountDefenderAssessment_ == null - ? com.google.recaptchaenterprise.v1.AccountDefenderAssessment.getDefaultInstance() - : accountDefenderAssessment_; + return accountDefenderAssessment_ == null ? + com.google.recaptchaenterprise.v1.AccountDefenderAssessment.getDefaultInstance() : accountDefenderAssessment_; } } /** - * - * *
      * Output only. Assessment returned by account defender when a
      * hashed_account_id is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.AccountDefenderAssessment, - com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder, - com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder> + com.google.recaptchaenterprise.v1.AccountDefenderAssessment, com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder, com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder> getAccountDefenderAssessmentFieldBuilder() { if (accountDefenderAssessmentBuilder_ == null) { - accountDefenderAssessmentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.AccountDefenderAssessment, - com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder, - com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder>( - getAccountDefenderAssessment(), getParentForChildren(), isClean()); + accountDefenderAssessmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.AccountDefenderAssessment, com.google.recaptchaenterprise.v1.AccountDefenderAssessment.Builder, com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder>( + getAccountDefenderAssessment(), + getParentForChildren(), + isClean()); accountDefenderAssessment_ = null; } return accountDefenderAssessmentBuilder_; } - private com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification - privatePasswordLeakVerification_; + private com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification privatePasswordLeakVerification_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification, - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder, - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder> - privatePasswordLeakVerificationBuilder_; + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification, com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder, com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder> privatePasswordLeakVerificationBuilder_; /** - * - * *
      * Optional. The private password leak verification field contains the
      * parameters that are used to to check for leaks privately without sharing
      * user credentials.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the privatePasswordLeakVerification field is set. */ public boolean hasPrivatePasswordLeakVerification() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Optional. The private password leak verification field contains the
      * parameters that are used to to check for leaks privately without sharing
      * user credentials.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The privatePasswordLeakVerification. */ - public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification - getPrivatePasswordLeakVerification() { + public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification getPrivatePasswordLeakVerification() { if (privatePasswordLeakVerificationBuilder_ == null) { - return privatePasswordLeakVerification_ == null - ? com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.getDefaultInstance() - : privatePasswordLeakVerification_; + return privatePasswordLeakVerification_ == null ? com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.getDefaultInstance() : privatePasswordLeakVerification_; } else { return privatePasswordLeakVerificationBuilder_.getMessage(); } } /** - * - * *
      * Optional. The private password leak verification field contains the
      * parameters that are used to to check for leaks privately without sharing
      * user credentials.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setPrivatePasswordLeakVerification( - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification value) { + public Builder setPrivatePasswordLeakVerification(com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification value) { if (privatePasswordLeakVerificationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2532,17 +2055,13 @@ public Builder setPrivatePasswordLeakVerification( return this; } /** - * - * *
      * Optional. The private password leak verification field contains the
      * parameters that are used to to check for leaks privately without sharing
      * user credentials.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPrivatePasswordLeakVerification( com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder builderForValue) { @@ -2556,26 +2075,19 @@ public Builder setPrivatePasswordLeakVerification( return this; } /** - * - * *
      * Optional. The private password leak verification field contains the
      * parameters that are used to to check for leaks privately without sharing
      * user credentials.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergePrivatePasswordLeakVerification( - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification value) { + public Builder mergePrivatePasswordLeakVerification(com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification value) { if (privatePasswordLeakVerificationBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && privatePasswordLeakVerification_ != null - && privatePasswordLeakVerification_ - != com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification - .getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + privatePasswordLeakVerification_ != null && + privatePasswordLeakVerification_ != com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.getDefaultInstance()) { getPrivatePasswordLeakVerificationBuilder().mergeFrom(value); } else { privatePasswordLeakVerification_ = value; @@ -2588,17 +2100,13 @@ public Builder mergePrivatePasswordLeakVerification( return this; } /** - * - * *
      * Optional. The private password leak verification field contains the
      * parameters that are used to to check for leaks privately without sharing
      * user credentials.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPrivatePasswordLeakVerification() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2611,72 +2119,54 @@ public Builder clearPrivatePasswordLeakVerification() { return this; } /** - * - * *
      * Optional. The private password leak verification field contains the
      * parameters that are used to to check for leaks privately without sharing
      * user credentials.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder - getPrivatePasswordLeakVerificationBuilder() { + public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder getPrivatePasswordLeakVerificationBuilder() { bitField0_ |= 0x00000040; onChanged(); return getPrivatePasswordLeakVerificationFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The private password leak verification field contains the
      * parameters that are used to to check for leaks privately without sharing
      * user credentials.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder - getPrivatePasswordLeakVerificationOrBuilder() { + public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder getPrivatePasswordLeakVerificationOrBuilder() { if (privatePasswordLeakVerificationBuilder_ != null) { return privatePasswordLeakVerificationBuilder_.getMessageOrBuilder(); } else { - return privatePasswordLeakVerification_ == null - ? com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.getDefaultInstance() - : privatePasswordLeakVerification_; + return privatePasswordLeakVerification_ == null ? + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.getDefaultInstance() : privatePasswordLeakVerification_; } } /** - * - * *
      * Optional. The private password leak verification field contains the
      * parameters that are used to to check for leaks privately without sharing
      * user credentials.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification, - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder, - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder> + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification, com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder, com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder> getPrivatePasswordLeakVerificationFieldBuilder() { if (privatePasswordLeakVerificationBuilder_ == null) { - privatePasswordLeakVerificationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification, - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder, - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder>( - getPrivatePasswordLeakVerification(), getParentForChildren(), isClean()); + privatePasswordLeakVerificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification, com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder, com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder>( + getPrivatePasswordLeakVerification(), + getParentForChildren(), + isClean()); privatePasswordLeakVerification_ = null; } return privatePasswordLeakVerificationBuilder_; @@ -2684,65 +2174,44 @@ public Builder clearPrivatePasswordLeakVerification() { private com.google.recaptchaenterprise.v1.FirewallPolicyAssessment firewallPolicyAssessment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicyAssessment, - com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder, - com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder> - firewallPolicyAssessmentBuilder_; + com.google.recaptchaenterprise.v1.FirewallPolicyAssessment, com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder> firewallPolicyAssessmentBuilder_; /** - * - * *
      * Output only. Assessment returned when firewall policies belonging to the
      * project are evaluated using the field firewall_policy_evaluation.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the firewallPolicyAssessment field is set. */ public boolean hasFirewallPolicyAssessment() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Output only. Assessment returned when firewall policies belonging to the
      * project are evaluated using the field firewall_policy_evaluation.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The firewallPolicyAssessment. */ - public com.google.recaptchaenterprise.v1.FirewallPolicyAssessment - getFirewallPolicyAssessment() { + public com.google.recaptchaenterprise.v1.FirewallPolicyAssessment getFirewallPolicyAssessment() { if (firewallPolicyAssessmentBuilder_ == null) { - return firewallPolicyAssessment_ == null - ? com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.getDefaultInstance() - : firewallPolicyAssessment_; + return firewallPolicyAssessment_ == null ? com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.getDefaultInstance() : firewallPolicyAssessment_; } else { return firewallPolicyAssessmentBuilder_.getMessage(); } } /** - * - * *
      * Output only. Assessment returned when firewall policies belonging to the
      * project are evaluated using the field firewall_policy_evaluation.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setFirewallPolicyAssessment( - com.google.recaptchaenterprise.v1.FirewallPolicyAssessment value) { + public Builder setFirewallPolicyAssessment(com.google.recaptchaenterprise.v1.FirewallPolicyAssessment value) { if (firewallPolicyAssessmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2756,16 +2225,12 @@ public Builder setFirewallPolicyAssessment( return this; } /** - * - * *
      * Output only. Assessment returned when firewall policies belonging to the
      * project are evaluated using the field firewall_policy_evaluation.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setFirewallPolicyAssessment( com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder builderForValue) { @@ -2779,25 +2244,18 @@ public Builder setFirewallPolicyAssessment( return this; } /** - * - * *
      * Output only. Assessment returned when firewall policies belonging to the
      * project are evaluated using the field firewall_policy_evaluation.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeFirewallPolicyAssessment( - com.google.recaptchaenterprise.v1.FirewallPolicyAssessment value) { + public Builder mergeFirewallPolicyAssessment(com.google.recaptchaenterprise.v1.FirewallPolicyAssessment value) { if (firewallPolicyAssessmentBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && firewallPolicyAssessment_ != null - && firewallPolicyAssessment_ - != com.google.recaptchaenterprise.v1.FirewallPolicyAssessment - .getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + firewallPolicyAssessment_ != null && + firewallPolicyAssessment_ != com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.getDefaultInstance()) { getFirewallPolicyAssessmentBuilder().mergeFrom(value); } else { firewallPolicyAssessment_ = value; @@ -2810,16 +2268,12 @@ public Builder mergeFirewallPolicyAssessment( return this; } /** - * - * *
      * Output only. Assessment returned when firewall policies belonging to the
      * project are evaluated using the field firewall_policy_evaluation.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearFirewallPolicyAssessment() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2832,69 +2286,51 @@ public Builder clearFirewallPolicyAssessment() { return this; } /** - * - * *
      * Output only. Assessment returned when firewall policies belonging to the
      * project are evaluated using the field firewall_policy_evaluation.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder - getFirewallPolicyAssessmentBuilder() { + public com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder getFirewallPolicyAssessmentBuilder() { bitField0_ |= 0x00000080; onChanged(); return getFirewallPolicyAssessmentFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Assessment returned when firewall policies belonging to the
      * project are evaluated using the field firewall_policy_evaluation.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder - getFirewallPolicyAssessmentOrBuilder() { + public com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder getFirewallPolicyAssessmentOrBuilder() { if (firewallPolicyAssessmentBuilder_ != null) { return firewallPolicyAssessmentBuilder_.getMessageOrBuilder(); } else { - return firewallPolicyAssessment_ == null - ? com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.getDefaultInstance() - : firewallPolicyAssessment_; + return firewallPolicyAssessment_ == null ? + com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.getDefaultInstance() : firewallPolicyAssessment_; } } /** - * - * *
      * Output only. Assessment returned when firewall policies belonging to the
      * project are evaluated using the field firewall_policy_evaluation.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicyAssessment, - com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder, - com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder> + com.google.recaptchaenterprise.v1.FirewallPolicyAssessment, com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder> getFirewallPolicyAssessmentFieldBuilder() { if (firewallPolicyAssessmentBuilder_ == null) { - firewallPolicyAssessmentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicyAssessment, - com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder, - com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder>( - getFirewallPolicyAssessment(), getParentForChildren(), isClean()); + firewallPolicyAssessmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FirewallPolicyAssessment, com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder>( + getFirewallPolicyAssessment(), + getParentForChildren(), + isClean()); firewallPolicyAssessment_ = null; } return firewallPolicyAssessmentBuilder_; @@ -2902,65 +2338,44 @@ public Builder clearFirewallPolicyAssessment() { private com.google.recaptchaenterprise.v1.FraudPreventionAssessment fraudPreventionAssessment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudPreventionAssessment, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder, - com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder> - fraudPreventionAssessmentBuilder_; + com.google.recaptchaenterprise.v1.FraudPreventionAssessment, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder, com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder> fraudPreventionAssessmentBuilder_; /** - * - * *
      * Output only. Assessment returned by Fraud Prevention when TransactionData
      * is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the fraudPreventionAssessment field is set. */ public boolean hasFraudPreventionAssessment() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Output only. Assessment returned by Fraud Prevention when TransactionData
      * is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The fraudPreventionAssessment. */ - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment - getFraudPreventionAssessment() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment getFraudPreventionAssessment() { if (fraudPreventionAssessmentBuilder_ == null) { - return fraudPreventionAssessment_ == null - ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.getDefaultInstance() - : fraudPreventionAssessment_; + return fraudPreventionAssessment_ == null ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.getDefaultInstance() : fraudPreventionAssessment_; } else { return fraudPreventionAssessmentBuilder_.getMessage(); } } /** - * - * *
      * Output only. Assessment returned by Fraud Prevention when TransactionData
      * is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setFraudPreventionAssessment( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment value) { + public Builder setFraudPreventionAssessment(com.google.recaptchaenterprise.v1.FraudPreventionAssessment value) { if (fraudPreventionAssessmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2974,16 +2389,12 @@ public Builder setFraudPreventionAssessment( return this; } /** - * - * *
      * Output only. Assessment returned by Fraud Prevention when TransactionData
      * is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setFraudPreventionAssessment( com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder builderForValue) { @@ -2997,25 +2408,18 @@ public Builder setFraudPreventionAssessment( return this; } /** - * - * *
      * Output only. Assessment returned by Fraud Prevention when TransactionData
      * is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeFraudPreventionAssessment( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment value) { + public Builder mergeFraudPreventionAssessment(com.google.recaptchaenterprise.v1.FraudPreventionAssessment value) { if (fraudPreventionAssessmentBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && fraudPreventionAssessment_ != null - && fraudPreventionAssessment_ - != com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + fraudPreventionAssessment_ != null && + fraudPreventionAssessment_ != com.google.recaptchaenterprise.v1.FraudPreventionAssessment.getDefaultInstance()) { getFraudPreventionAssessmentBuilder().mergeFrom(value); } else { fraudPreventionAssessment_ = value; @@ -3028,16 +2432,12 @@ public Builder mergeFraudPreventionAssessment( return this; } /** - * - * *
      * Output only. Assessment returned by Fraud Prevention when TransactionData
      * is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearFraudPreventionAssessment() { bitField0_ = (bitField0_ & ~0x00000100); @@ -3050,69 +2450,51 @@ public Builder clearFraudPreventionAssessment() { return this; } /** - * - * *
      * Output only. Assessment returned by Fraud Prevention when TransactionData
      * is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder - getFraudPreventionAssessmentBuilder() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder getFraudPreventionAssessmentBuilder() { bitField0_ |= 0x00000100; onChanged(); return getFraudPreventionAssessmentFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Assessment returned by Fraud Prevention when TransactionData
      * is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder - getFraudPreventionAssessmentOrBuilder() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder getFraudPreventionAssessmentOrBuilder() { if (fraudPreventionAssessmentBuilder_ != null) { return fraudPreventionAssessmentBuilder_.getMessageOrBuilder(); } else { - return fraudPreventionAssessment_ == null - ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.getDefaultInstance() - : fraudPreventionAssessment_; + return fraudPreventionAssessment_ == null ? + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.getDefaultInstance() : fraudPreventionAssessment_; } } /** - * - * *
      * Output only. Assessment returned by Fraud Prevention when TransactionData
      * is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudPreventionAssessment, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder, - com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder> + com.google.recaptchaenterprise.v1.FraudPreventionAssessment, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder, com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder> getFraudPreventionAssessmentFieldBuilder() { if (fraudPreventionAssessmentBuilder_ == null) { - fraudPreventionAssessmentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudPreventionAssessment, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder, - com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder>( - getFraudPreventionAssessment(), getParentForChildren(), isClean()); + fraudPreventionAssessmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FraudPreventionAssessment, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder, com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder>( + getFraudPreventionAssessment(), + getParentForChildren(), + isClean()); fraudPreventionAssessment_ = null; } return fraudPreventionAssessmentBuilder_; @@ -3120,61 +2502,42 @@ public Builder clearFraudPreventionAssessment() { private com.google.recaptchaenterprise.v1.FraudSignals fraudSignals_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudSignals, - com.google.recaptchaenterprise.v1.FraudSignals.Builder, - com.google.recaptchaenterprise.v1.FraudSignalsOrBuilder> - fraudSignalsBuilder_; + com.google.recaptchaenterprise.v1.FraudSignals, com.google.recaptchaenterprise.v1.FraudSignals.Builder, com.google.recaptchaenterprise.v1.FraudSignalsOrBuilder> fraudSignalsBuilder_; /** - * - * *
      * Output only. Fraud Signals specific to the users involved in a payment
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the fraudSignals field is set. */ public boolean hasFraudSignals() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * Output only. Fraud Signals specific to the users involved in a payment
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The fraudSignals. */ public com.google.recaptchaenterprise.v1.FraudSignals getFraudSignals() { if (fraudSignalsBuilder_ == null) { - return fraudSignals_ == null - ? com.google.recaptchaenterprise.v1.FraudSignals.getDefaultInstance() - : fraudSignals_; + return fraudSignals_ == null ? com.google.recaptchaenterprise.v1.FraudSignals.getDefaultInstance() : fraudSignals_; } else { return fraudSignalsBuilder_.getMessage(); } } /** - * - * *
      * Output only. Fraud Signals specific to the users involved in a payment
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setFraudSignals(com.google.recaptchaenterprise.v1.FraudSignals value) { if (fraudSignalsBuilder_ == null) { @@ -3190,16 +2553,12 @@ public Builder setFraudSignals(com.google.recaptchaenterprise.v1.FraudSignals va return this; } /** - * - * *
      * Output only. Fraud Signals specific to the users involved in a payment
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setFraudSignals( com.google.recaptchaenterprise.v1.FraudSignals.Builder builderForValue) { @@ -3213,23 +2572,18 @@ public Builder setFraudSignals( return this; } /** - * - * *
      * Output only. Fraud Signals specific to the users involved in a payment
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeFraudSignals(com.google.recaptchaenterprise.v1.FraudSignals value) { if (fraudSignalsBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && fraudSignals_ != null - && fraudSignals_ - != com.google.recaptchaenterprise.v1.FraudSignals.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + fraudSignals_ != null && + fraudSignals_ != com.google.recaptchaenterprise.v1.FraudSignals.getDefaultInstance()) { getFraudSignalsBuilder().mergeFrom(value); } else { fraudSignals_ = value; @@ -3242,16 +2596,12 @@ public Builder mergeFraudSignals(com.google.recaptchaenterprise.v1.FraudSignals return this; } /** - * - * *
      * Output only. Fraud Signals specific to the users involved in a payment
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearFraudSignals() { bitField0_ = (bitField0_ & ~0x00000200); @@ -3264,16 +2614,12 @@ public Builder clearFraudSignals() { return this; } /** - * - * *
      * Output only. Fraud Signals specific to the users involved in a payment
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.recaptchaenterprise.v1.FraudSignals.Builder getFraudSignalsBuilder() { bitField0_ |= 0x00000200; @@ -3281,57 +2627,45 @@ public com.google.recaptchaenterprise.v1.FraudSignals.Builder getFraudSignalsBui return getFraudSignalsFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Fraud Signals specific to the users involved in a payment
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.recaptchaenterprise.v1.FraudSignalsOrBuilder getFraudSignalsOrBuilder() { if (fraudSignalsBuilder_ != null) { return fraudSignalsBuilder_.getMessageOrBuilder(); } else { - return fraudSignals_ == null - ? com.google.recaptchaenterprise.v1.FraudSignals.getDefaultInstance() - : fraudSignals_; + return fraudSignals_ == null ? + com.google.recaptchaenterprise.v1.FraudSignals.getDefaultInstance() : fraudSignals_; } } /** - * - * *
      * Output only. Fraud Signals specific to the users involved in a payment
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudSignals, - com.google.recaptchaenterprise.v1.FraudSignals.Builder, - com.google.recaptchaenterprise.v1.FraudSignalsOrBuilder> + com.google.recaptchaenterprise.v1.FraudSignals, com.google.recaptchaenterprise.v1.FraudSignals.Builder, com.google.recaptchaenterprise.v1.FraudSignalsOrBuilder> getFraudSignalsFieldBuilder() { if (fraudSignalsBuilder_ == null) { - fraudSignalsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudSignals, - com.google.recaptchaenterprise.v1.FraudSignals.Builder, - com.google.recaptchaenterprise.v1.FraudSignalsOrBuilder>( - getFraudSignals(), getParentForChildren(), isClean()); + fraudSignalsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FraudSignals, com.google.recaptchaenterprise.v1.FraudSignals.Builder, com.google.recaptchaenterprise.v1.FraudSignalsOrBuilder>( + getFraudSignals(), + getParentForChildren(), + isClean()); fraudSignals_ = null; } return fraudSignalsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3341,12 +2675,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.Assessment) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.Assessment) private static final com.google.recaptchaenterprise.v1.Assessment DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.Assessment(); } @@ -3355,27 +2689,27 @@ public static com.google.recaptchaenterprise.v1.Assessment getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Assessment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Assessment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3390,4 +2724,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.Assessment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentName.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentName.java similarity index 100% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentName.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentName.java diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentOrBuilder.java similarity index 56% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentOrBuilder.java index 31653852aec0..9c9f43059f01 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentOrBuilder.java @@ -1,448 +1,295 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface AssessmentOrBuilder - extends +public interface AssessmentOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.Assessment) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name for the Assessment in the format
    * `projects/{project}/assessments/{assessment}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name for the Assessment in the format
    * `projects/{project}/assessments/{assessment}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. The event being assessed.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the event field is set. */ boolean hasEvent(); /** - * - * *
    * Optional. The event being assessed.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The event. */ com.google.recaptchaenterprise.v1.Event getEvent(); /** - * - * *
    * Optional. The event being assessed.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.Event event = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.recaptchaenterprise.v1.EventOrBuilder getEventOrBuilder(); /** - * - * *
    * Output only. The risk analysis result for the event being assessed.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the riskAnalysis field is set. */ boolean hasRiskAnalysis(); /** - * - * *
    * Output only. The risk analysis result for the event being assessed.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The riskAnalysis. */ com.google.recaptchaenterprise.v1.RiskAnalysis getRiskAnalysis(); /** - * - * *
    * Output only. The risk analysis result for the event being assessed.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.RiskAnalysis risk_analysis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.recaptchaenterprise.v1.RiskAnalysisOrBuilder getRiskAnalysisOrBuilder(); /** - * - * *
    * Output only. Properties of the provided event token.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the tokenProperties field is set. */ boolean hasTokenProperties(); /** - * - * *
    * Output only. Properties of the provided event token.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The tokenProperties. */ com.google.recaptchaenterprise.v1.TokenProperties getTokenProperties(); /** - * - * *
    * Output only. Properties of the provided event token.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.recaptchaenterprise.v1.TokenPropertiesOrBuilder getTokenPropertiesOrBuilder(); /** - * - * *
    * Optional. Account verification information for identity verification. The
    * assessment event must include a token and site key to use this feature.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the accountVerification field is set. */ boolean hasAccountVerification(); /** - * - * *
    * Optional. Account verification information for identity verification. The
    * assessment event must include a token and site key to use this feature.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The accountVerification. */ com.google.recaptchaenterprise.v1.AccountVerificationInfo getAccountVerification(); /** - * - * *
    * Optional. Account verification information for identity verification. The
    * assessment event must include a token and site key to use this feature.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo account_verification = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder - getAccountVerificationOrBuilder(); + com.google.recaptchaenterprise.v1.AccountVerificationInfoOrBuilder getAccountVerificationOrBuilder(); /** - * - * *
    * Output only. Assessment returned by account defender when a
    * hashed_account_id is provided.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the accountDefenderAssessment field is set. */ boolean hasAccountDefenderAssessment(); /** - * - * *
    * Output only. Assessment returned by account defender when a
    * hashed_account_id is provided.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The accountDefenderAssessment. */ com.google.recaptchaenterprise.v1.AccountDefenderAssessment getAccountDefenderAssessment(); /** - * - * *
    * Output only. Assessment returned by account defender when a
    * hashed_account_id is provided.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment account_defender_assessment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder - getAccountDefenderAssessmentOrBuilder(); + com.google.recaptchaenterprise.v1.AccountDefenderAssessmentOrBuilder getAccountDefenderAssessmentOrBuilder(); /** - * - * *
    * Optional. The private password leak verification field contains the
    * parameters that are used to to check for leaks privately without sharing
    * user credentials.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the privatePasswordLeakVerification field is set. */ boolean hasPrivatePasswordLeakVerification(); /** - * - * *
    * Optional. The private password leak verification field contains the
    * parameters that are used to to check for leaks privately without sharing
    * user credentials.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The privatePasswordLeakVerification. */ - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification - getPrivatePasswordLeakVerification(); + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification getPrivatePasswordLeakVerification(); /** - * - * *
    * Optional. The private password leak verification field contains the
    * parameters that are used to to check for leaks privately without sharing
    * user credentials.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification private_password_leak_verification = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder - getPrivatePasswordLeakVerificationOrBuilder(); + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder getPrivatePasswordLeakVerificationOrBuilder(); /** - * - * *
    * Output only. Assessment returned when firewall policies belonging to the
    * project are evaluated using the field firewall_policy_evaluation.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the firewallPolicyAssessment field is set. */ boolean hasFirewallPolicyAssessment(); /** - * - * *
    * Output only. Assessment returned when firewall policies belonging to the
    * project are evaluated using the field firewall_policy_evaluation.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The firewallPolicyAssessment. */ com.google.recaptchaenterprise.v1.FirewallPolicyAssessment getFirewallPolicyAssessment(); /** - * - * *
    * Output only. Assessment returned when firewall policies belonging to the
    * project are evaluated using the field firewall_policy_evaluation.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment firewall_policy_assessment = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder - getFirewallPolicyAssessmentOrBuilder(); + com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder getFirewallPolicyAssessmentOrBuilder(); /** - * - * *
    * Output only. Assessment returned by Fraud Prevention when TransactionData
    * is provided.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the fraudPreventionAssessment field is set. */ boolean hasFraudPreventionAssessment(); /** - * - * *
    * Output only. Assessment returned by Fraud Prevention when TransactionData
    * is provided.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The fraudPreventionAssessment. */ com.google.recaptchaenterprise.v1.FraudPreventionAssessment getFraudPreventionAssessment(); /** - * - * *
    * Output only. Assessment returned by Fraud Prevention when TransactionData
    * is provided.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment fraud_prevention_assessment = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder - getFraudPreventionAssessmentOrBuilder(); + com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder getFraudPreventionAssessmentOrBuilder(); /** - * - * *
    * Output only. Fraud Signals specific to the users involved in a payment
    * transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the fraudSignals field is set. */ boolean hasFraudSignals(); /** - * - * *
    * Output only. Fraud Signals specific to the users involved in a payment
    * transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The fraudSignals. */ com.google.recaptchaenterprise.v1.FraudSignals getFraudSignals(); /** - * - * *
    * Output only. Fraud Signals specific to the users involved in a payment
    * transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals fraud_signals = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.recaptchaenterprise.v1.FraudSignalsOrBuilder getFraudSignalsOrBuilder(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetrics.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetrics.java similarity index 70% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetrics.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetrics.java index d7304cb6539e..3f0b94dac7d0 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetrics.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetrics.java @@ -1,77 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * Metrics related to challenges.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ChallengeMetrics} */ -public final class ChallengeMetrics extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ChallengeMetrics extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.ChallengeMetrics) ChallengeMetricsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ChallengeMetrics.newBuilder() to construct. private ChallengeMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ChallengeMetrics() {} + private ChallengeMetrics() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ChallengeMetrics(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ChallengeMetrics.class, - com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder.class); + com.google.recaptchaenterprise.v1.ChallengeMetrics.class, com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder.class); } public static final int PAGELOAD_COUNT_FIELD_NUMBER = 1; private long pageloadCount_ = 0L; /** - * - * *
    * Count of reCAPTCHA checkboxes or badges rendered. This is mostly equivalent
    * to a count of pageloads for pages that include reCAPTCHA.
    * 
* * int64 pageload_count = 1; - * * @return The pageloadCount. */ @java.lang.Override @@ -82,14 +61,11 @@ public long getPageloadCount() { public static final int NOCAPTCHA_COUNT_FIELD_NUMBER = 2; private long nocaptchaCount_ = 0L; /** - * - * *
    * Count of nocaptchas (successful verification without a challenge) issued.
    * 
* * int64 nocaptcha_count = 2; - * * @return The nocaptchaCount. */ @java.lang.Override @@ -100,15 +76,12 @@ public long getNocaptchaCount() { public static final int FAILED_COUNT_FIELD_NUMBER = 3; private long failedCount_ = 0L; /** - * - * *
    * Count of submitted challenge solutions that were incorrect or otherwise
    * deemed suspicious such that a subsequent challenge was triggered.
    * 
* * int64 failed_count = 3; - * * @return The failedCount. */ @java.lang.Override @@ -119,8 +92,6 @@ public long getFailedCount() { public static final int PASSED_COUNT_FIELD_NUMBER = 4; private long passedCount_ = 0L; /** - * - * *
    * Count of nocaptchas (successful verification without a challenge) plus
    * submitted challenge solutions that were correct and resulted in
@@ -128,7 +99,6 @@ public long getFailedCount() {
    * 
* * int64 passed_count = 4; - * * @return The passedCount. */ @java.lang.Override @@ -137,7 +107,6 @@ public long getPassedCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,7 +118,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (pageloadCount_ != 0L) { output.writeInt64(1, pageloadCount_); } @@ -172,16 +142,20 @@ public int getSerializedSize() { size = 0; if (pageloadCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, pageloadCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, pageloadCount_); } if (nocaptchaCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, nocaptchaCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, nocaptchaCount_); } if (failedCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, failedCount_); } if (passedCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, passedCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, passedCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -191,18 +165,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.ChallengeMetrics)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.ChallengeMetrics other = - (com.google.recaptchaenterprise.v1.ChallengeMetrics) obj; + com.google.recaptchaenterprise.v1.ChallengeMetrics other = (com.google.recaptchaenterprise.v1.ChallengeMetrics) obj; - if (getPageloadCount() != other.getPageloadCount()) return false; - if (getNocaptchaCount() != other.getNocaptchaCount()) return false; - if (getFailedCount() != other.getFailedCount()) return false; - if (getPassedCount() != other.getPassedCount()) return false; + if (getPageloadCount() + != other.getPageloadCount()) return false; + if (getNocaptchaCount() + != other.getNocaptchaCount()) return false; + if (getFailedCount() + != other.getFailedCount()) return false; + if (getPassedCount() + != other.getPassedCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -215,148 +192,148 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PAGELOAD_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPageloadCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPageloadCount()); hash = (37 * hash) + NOCAPTCHA_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNocaptchaCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNocaptchaCount()); hash = (37 * hash) + FAILED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFailedCount()); hash = (37 * hash) + PASSED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPassedCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPassedCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ChallengeMetrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.ChallengeMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Metrics related to challenges.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ChallengeMetrics} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.ChallengeMetrics) com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ChallengeMetrics.class, - com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder.class); + com.google.recaptchaenterprise.v1.ChallengeMetrics.class, com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.ChallengeMetrics.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -369,9 +346,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor; } @java.lang.Override @@ -390,11 +367,8 @@ public com.google.recaptchaenterprise.v1.ChallengeMetrics build() { @java.lang.Override public com.google.recaptchaenterprise.v1.ChallengeMetrics buildPartial() { - com.google.recaptchaenterprise.v1.ChallengeMetrics result = - new com.google.recaptchaenterprise.v1.ChallengeMetrics(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.ChallengeMetrics result = new com.google.recaptchaenterprise.v1.ChallengeMetrics(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -419,39 +393,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.ChallengeMetrics re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.ChallengeMetrics) { - return mergeFrom((com.google.recaptchaenterprise.v1.ChallengeMetrics) other); + return mergeFrom((com.google.recaptchaenterprise.v1.ChallengeMetrics)other); } else { super.mergeFrom(other); return this; @@ -459,8 +432,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.ChallengeMetrics other) { - if (other == com.google.recaptchaenterprise.v1.ChallengeMetrics.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.ChallengeMetrics.getDefaultInstance()) return this; if (other.getPageloadCount() != 0L) { setPageloadCount(other.getPageloadCount()); } @@ -499,37 +471,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - pageloadCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - nocaptchaCount_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - failedCount_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - passedCount_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + pageloadCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + nocaptchaCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + failedCount_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + passedCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -539,20 +506,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long pageloadCount_; + private long pageloadCount_ ; /** - * - * *
      * Count of reCAPTCHA checkboxes or badges rendered. This is mostly equivalent
      * to a count of pageloads for pages that include reCAPTCHA.
      * 
* * int64 pageload_count = 1; - * * @return The pageloadCount. */ @java.lang.Override @@ -560,15 +523,12 @@ public long getPageloadCount() { return pageloadCount_; } /** - * - * *
      * Count of reCAPTCHA checkboxes or badges rendered. This is mostly equivalent
      * to a count of pageloads for pages that include reCAPTCHA.
      * 
* * int64 pageload_count = 1; - * * @param value The pageloadCount to set. * @return This builder for chaining. */ @@ -580,15 +540,12 @@ public Builder setPageloadCount(long value) { return this; } /** - * - * *
      * Count of reCAPTCHA checkboxes or badges rendered. This is mostly equivalent
      * to a count of pageloads for pages that include reCAPTCHA.
      * 
* * int64 pageload_count = 1; - * * @return This builder for chaining. */ public Builder clearPageloadCount() { @@ -598,16 +555,13 @@ public Builder clearPageloadCount() { return this; } - private long nocaptchaCount_; + private long nocaptchaCount_ ; /** - * - * *
      * Count of nocaptchas (successful verification without a challenge) issued.
      * 
* * int64 nocaptcha_count = 2; - * * @return The nocaptchaCount. */ @java.lang.Override @@ -615,14 +569,11 @@ public long getNocaptchaCount() { return nocaptchaCount_; } /** - * - * *
      * Count of nocaptchas (successful verification without a challenge) issued.
      * 
* * int64 nocaptcha_count = 2; - * * @param value The nocaptchaCount to set. * @return This builder for chaining. */ @@ -634,14 +585,11 @@ public Builder setNocaptchaCount(long value) { return this; } /** - * - * *
      * Count of nocaptchas (successful verification without a challenge) issued.
      * 
* * int64 nocaptcha_count = 2; - * * @return This builder for chaining. */ public Builder clearNocaptchaCount() { @@ -651,17 +599,14 @@ public Builder clearNocaptchaCount() { return this; } - private long failedCount_; + private long failedCount_ ; /** - * - * *
      * Count of submitted challenge solutions that were incorrect or otherwise
      * deemed suspicious such that a subsequent challenge was triggered.
      * 
* * int64 failed_count = 3; - * * @return The failedCount. */ @java.lang.Override @@ -669,15 +614,12 @@ public long getFailedCount() { return failedCount_; } /** - * - * *
      * Count of submitted challenge solutions that were incorrect or otherwise
      * deemed suspicious such that a subsequent challenge was triggered.
      * 
* * int64 failed_count = 3; - * * @param value The failedCount to set. * @return This builder for chaining. */ @@ -689,15 +631,12 @@ public Builder setFailedCount(long value) { return this; } /** - * - * *
      * Count of submitted challenge solutions that were incorrect or otherwise
      * deemed suspicious such that a subsequent challenge was triggered.
      * 
* * int64 failed_count = 3; - * * @return This builder for chaining. */ public Builder clearFailedCount() { @@ -707,10 +646,8 @@ public Builder clearFailedCount() { return this; } - private long passedCount_; + private long passedCount_ ; /** - * - * *
      * Count of nocaptchas (successful verification without a challenge) plus
      * submitted challenge solutions that were correct and resulted in
@@ -718,7 +655,6 @@ public Builder clearFailedCount() {
      * 
* * int64 passed_count = 4; - * * @return The passedCount. */ @java.lang.Override @@ -726,8 +662,6 @@ public long getPassedCount() { return passedCount_; } /** - * - * *
      * Count of nocaptchas (successful verification without a challenge) plus
      * submitted challenge solutions that were correct and resulted in
@@ -735,7 +669,6 @@ public long getPassedCount() {
      * 
* * int64 passed_count = 4; - * * @param value The passedCount to set. * @return This builder for chaining. */ @@ -747,8 +680,6 @@ public Builder setPassedCount(long value) { return this; } /** - * - * *
      * Count of nocaptchas (successful verification without a challenge) plus
      * submitted challenge solutions that were correct and resulted in
@@ -756,7 +687,6 @@ public Builder setPassedCount(long value) {
      * 
* * int64 passed_count = 4; - * * @return This builder for chaining. */ public Builder clearPassedCount() { @@ -765,9 +695,9 @@ public Builder clearPassedCount() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -777,12 +707,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.ChallengeMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.ChallengeMetrics) private static final com.google.recaptchaenterprise.v1.ChallengeMetrics DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.ChallengeMetrics(); } @@ -791,27 +721,27 @@ public static com.google.recaptchaenterprise.v1.ChallengeMetrics getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChallengeMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChallengeMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -826,4 +756,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.ChallengeMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetricsOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetricsOrBuilder.java similarity index 66% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetricsOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetricsOrBuilder.java index 6d6b7b04c449..af2dfd60ced4 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetricsOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ChallengeMetricsOrBuilder.java @@ -1,72 +1,45 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface ChallengeMetricsOrBuilder - extends +public interface ChallengeMetricsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.ChallengeMetrics) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Count of reCAPTCHA checkboxes or badges rendered. This is mostly equivalent
    * to a count of pageloads for pages that include reCAPTCHA.
    * 
* * int64 pageload_count = 1; - * * @return The pageloadCount. */ long getPageloadCount(); /** - * - * *
    * Count of nocaptchas (successful verification without a challenge) issued.
    * 
* * int64 nocaptcha_count = 2; - * * @return The nocaptchaCount. */ long getNocaptchaCount(); /** - * - * *
    * Count of submitted challenge solutions that were incorrect or otherwise
    * deemed suspicious such that a subsequent challenge was triggered.
    * 
* * int64 failed_count = 3; - * * @return The failedCount. */ long getFailedCount(); /** - * - * *
    * Count of nocaptchas (successful verification without a challenge) plus
    * submitted challenge solutions that were correct and resulted in
@@ -74,7 +47,6 @@ public interface ChallengeMetricsOrBuilder
    * 
* * int64 passed_count = 4; - * * @return The passedCount. */ long getPassedCount(); diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequest.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequest.java similarity index 61% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequest.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequest.java index dfc24b8044ee..b6b5126f5f3c 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequest.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * The create assessment request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.CreateAssessmentRequest} */ -public final class CreateAssessmentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateAssessmentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.CreateAssessmentRequest) CreateAssessmentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateAssessmentRequest.newBuilder() to construct. private CreateAssessmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateAssessmentRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateAssessmentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.CreateAssessmentRequest.class, - com.google.recaptchaenterprise.v1.CreateAssessmentRequest.Builder.class); + com.google.recaptchaenterprise.v1.CreateAssessmentRequest.class, com.google.recaptchaenterprise.v1.CreateAssessmentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The name of the project in which the assessment will be created,
    * in the format `projects/{project}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -86,32 +61,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The name of the project in which the assessment will be created,
    * in the format `projects/{project}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -122,16 +95,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int ASSESSMENT_FIELD_NUMBER = 2; private com.google.recaptchaenterprise.v1.Assessment assessment_; /** - * - * *
    * Required. The assessment details.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the assessment field is set. */ @java.lang.Override @@ -139,44 +107,30 @@ public boolean hasAssessment() { return assessment_ != null; } /** - * - * *
    * Required. The assessment details.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The assessment. */ @java.lang.Override public com.google.recaptchaenterprise.v1.Assessment getAssessment() { - return assessment_ == null - ? com.google.recaptchaenterprise.v1.Assessment.getDefaultInstance() - : assessment_; + return assessment_ == null ? com.google.recaptchaenterprise.v1.Assessment.getDefaultInstance() : assessment_; } /** - * - * *
    * Required. The assessment details.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.recaptchaenterprise.v1.AssessmentOrBuilder getAssessmentOrBuilder() { - return assessment_ == null - ? com.google.recaptchaenterprise.v1.Assessment.getDefaultInstance() - : assessment_; + return assessment_ == null ? com.google.recaptchaenterprise.v1.Assessment.getDefaultInstance() : assessment_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +142,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -208,7 +163,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (assessment_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAssessment()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAssessment()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -218,18 +174,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.CreateAssessmentRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.CreateAssessmentRequest other = - (com.google.recaptchaenterprise.v1.CreateAssessmentRequest) obj; + com.google.recaptchaenterprise.v1.CreateAssessmentRequest other = (com.google.recaptchaenterprise.v1.CreateAssessmentRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasAssessment() != other.hasAssessment()) return false; if (hasAssessment()) { - if (!getAssessment().equals(other.getAssessment())) return false; + if (!getAssessment() + .equals(other.getAssessment())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -254,136 +211,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.CreateAssessmentRequest prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.CreateAssessmentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The create assessment request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.CreateAssessmentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.CreateAssessmentRequest) com.google.recaptchaenterprise.v1.CreateAssessmentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.CreateAssessmentRequest.class, - com.google.recaptchaenterprise.v1.CreateAssessmentRequest.Builder.class); + com.google.recaptchaenterprise.v1.CreateAssessmentRequest.class, com.google.recaptchaenterprise.v1.CreateAssessmentRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.CreateAssessmentRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -398,9 +350,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_descriptor; } @java.lang.Override @@ -419,11 +371,8 @@ public com.google.recaptchaenterprise.v1.CreateAssessmentRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.CreateAssessmentRequest buildPartial() { - com.google.recaptchaenterprise.v1.CreateAssessmentRequest result = - new com.google.recaptchaenterprise.v1.CreateAssessmentRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.CreateAssessmentRequest result = new com.google.recaptchaenterprise.v1.CreateAssessmentRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -434,7 +383,9 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.CreateAssessmentReq result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.assessment_ = assessmentBuilder_ == null ? assessment_ : assessmentBuilder_.build(); + result.assessment_ = assessmentBuilder_ == null + ? assessment_ + : assessmentBuilder_.build(); } } @@ -442,39 +393,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.CreateAssessmentReq public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.CreateAssessmentRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.CreateAssessmentRequest) other); + return mergeFrom((com.google.recaptchaenterprise.v1.CreateAssessmentRequest)other); } else { super.mergeFrom(other); return this; @@ -482,8 +432,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.CreateAssessmentRequest other) { - if (other == com.google.recaptchaenterprise.v1.CreateAssessmentRequest.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.CreateAssessmentRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -518,25 +467,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getAssessmentFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getAssessmentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -546,28 +494,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the project in which the assessment will be created,
      * in the format `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -576,24 +519,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the project in which the assessment will be created,
      * in the format `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -601,41 +541,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the project in which the assessment will be created,
      * in the format `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the project in which the assessment will be created,
      * in the format `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -645,24 +574,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The name of the project in which the assessment will be created,
      * in the format `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -672,58 +595,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.recaptchaenterprise.v1.Assessment assessment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.Assessment, - com.google.recaptchaenterprise.v1.Assessment.Builder, - com.google.recaptchaenterprise.v1.AssessmentOrBuilder> - assessmentBuilder_; + com.google.recaptchaenterprise.v1.Assessment, com.google.recaptchaenterprise.v1.Assessment.Builder, com.google.recaptchaenterprise.v1.AssessmentOrBuilder> assessmentBuilder_; /** - * - * *
      * Required. The assessment details.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the assessment field is set. */ public boolean hasAssessment() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The assessment details.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The assessment. */ public com.google.recaptchaenterprise.v1.Assessment getAssessment() { if (assessmentBuilder_ == null) { - return assessment_ == null - ? com.google.recaptchaenterprise.v1.Assessment.getDefaultInstance() - : assessment_; + return assessment_ == null ? com.google.recaptchaenterprise.v1.Assessment.getDefaultInstance() : assessment_; } else { return assessmentBuilder_.getMessage(); } } /** - * - * *
      * Required. The assessment details.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAssessment(com.google.recaptchaenterprise.v1.Assessment value) { if (assessmentBuilder_ == null) { @@ -739,15 +643,11 @@ public Builder setAssessment(com.google.recaptchaenterprise.v1.Assessment value) return this; } /** - * - * *
      * Required. The assessment details.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAssessment( com.google.recaptchaenterprise.v1.Assessment.Builder builderForValue) { @@ -761,21 +661,17 @@ public Builder setAssessment( return this; } /** - * - * *
      * Required. The assessment details.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeAssessment(com.google.recaptchaenterprise.v1.Assessment value) { if (assessmentBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && assessment_ != null - && assessment_ != com.google.recaptchaenterprise.v1.Assessment.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + assessment_ != null && + assessment_ != com.google.recaptchaenterprise.v1.Assessment.getDefaultInstance()) { getAssessmentBuilder().mergeFrom(value); } else { assessment_ = value; @@ -788,15 +684,11 @@ public Builder mergeAssessment(com.google.recaptchaenterprise.v1.Assessment valu return this; } /** - * - * *
      * Required. The assessment details.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAssessment() { bitField0_ = (bitField0_ & ~0x00000002); @@ -809,15 +701,11 @@ public Builder clearAssessment() { return this; } /** - * - * *
      * Required. The assessment details.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.recaptchaenterprise.v1.Assessment.Builder getAssessmentBuilder() { bitField0_ |= 0x00000002; @@ -825,55 +713,43 @@ public com.google.recaptchaenterprise.v1.Assessment.Builder getAssessmentBuilder return getAssessmentFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The assessment details.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.recaptchaenterprise.v1.AssessmentOrBuilder getAssessmentOrBuilder() { if (assessmentBuilder_ != null) { return assessmentBuilder_.getMessageOrBuilder(); } else { - return assessment_ == null - ? com.google.recaptchaenterprise.v1.Assessment.getDefaultInstance() - : assessment_; + return assessment_ == null ? + com.google.recaptchaenterprise.v1.Assessment.getDefaultInstance() : assessment_; } } /** - * - * *
      * Required. The assessment details.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.Assessment, - com.google.recaptchaenterprise.v1.Assessment.Builder, - com.google.recaptchaenterprise.v1.AssessmentOrBuilder> + com.google.recaptchaenterprise.v1.Assessment, com.google.recaptchaenterprise.v1.Assessment.Builder, com.google.recaptchaenterprise.v1.AssessmentOrBuilder> getAssessmentFieldBuilder() { if (assessmentBuilder_ == null) { - assessmentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.Assessment, - com.google.recaptchaenterprise.v1.Assessment.Builder, - com.google.recaptchaenterprise.v1.AssessmentOrBuilder>( - getAssessment(), getParentForChildren(), isClean()); + assessmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.Assessment, com.google.recaptchaenterprise.v1.Assessment.Builder, com.google.recaptchaenterprise.v1.AssessmentOrBuilder>( + getAssessment(), + getParentForChildren(), + isClean()); assessment_ = null; } return assessmentBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -883,12 +759,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.CreateAssessmentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.CreateAssessmentRequest) private static final com.google.recaptchaenterprise.v1.CreateAssessmentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.CreateAssessmentRequest(); } @@ -897,27 +773,27 @@ public static com.google.recaptchaenterprise.v1.CreateAssessmentRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateAssessmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAssessmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -932,4 +808,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.CreateAssessmentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequestOrBuilder.java new file mode 100644 index 000000000000..5cc6262ea020 --- /dev/null +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateAssessmentRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface CreateAssessmentRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.CreateAssessmentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the project in which the assessment will be created,
+   * in the format `projects/{project}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The name of the project in which the assessment will be created,
+   * in the format `projects/{project}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The assessment details.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the assessment field is set. + */ + boolean hasAssessment(); + /** + *
+   * Required. The assessment details.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The assessment. + */ + com.google.recaptchaenterprise.v1.Assessment getAssessment(); + /** + *
+   * Required. The assessment details.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.recaptchaenterprise.v1.AssessmentOrBuilder getAssessmentOrBuilder(); +} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequest.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequest.java similarity index 60% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequest.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequest.java index 6c5e3b81c99e..b4688546a6d7 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequest.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * The create firewall policy request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.CreateFirewallPolicyRequest} */ -public final class CreateFirewallPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateFirewallPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.CreateFirewallPolicyRequest) CreateFirewallPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateFirewallPolicyRequest.newBuilder() to construct. private CreateFirewallPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateFirewallPolicyRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateFirewallPolicyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.class, - com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.Builder.class); + com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.class, com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The name of the project this policy will apply to, in the format
    * `projects/{project}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -86,32 +61,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The name of the project this policy will apply to, in the format
    * `projects/{project}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -122,16 +95,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FIREWALL_POLICY_FIELD_NUMBER = 2; private com.google.recaptchaenterprise.v1.FirewallPolicy firewallPolicy_; /** - * - * *
    * Required. Information to create the policy.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the firewallPolicy field is set. */ @java.lang.Override @@ -139,44 +107,30 @@ public boolean hasFirewallPolicy() { return firewallPolicy_ != null; } /** - * - * *
    * Required. Information to create the policy.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The firewallPolicy. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy() { - return firewallPolicy_ == null - ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() - : firewallPolicy_; + return firewallPolicy_ == null ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() : firewallPolicy_; } /** - * - * *
    * Required. Information to create the policy.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPolicyOrBuilder() { - return firewallPolicy_ == null - ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() - : firewallPolicy_; + return firewallPolicy_ == null ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() : firewallPolicy_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +142,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -208,7 +163,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (firewallPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFirewallPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFirewallPolicy()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -218,18 +174,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest other = - (com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest) obj; + com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest other = (com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasFirewallPolicy() != other.hasFirewallPolicy()) return false; if (hasFirewallPolicy()) { - if (!getFirewallPolicy().equals(other.getFirewallPolicy())) return false; + if (!getFirewallPolicy() + .equals(other.getFirewallPolicy())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -254,136 +211,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The create firewall policy request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.CreateFirewallPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.CreateFirewallPolicyRequest) com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.class, - com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.Builder.class); + com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.class, com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -398,14 +350,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.getDefaultInstance(); } @@ -420,24 +371,21 @@ public com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest buildPartial() { - com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest result = - new com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest result = new com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest result) { + private void buildPartial0(com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.firewallPolicy_ = - firewallPolicyBuilder_ == null ? firewallPolicy_ : firewallPolicyBuilder_.build(); + result.firewallPolicy_ = firewallPolicyBuilder_ == null + ? firewallPolicy_ + : firewallPolicyBuilder_.build(); } } @@ -445,39 +393,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest) other); + return mergeFrom((com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -485,9 +432,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest other) { - if (other - == com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -522,25 +467,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getFirewallPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getFirewallPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -550,28 +494,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the project this policy will apply to, in the format
      * `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -580,24 +519,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the project this policy will apply to, in the format
      * `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -605,41 +541,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the project this policy will apply to, in the format
      * `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the project this policy will apply to, in the format
      * `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -649,24 +574,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The name of the project this policy will apply to, in the format
      * `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -676,58 +595,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.recaptchaenterprise.v1.FirewallPolicy firewallPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicy, - com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, - com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> - firewallPolicyBuilder_; + com.google.recaptchaenterprise.v1.FirewallPolicy, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> firewallPolicyBuilder_; /** - * - * *
      * Required. Information to create the policy.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the firewallPolicy field is set. */ public boolean hasFirewallPolicy() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Information to create the policy.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The firewallPolicy. */ public com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy() { if (firewallPolicyBuilder_ == null) { - return firewallPolicy_ == null - ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() - : firewallPolicy_; + return firewallPolicy_ == null ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() : firewallPolicy_; } else { return firewallPolicyBuilder_.getMessage(); } } /** - * - * *
      * Required. Information to create the policy.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFirewallPolicy(com.google.recaptchaenterprise.v1.FirewallPolicy value) { if (firewallPolicyBuilder_ == null) { @@ -743,15 +643,11 @@ public Builder setFirewallPolicy(com.google.recaptchaenterprise.v1.FirewallPolic return this; } /** - * - * *
      * Required. Information to create the policy.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFirewallPolicy( com.google.recaptchaenterprise.v1.FirewallPolicy.Builder builderForValue) { @@ -765,22 +661,17 @@ public Builder setFirewallPolicy( return this; } /** - * - * *
      * Required. Information to create the policy.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeFirewallPolicy(com.google.recaptchaenterprise.v1.FirewallPolicy value) { if (firewallPolicyBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && firewallPolicy_ != null - && firewallPolicy_ - != com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + firewallPolicy_ != null && + firewallPolicy_ != com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance()) { getFirewallPolicyBuilder().mergeFrom(value); } else { firewallPolicy_ = value; @@ -793,15 +684,11 @@ public Builder mergeFirewallPolicy(com.google.recaptchaenterprise.v1.FirewallPol return this; } /** - * - * *
      * Required. Information to create the policy.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearFirewallPolicy() { bitField0_ = (bitField0_ & ~0x00000002); @@ -814,15 +701,11 @@ public Builder clearFirewallPolicy() { return this; } /** - * - * *
      * Required. Information to create the policy.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.recaptchaenterprise.v1.FirewallPolicy.Builder getFirewallPolicyBuilder() { bitField0_ |= 0x00000002; @@ -830,55 +713,43 @@ public com.google.recaptchaenterprise.v1.FirewallPolicy.Builder getFirewallPolic return getFirewallPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Information to create the policy.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPolicyOrBuilder() { if (firewallPolicyBuilder_ != null) { return firewallPolicyBuilder_.getMessageOrBuilder(); } else { - return firewallPolicy_ == null - ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() - : firewallPolicy_; + return firewallPolicy_ == null ? + com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() : firewallPolicy_; } } /** - * - * *
      * Required. Information to create the policy.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicy, - com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, - com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> + com.google.recaptchaenterprise.v1.FirewallPolicy, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> getFirewallPolicyFieldBuilder() { if (firewallPolicyBuilder_ == null) { - firewallPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicy, - com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, - com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder>( - getFirewallPolicy(), getParentForChildren(), isClean()); + firewallPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FirewallPolicy, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder>( + getFirewallPolicy(), + getParentForChildren(), + isClean()); firewallPolicy_ = null; } return firewallPolicyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -888,13 +759,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.CreateFirewallPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.CreateFirewallPolicyRequest) - private static final com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest(); } @@ -903,27 +773,27 @@ public static com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFirewallPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFirewallPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -938,4 +808,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.recaptchaenterprise.v1.CreateFirewallPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..724e60815eec --- /dev/null +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateFirewallPolicyRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface CreateFirewallPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.CreateFirewallPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the project this policy will apply to, in the format
+   * `projects/{project}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The name of the project this policy will apply to, in the format
+   * `projects/{project}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. Information to create the policy.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the firewallPolicy field is set. + */ + boolean hasFirewallPolicy(); + /** + *
+   * Required. Information to create the policy.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The firewallPolicy. + */ + com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy(); + /** + *
+   * Required. Information to create the policy.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPolicyOrBuilder(); +} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequest.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequest.java similarity index 62% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequest.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequest.java index d1b969d031d3..52a0c95472c2 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequest.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * The create key request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.CreateKeyRequest} */ -public final class CreateKeyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateKeyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.CreateKeyRequest) CreateKeyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateKeyRequest.newBuilder() to construct. private CreateKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateKeyRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateKeyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.CreateKeyRequest.class, - com.google.recaptchaenterprise.v1.CreateKeyRequest.Builder.class); + com.google.recaptchaenterprise.v1.CreateKeyRequest.class, com.google.recaptchaenterprise.v1.CreateKeyRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The name of the project in which the key will be created, in the
    * format `projects/{project}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -86,32 +61,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The name of the project in which the key will be created, in the
    * format `projects/{project}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -122,16 +95,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int KEY_FIELD_NUMBER = 2; private com.google.recaptchaenterprise.v1.Key key_; /** - * - * *
    * Required. Information to create a reCAPTCHA Enterprise key.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the key field is set. */ @java.lang.Override @@ -139,16 +107,11 @@ public boolean hasKey() { return key_ != null; } /** - * - * *
    * Required. Information to create a reCAPTCHA Enterprise key.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The key. */ @java.lang.Override @@ -156,15 +119,11 @@ public com.google.recaptchaenterprise.v1.Key getKey() { return key_ == null ? com.google.recaptchaenterprise.v1.Key.getDefaultInstance() : key_; } /** - * - * *
    * Required. Information to create a reCAPTCHA Enterprise key.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeyOrBuilder() { @@ -172,7 +131,6 @@ public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeyOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -184,7 +142,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -204,7 +163,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (key_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getKey()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getKey()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -214,18 +174,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.CreateKeyRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.CreateKeyRequest other = - (com.google.recaptchaenterprise.v1.CreateKeyRequest) obj; + com.google.recaptchaenterprise.v1.CreateKeyRequest other = (com.google.recaptchaenterprise.v1.CreateKeyRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasKey() != other.hasKey()) return false; if (hasKey()) { - if (!getKey().equals(other.getKey())) return false; + if (!getKey() + .equals(other.getKey())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -250,135 +211,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.CreateKeyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.CreateKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The create key request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.CreateKeyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.CreateKeyRequest) com.google.recaptchaenterprise.v1.CreateKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.CreateKeyRequest.class, - com.google.recaptchaenterprise.v1.CreateKeyRequest.Builder.class); + com.google.recaptchaenterprise.v1.CreateKeyRequest.class, com.google.recaptchaenterprise.v1.CreateKeyRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.CreateKeyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -393,9 +350,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor; } @java.lang.Override @@ -414,11 +371,8 @@ public com.google.recaptchaenterprise.v1.CreateKeyRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.CreateKeyRequest buildPartial() { - com.google.recaptchaenterprise.v1.CreateKeyRequest result = - new com.google.recaptchaenterprise.v1.CreateKeyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.CreateKeyRequest result = new com.google.recaptchaenterprise.v1.CreateKeyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -429,7 +383,9 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.CreateKeyRequest re result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.key_ = keyBuilder_ == null ? key_ : keyBuilder_.build(); + result.key_ = keyBuilder_ == null + ? key_ + : keyBuilder_.build(); } } @@ -437,39 +393,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.CreateKeyRequest re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.CreateKeyRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.CreateKeyRequest) other); + return mergeFrom((com.google.recaptchaenterprise.v1.CreateKeyRequest)other); } else { super.mergeFrom(other); return this; @@ -477,8 +432,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.CreateKeyRequest other) { - if (other == com.google.recaptchaenterprise.v1.CreateKeyRequest.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.CreateKeyRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -513,25 +467,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getKeyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getKeyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -541,28 +494,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the project in which the key will be created, in the
      * format `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -571,24 +519,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the project in which the key will be created, in the
      * format `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -596,41 +541,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the project in which the key will be created, in the
      * format `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the project in which the key will be created, in the
      * format `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -640,24 +574,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The name of the project in which the key will be created, in the
      * format `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -667,37 +595,24 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.recaptchaenterprise.v1.Key key_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.Key, - com.google.recaptchaenterprise.v1.Key.Builder, - com.google.recaptchaenterprise.v1.KeyOrBuilder> - keyBuilder_; + com.google.recaptchaenterprise.v1.Key, com.google.recaptchaenterprise.v1.Key.Builder, com.google.recaptchaenterprise.v1.KeyOrBuilder> keyBuilder_; /** - * - * *
      * Required. Information to create a reCAPTCHA Enterprise key.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the key field is set. */ public boolean hasKey() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Information to create a reCAPTCHA Enterprise key.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The key. */ public com.google.recaptchaenterprise.v1.Key getKey() { @@ -708,15 +623,11 @@ public com.google.recaptchaenterprise.v1.Key getKey() { } } /** - * - * *
      * Required. Information to create a reCAPTCHA Enterprise key.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setKey(com.google.recaptchaenterprise.v1.Key value) { if (keyBuilder_ == null) { @@ -732,17 +643,14 @@ public Builder setKey(com.google.recaptchaenterprise.v1.Key value) { return this; } /** - * - * *
      * Required. Information to create a reCAPTCHA Enterprise key.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setKey(com.google.recaptchaenterprise.v1.Key.Builder builderForValue) { + public Builder setKey( + com.google.recaptchaenterprise.v1.Key.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); } else { @@ -753,21 +661,17 @@ public Builder setKey(com.google.recaptchaenterprise.v1.Key.Builder builderForVa return this; } /** - * - * *
      * Required. Information to create a reCAPTCHA Enterprise key.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeKey(com.google.recaptchaenterprise.v1.Key value) { if (keyBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && key_ != null - && key_ != com.google.recaptchaenterprise.v1.Key.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + key_ != null && + key_ != com.google.recaptchaenterprise.v1.Key.getDefaultInstance()) { getKeyBuilder().mergeFrom(value); } else { key_ = value; @@ -780,15 +684,11 @@ public Builder mergeKey(com.google.recaptchaenterprise.v1.Key value) { return this; } /** - * - * *
      * Required. Information to create a reCAPTCHA Enterprise key.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000002); @@ -801,15 +701,11 @@ public Builder clearKey() { return this; } /** - * - * *
      * Required. Information to create a reCAPTCHA Enterprise key.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.recaptchaenterprise.v1.Key.Builder getKeyBuilder() { bitField0_ |= 0x00000002; @@ -817,53 +713,43 @@ public com.google.recaptchaenterprise.v1.Key.Builder getKeyBuilder() { return getKeyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Information to create a reCAPTCHA Enterprise key.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { - return key_ == null ? com.google.recaptchaenterprise.v1.Key.getDefaultInstance() : key_; + return key_ == null ? + com.google.recaptchaenterprise.v1.Key.getDefaultInstance() : key_; } } /** - * - * *
      * Required. Information to create a reCAPTCHA Enterprise key.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.Key, - com.google.recaptchaenterprise.v1.Key.Builder, - com.google.recaptchaenterprise.v1.KeyOrBuilder> + com.google.recaptchaenterprise.v1.Key, com.google.recaptchaenterprise.v1.Key.Builder, com.google.recaptchaenterprise.v1.KeyOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { - keyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.Key, - com.google.recaptchaenterprise.v1.Key.Builder, - com.google.recaptchaenterprise.v1.KeyOrBuilder>( - getKey(), getParentForChildren(), isClean()); + keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.Key, com.google.recaptchaenterprise.v1.Key.Builder, com.google.recaptchaenterprise.v1.KeyOrBuilder>( + getKey(), + getParentForChildren(), + isClean()); key_ = null; } return keyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -873,12 +759,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.CreateKeyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.CreateKeyRequest) private static final com.google.recaptchaenterprise.v1.CreateKeyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.CreateKeyRequest(); } @@ -887,27 +773,27 @@ public static com.google.recaptchaenterprise.v1.CreateKeyRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -922,4 +808,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.CreateKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequestOrBuilder.java new file mode 100644 index 000000000000..d0b8248e37c3 --- /dev/null +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/CreateKeyRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface CreateKeyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.CreateKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the project in which the key will be created, in the
+   * format `projects/{project}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The name of the project in which the key will be created, in the
+   * format `projects/{project}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. Information to create a reCAPTCHA Enterprise key.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the key field is set. + */ + boolean hasKey(); + /** + *
+   * Required. Information to create a reCAPTCHA Enterprise key.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The key. + */ + com.google.recaptchaenterprise.v1.Key getKey(); + /** + *
+   * Required. Information to create a reCAPTCHA Enterprise key.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.recaptchaenterprise.v1.KeyOrBuilder getKeyOrBuilder(); +} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequest.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequest.java similarity index 62% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequest.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequest.java index fd5f491b10d6..b425f6f2fb88 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequest.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * The delete firewall policy request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.DeleteFirewallPolicyRequest} */ -public final class DeleteFirewallPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteFirewallPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.DeleteFirewallPolicyRequest) DeleteFirewallPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteFirewallPolicyRequest.newBuilder() to construct. private DeleteFirewallPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteFirewallPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteFirewallPolicyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.class, - com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.Builder.class); + com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.class, com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the policy to be deleted, in the format
    * `projects/{project}/firewallpolicies/{firewallpolicy}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -86,32 +61,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the policy to be deleted, in the format
    * `projects/{project}/firewallpolicies/{firewallpolicy}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -156,15 +129,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest other = - (com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest) obj; + com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest other = (com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,136 +157,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The delete firewall policy request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.DeleteFirewallPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.DeleteFirewallPolicyRequest) com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.class, - com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.Builder.class); + com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.class, com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,14 +291,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.getDefaultInstance(); } @@ -345,17 +312,13 @@ public com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest buildPartial() { - com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest result = - new com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest result = new com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest result) { + private void buildPartial0(com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -366,39 +329,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest) other); + return mergeFrom((com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -406,9 +368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest other) { - if (other - == com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -440,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the policy to be deleted, in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -492,24 +445,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the policy to be deleted, in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -517,41 +467,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the policy to be deleted, in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the policy to be deleted, in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -561,33 +500,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the policy to be deleted, in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -597,13 +530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.DeleteFirewallPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.DeleteFirewallPolicyRequest) - private static final com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest(); } @@ -612,27 +544,27 @@ public static com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteFirewallPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFirewallPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +579,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.recaptchaenterprise.v1.DeleteFirewallPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..fab5537ca7a7 --- /dev/null +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteFirewallPolicyRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface DeleteFirewallPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.DeleteFirewallPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the policy to be deleted, in the format
+   * `projects/{project}/firewallpolicies/{firewallpolicy}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the policy to be deleted, in the format
+   * `projects/{project}/firewallpolicies/{firewallpolicy}`.
+   * 
+ * + * 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/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequest.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequest.java similarity index 63% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequest.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequest.java index c4aca67819e4..e7c0abb467e4 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequest.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * The delete key request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.DeleteKeyRequest} */ -public final class DeleteKeyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteKeyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.DeleteKeyRequest) DeleteKeyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteKeyRequest.newBuilder() to construct. private DeleteKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteKeyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteKeyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.DeleteKeyRequest.class, - com.google.recaptchaenterprise.v1.DeleteKeyRequest.Builder.class); + com.google.recaptchaenterprise.v1.DeleteKeyRequest.class, com.google.recaptchaenterprise.v1.DeleteKeyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the key to be deleted, in the format
    * `projects/{project}/keys/{key}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -86,32 +61,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the key to be deleted, in the format
    * `projects/{project}/keys/{key}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -156,15 +129,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.DeleteKeyRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.DeleteKeyRequest other = - (com.google.recaptchaenterprise.v1.DeleteKeyRequest) obj; + com.google.recaptchaenterprise.v1.DeleteKeyRequest other = (com.google.recaptchaenterprise.v1.DeleteKeyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,135 +157,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.DeleteKeyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.DeleteKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The delete key request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.DeleteKeyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.DeleteKeyRequest) com.google.recaptchaenterprise.v1.DeleteKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.DeleteKeyRequest.class, - com.google.recaptchaenterprise.v1.DeleteKeyRequest.Builder.class); + com.google.recaptchaenterprise.v1.DeleteKeyRequest.class, com.google.recaptchaenterprise.v1.DeleteKeyRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.DeleteKeyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -322,9 +291,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor; } @java.lang.Override @@ -343,11 +312,8 @@ public com.google.recaptchaenterprise.v1.DeleteKeyRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.DeleteKeyRequest buildPartial() { - com.google.recaptchaenterprise.v1.DeleteKeyRequest result = - new com.google.recaptchaenterprise.v1.DeleteKeyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.DeleteKeyRequest result = new com.google.recaptchaenterprise.v1.DeleteKeyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -363,39 +329,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.DeleteKeyRequest re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.DeleteKeyRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.DeleteKeyRequest) other); + return mergeFrom((com.google.recaptchaenterprise.v1.DeleteKeyRequest)other); } else { super.mergeFrom(other); return this; @@ -403,8 +368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.DeleteKeyRequest other) { - if (other == com.google.recaptchaenterprise.v1.DeleteKeyRequest.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.DeleteKeyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -436,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -458,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the key to be deleted, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -488,24 +445,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the key to be deleted, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -513,41 +467,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the key to be deleted, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the key to be deleted, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -557,33 +500,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the key to be deleted, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -593,12 +530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.DeleteKeyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.DeleteKeyRequest) private static final com.google.recaptchaenterprise.v1.DeleteKeyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.DeleteKeyRequest(); } @@ -607,27 +544,27 @@ public static com.google.recaptchaenterprise.v1.DeleteKeyRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -642,4 +579,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.DeleteKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequestOrBuilder.java new file mode 100644 index 000000000000..574cd7d41bee --- /dev/null +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/DeleteKeyRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface DeleteKeyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.DeleteKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the key to be deleted, in the format
+   * `projects/{project}/keys/{key}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the key to be deleted, in the format
+   * `projects/{project}/keys/{key}`.
+   * 
+ * + * 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/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfo.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfo.java similarity index 68% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfo.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfo.java index fa18a774ce5b..3f7efea5ae6b 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfo.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfo.java @@ -1,81 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * Information about a verification endpoint that can be used for 2FA.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo} */ -public final class EndpointVerificationInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EndpointVerificationInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo) EndpointVerificationInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EndpointVerificationInfo.newBuilder() to construct. private EndpointVerificationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EndpointVerificationInfo() { requestToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EndpointVerificationInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.EndpointVerificationInfo.class, - com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder.class); + com.google.recaptchaenterprise.v1.EndpointVerificationInfo.class, com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder.class); } private int endpointCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object endpoint_; - public enum EndpointCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { EMAIL_ADDRESS(1), PHONE_NUMBER(2), ENDPOINT_NOT_SET(0); private final int value; - private EndpointCase(int value) { this.value = value; } @@ -91,50 +68,41 @@ public static EndpointCase valueOf(int value) { public static EndpointCase forNumber(int value) { switch (value) { - case 1: - return EMAIL_ADDRESS; - case 2: - return PHONE_NUMBER; - case 0: - return ENDPOINT_NOT_SET; - default: - return null; + case 1: return EMAIL_ADDRESS; + case 2: return PHONE_NUMBER; + case 0: return ENDPOINT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public EndpointCase getEndpointCase() { - return EndpointCase.forNumber(endpointCase_); + public EndpointCase + getEndpointCase() { + return EndpointCase.forNumber( + endpointCase_); } public static final int EMAIL_ADDRESS_FIELD_NUMBER = 1; /** - * - * *
    * Email address for which to trigger a verification request.
    * 
* * string email_address = 1; - * * @return Whether the emailAddress field is set. */ public boolean hasEmailAddress() { return endpointCase_ == 1; } /** - * - * *
    * Email address for which to trigger a verification request.
    * 
* * string email_address = 1; - * * @return The emailAddress. */ public java.lang.String getEmailAddress() { @@ -145,7 +113,8 @@ public java.lang.String getEmailAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (endpointCase_ == 1) { endpoint_ = s; @@ -154,24 +123,23 @@ public java.lang.String getEmailAddress() { } } /** - * - * *
    * Email address for which to trigger a verification request.
    * 
* * string email_address = 1; - * * @return The bytes for emailAddress. */ - public com.google.protobuf.ByteString getEmailAddressBytes() { + public com.google.protobuf.ByteString + getEmailAddressBytes() { java.lang.Object ref = ""; if (endpointCase_ == 1) { ref = endpoint_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (endpointCase_ == 1) { endpoint_ = b; } @@ -183,30 +151,24 @@ public com.google.protobuf.ByteString getEmailAddressBytes() { public static final int PHONE_NUMBER_FIELD_NUMBER = 2; /** - * - * *
    * Phone number for which to trigger a verification request. Should be given
    * in E.164 format.
    * 
* * string phone_number = 2; - * * @return Whether the phoneNumber field is set. */ public boolean hasPhoneNumber() { return endpointCase_ == 2; } /** - * - * *
    * Phone number for which to trigger a verification request. Should be given
    * in E.164 format.
    * 
* * string phone_number = 2; - * * @return The phoneNumber. */ public java.lang.String getPhoneNumber() { @@ -217,7 +179,8 @@ public java.lang.String getPhoneNumber() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (endpointCase_ == 2) { endpoint_ = s; @@ -226,25 +189,24 @@ public java.lang.String getPhoneNumber() { } } /** - * - * *
    * Phone number for which to trigger a verification request. Should be given
    * in E.164 format.
    * 
* * string phone_number = 2; - * * @return The bytes for phoneNumber. */ - public com.google.protobuf.ByteString getPhoneNumberBytes() { + public com.google.protobuf.ByteString + getPhoneNumberBytes() { java.lang.Object ref = ""; if (endpointCase_ == 2) { ref = endpoint_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (endpointCase_ == 2) { endpoint_ = b; } @@ -255,19 +217,15 @@ public com.google.protobuf.ByteString getPhoneNumberBytes() { } public static final int REQUEST_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object requestToken_ = ""; /** - * - * *
    * Output only. Token to provide to the client to trigger endpoint
    * verification. It must be used within 15 minutes.
    * 
* * string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestToken. */ @java.lang.Override @@ -276,30 +234,30 @@ public java.lang.String getRequestToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestToken_ = s; return s; } } /** - * - * *
    * Output only. Token to provide to the client to trigger endpoint
    * verification. It must be used within 15 minutes.
    * 
* * string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for requestToken. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestTokenBytes() { + public com.google.protobuf.ByteString + getRequestTokenBytes() { java.lang.Object ref = requestToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestToken_ = b; return b; } else { @@ -310,17 +268,12 @@ public com.google.protobuf.ByteString getRequestTokenBytes() { public static final int LAST_VERIFICATION_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp lastVerificationTime_; /** - * - * *
    * Output only. Timestamp of the last successful verification for the
    * endpoint, if any.
    * 
* - * - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the lastVerificationTime field is set. */ @java.lang.Override @@ -328,46 +281,32 @@ public boolean hasLastVerificationTime() { return lastVerificationTime_ != null; } /** - * - * *
    * Output only. Timestamp of the last successful verification for the
    * endpoint, if any.
    * 
* - * - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lastVerificationTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastVerificationTime() { - return lastVerificationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastVerificationTime_; + return lastVerificationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastVerificationTime_; } /** - * - * *
    * Output only. Timestamp of the last successful verification for the
    * endpoint, if any.
    * 
* - * - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastVerificationTimeOrBuilder() { - return lastVerificationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastVerificationTime_; + return lastVerificationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastVerificationTime_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -379,7 +318,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (endpointCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, endpoint_); } @@ -411,8 +351,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestToken_); } if (lastVerificationTime_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastVerificationTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getLastVerificationTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -422,26 +362,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.EndpointVerificationInfo)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.EndpointVerificationInfo other = - (com.google.recaptchaenterprise.v1.EndpointVerificationInfo) obj; + com.google.recaptchaenterprise.v1.EndpointVerificationInfo other = (com.google.recaptchaenterprise.v1.EndpointVerificationInfo) obj; - if (!getRequestToken().equals(other.getRequestToken())) return false; + if (!getRequestToken() + .equals(other.getRequestToken())) return false; if (hasLastVerificationTime() != other.hasLastVerificationTime()) return false; if (hasLastVerificationTime()) { - if (!getLastVerificationTime().equals(other.getLastVerificationTime())) return false; + if (!getLastVerificationTime() + .equals(other.getLastVerificationTime())) return false; } if (!getEndpointCase().equals(other.getEndpointCase())) return false; switch (endpointCase_) { case 1: - if (!getEmailAddress().equals(other.getEmailAddress())) return false; + if (!getEmailAddress() + .equals(other.getEmailAddress())) return false; break; case 2: - if (!getPhoneNumber().equals(other.getPhoneNumber())) return false; + if (!getPhoneNumber() + .equals(other.getPhoneNumber())) return false; break; case 0: default: @@ -481,136 +424,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.EndpointVerificationInfo prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.EndpointVerificationInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information about a verification endpoint that can be used for 2FA.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo) com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.EndpointVerificationInfo.class, - com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder.class); + com.google.recaptchaenterprise.v1.EndpointVerificationInfo.class, com.google.recaptchaenterprise.v1.EndpointVerificationInfo.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.EndpointVerificationInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -627,9 +565,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_descriptor; } @java.lang.Override @@ -648,11 +586,8 @@ public com.google.recaptchaenterprise.v1.EndpointVerificationInfo build() { @java.lang.Override public com.google.recaptchaenterprise.v1.EndpointVerificationInfo buildPartial() { - com.google.recaptchaenterprise.v1.EndpointVerificationInfo result = - new com.google.recaptchaenterprise.v1.EndpointVerificationInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.EndpointVerificationInfo result = new com.google.recaptchaenterprise.v1.EndpointVerificationInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -664,15 +599,13 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.EndpointVerificatio result.requestToken_ = requestToken_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.lastVerificationTime_ = - lastVerificationTimeBuilder_ == null - ? lastVerificationTime_ - : lastVerificationTimeBuilder_.build(); + result.lastVerificationTime_ = lastVerificationTimeBuilder_ == null + ? lastVerificationTime_ + : lastVerificationTimeBuilder_.build(); } } - private void buildPartialOneofs( - com.google.recaptchaenterprise.v1.EndpointVerificationInfo result) { + private void buildPartialOneofs(com.google.recaptchaenterprise.v1.EndpointVerificationInfo result) { result.endpointCase_ = endpointCase_; result.endpoint_ = this.endpoint_; } @@ -681,39 +614,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.EndpointVerificationInfo) { - return mergeFrom((com.google.recaptchaenterprise.v1.EndpointVerificationInfo) other); + return mergeFrom((com.google.recaptchaenterprise.v1.EndpointVerificationInfo)other); } else { super.mergeFrom(other); return this; @@ -721,8 +653,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.EndpointVerificationInfo other) { - if (other == com.google.recaptchaenterprise.v1.EndpointVerificationInfo.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.EndpointVerificationInfo.getDefaultInstance()) return this; if (!other.getRequestToken().isEmpty()) { requestToken_ = other.requestToken_; bitField0_ |= 0x00000004; @@ -732,24 +663,21 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.EndpointVerificationI mergeLastVerificationTime(other.getLastVerificationTime()); } switch (other.getEndpointCase()) { - case EMAIL_ADDRESS: - { - endpointCase_ = 1; - endpoint_ = other.endpoint_; - onChanged(); - break; - } - case PHONE_NUMBER: - { - endpointCase_ = 2; - endpoint_ = other.endpoint_; - onChanged(); - break; - } - case ENDPOINT_NOT_SET: - { - break; - } + case EMAIL_ADDRESS: { + endpointCase_ = 1; + endpoint_ = other.endpoint_; + onChanged(); + break; + } + case PHONE_NUMBER: { + endpointCase_ = 2; + endpoint_ = other.endpoint_; + onChanged(); + break; + } + case ENDPOINT_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -777,40 +705,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - endpointCase_ = 1; - endpoint_ = s; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - endpointCase_ = 2; - endpoint_ = s; - break; - } // case 18 - case 26: - { - requestToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getLastVerificationTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + endpointCase_ = 1; + endpoint_ = s; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + endpointCase_ = 2; + endpoint_ = s; + break; + } // case 18 + case 26: { + requestToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getLastVerificationTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -820,12 +744,12 @@ public Builder mergeFrom( } // finally return this; } - private int endpointCase_ = 0; private java.lang.Object endpoint_; - - public EndpointCase getEndpointCase() { - return EndpointCase.forNumber(endpointCase_); + public EndpointCase + getEndpointCase() { + return EndpointCase.forNumber( + endpointCase_); } public Builder clearEndpoint() { @@ -838,14 +762,11 @@ public Builder clearEndpoint() { private int bitField0_; /** - * - * *
      * Email address for which to trigger a verification request.
      * 
* * string email_address = 1; - * * @return Whether the emailAddress field is set. */ @java.lang.Override @@ -853,14 +774,11 @@ public boolean hasEmailAddress() { return endpointCase_ == 1; } /** - * - * *
      * Email address for which to trigger a verification request.
      * 
* * string email_address = 1; - * * @return The emailAddress. */ @java.lang.Override @@ -870,7 +788,8 @@ public java.lang.String getEmailAddress() { ref = endpoint_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (endpointCase_ == 1) { endpoint_ = s; @@ -881,25 +800,24 @@ public java.lang.String getEmailAddress() { } } /** - * - * *
      * Email address for which to trigger a verification request.
      * 
* * string email_address = 1; - * * @return The bytes for emailAddress. */ @java.lang.Override - public com.google.protobuf.ByteString getEmailAddressBytes() { + public com.google.protobuf.ByteString + getEmailAddressBytes() { java.lang.Object ref = ""; if (endpointCase_ == 1) { ref = endpoint_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (endpointCase_ == 1) { endpoint_ = b; } @@ -909,35 +827,28 @@ public com.google.protobuf.ByteString getEmailAddressBytes() { } } /** - * - * *
      * Email address for which to trigger a verification request.
      * 
* * string email_address = 1; - * * @param value The emailAddress to set. * @return This builder for chaining. */ - public Builder setEmailAddress(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEmailAddress( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } endpointCase_ = 1; endpoint_ = value; onChanged(); return this; } /** - * - * *
      * Email address for which to trigger a verification request.
      * 
* * string email_address = 1; - * * @return This builder for chaining. */ public Builder clearEmailAddress() { @@ -949,21 +860,17 @@ public Builder clearEmailAddress() { return this; } /** - * - * *
      * Email address for which to trigger a verification request.
      * 
* * string email_address = 1; - * * @param value The bytes for emailAddress to set. * @return This builder for chaining. */ - public Builder setEmailAddressBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEmailAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); endpointCase_ = 1; endpoint_ = value; @@ -972,15 +879,12 @@ public Builder setEmailAddressBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * Phone number for which to trigger a verification request. Should be given
      * in E.164 format.
      * 
* * string phone_number = 2; - * * @return Whether the phoneNumber field is set. */ @java.lang.Override @@ -988,15 +892,12 @@ public boolean hasPhoneNumber() { return endpointCase_ == 2; } /** - * - * *
      * Phone number for which to trigger a verification request. Should be given
      * in E.164 format.
      * 
* * string phone_number = 2; - * * @return The phoneNumber. */ @java.lang.Override @@ -1006,7 +907,8 @@ public java.lang.String getPhoneNumber() { ref = endpoint_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (endpointCase_ == 2) { endpoint_ = s; @@ -1017,26 +919,25 @@ public java.lang.String getPhoneNumber() { } } /** - * - * *
      * Phone number for which to trigger a verification request. Should be given
      * in E.164 format.
      * 
* * string phone_number = 2; - * * @return The bytes for phoneNumber. */ @java.lang.Override - public com.google.protobuf.ByteString getPhoneNumberBytes() { + public com.google.protobuf.ByteString + getPhoneNumberBytes() { java.lang.Object ref = ""; if (endpointCase_ == 2) { ref = endpoint_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (endpointCase_ == 2) { endpoint_ = b; } @@ -1046,37 +947,30 @@ public com.google.protobuf.ByteString getPhoneNumberBytes() { } } /** - * - * *
      * Phone number for which to trigger a verification request. Should be given
      * in E.164 format.
      * 
* * string phone_number = 2; - * * @param value The phoneNumber to set. * @return This builder for chaining. */ - public Builder setPhoneNumber(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhoneNumber( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } endpointCase_ = 2; endpoint_ = value; onChanged(); return this; } /** - * - * *
      * Phone number for which to trigger a verification request. Should be given
      * in E.164 format.
      * 
* * string phone_number = 2; - * * @return This builder for chaining. */ public Builder clearPhoneNumber() { @@ -1088,22 +982,18 @@ public Builder clearPhoneNumber() { return this; } /** - * - * *
      * Phone number for which to trigger a verification request. Should be given
      * in E.164 format.
      * 
* * string phone_number = 2; - * * @param value The bytes for phoneNumber to set. * @return This builder for chaining. */ - public Builder setPhoneNumberBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhoneNumberBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); endpointCase_ = 2; endpoint_ = value; @@ -1113,21 +1003,19 @@ public Builder setPhoneNumberBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestToken_ = ""; /** - * - * *
      * Output only. Token to provide to the client to trigger endpoint
      * verification. It must be used within 15 minutes.
      * 
* * string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestToken. */ public java.lang.String getRequestToken() { java.lang.Object ref = requestToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestToken_ = s; return s; @@ -1136,22 +1024,21 @@ public java.lang.String getRequestToken() { } } /** - * - * *
      * Output only. Token to provide to the client to trigger endpoint
      * verification. It must be used within 15 minutes.
      * 
* * string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for requestToken. */ - public com.google.protobuf.ByteString getRequestTokenBytes() { + public com.google.protobuf.ByteString + getRequestTokenBytes() { java.lang.Object ref = requestToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestToken_ = b; return b; } else { @@ -1159,37 +1046,30 @@ public com.google.protobuf.ByteString getRequestTokenBytes() { } } /** - * - * *
      * Output only. Token to provide to the client to trigger endpoint
      * verification. It must be used within 15 minutes.
      * 
* * string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The requestToken to set. * @return This builder for chaining. */ - public Builder setRequestToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. Token to provide to the client to trigger endpoint
      * verification. It must be used within 15 minutes.
      * 
* * string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRequestToken() { @@ -1199,22 +1079,18 @@ public Builder clearRequestToken() { return this; } /** - * - * *
      * Output only. Token to provide to the client to trigger endpoint
      * verification. It must be used within 15 minutes.
      * 
* * string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for requestToken to set. * @return This builder for chaining. */ - public Builder setRequestTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestToken_ = value; bitField0_ |= 0x00000004; @@ -1224,61 +1100,42 @@ public Builder setRequestTokenBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp lastVerificationTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lastVerificationTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastVerificationTimeBuilder_; /** - * - * *
      * Output only. Timestamp of the last successful verification for the
      * endpoint, if any.
      * 
* - * - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the lastVerificationTime field is set. */ public boolean hasLastVerificationTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Output only. Timestamp of the last successful verification for the
      * endpoint, if any.
      * 
* - * - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lastVerificationTime. */ public com.google.protobuf.Timestamp getLastVerificationTime() { if (lastVerificationTimeBuilder_ == null) { - return lastVerificationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastVerificationTime_; + return lastVerificationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastVerificationTime_; } else { return lastVerificationTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Timestamp of the last successful verification for the
      * endpoint, if any.
      * 
* - * - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setLastVerificationTime(com.google.protobuf.Timestamp value) { if (lastVerificationTimeBuilder_ == null) { @@ -1294,18 +1151,15 @@ public Builder setLastVerificationTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp of the last successful verification for the
      * endpoint, if any.
      * 
* - * - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setLastVerificationTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastVerificationTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (lastVerificationTimeBuilder_ == null) { lastVerificationTime_ = builderForValue.build(); } else { @@ -1316,22 +1170,18 @@ public Builder setLastVerificationTime(com.google.protobuf.Timestamp.Builder bui return this; } /** - * - * *
      * Output only. Timestamp of the last successful verification for the
      * endpoint, if any.
      * 
* - * - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeLastVerificationTime(com.google.protobuf.Timestamp value) { if (lastVerificationTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && lastVerificationTime_ != null - && lastVerificationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + lastVerificationTime_ != null && + lastVerificationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastVerificationTimeBuilder().mergeFrom(value); } else { lastVerificationTime_ = value; @@ -1344,16 +1194,12 @@ public Builder mergeLastVerificationTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp of the last successful verification for the
      * endpoint, if any.
      * 
* - * - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearLastVerificationTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1366,16 +1212,12 @@ public Builder clearLastVerificationTime() { return this; } /** - * - * *
      * Output only. Timestamp of the last successful verification for the
      * endpoint, if any.
      * 
* - * - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getLastVerificationTimeBuilder() { bitField0_ |= 0x00000008; @@ -1383,57 +1225,45 @@ public com.google.protobuf.Timestamp.Builder getLastVerificationTimeBuilder() { return getLastVerificationTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Timestamp of the last successful verification for the
      * endpoint, if any.
      * 
* - * - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getLastVerificationTimeOrBuilder() { if (lastVerificationTimeBuilder_ != null) { return lastVerificationTimeBuilder_.getMessageOrBuilder(); } else { - return lastVerificationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastVerificationTime_; + return lastVerificationTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : lastVerificationTime_; } } /** - * - * *
      * Output only. Timestamp of the last successful verification for the
      * endpoint, if any.
      * 
* - * - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastVerificationTimeFieldBuilder() { if (lastVerificationTimeBuilder_ == null) { - lastVerificationTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getLastVerificationTime(), getParentForChildren(), isClean()); + lastVerificationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getLastVerificationTime(), + getParentForChildren(), + isClean()); lastVerificationTime_ = null; } return lastVerificationTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1443,12 +1273,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo) private static final com.google.recaptchaenterprise.v1.EndpointVerificationInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.EndpointVerificationInfo(); } @@ -1457,27 +1287,27 @@ public static com.google.recaptchaenterprise.v1.EndpointVerificationInfo getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EndpointVerificationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EndpointVerificationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1492,4 +1322,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.EndpointVerificationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfoOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfoOrBuilder.java similarity index 69% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfoOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfoOrBuilder.java index c800e82ab62a..36e4adb1a24a 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfoOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EndpointVerificationInfoOrBuilder.java @@ -1,173 +1,122 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface EndpointVerificationInfoOrBuilder - extends +public interface EndpointVerificationInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Email address for which to trigger a verification request.
    * 
* * string email_address = 1; - * * @return Whether the emailAddress field is set. */ boolean hasEmailAddress(); /** - * - * *
    * Email address for which to trigger a verification request.
    * 
* * string email_address = 1; - * * @return The emailAddress. */ java.lang.String getEmailAddress(); /** - * - * *
    * Email address for which to trigger a verification request.
    * 
* * string email_address = 1; - * * @return The bytes for emailAddress. */ - com.google.protobuf.ByteString getEmailAddressBytes(); + com.google.protobuf.ByteString + getEmailAddressBytes(); /** - * - * *
    * Phone number for which to trigger a verification request. Should be given
    * in E.164 format.
    * 
* * string phone_number = 2; - * * @return Whether the phoneNumber field is set. */ boolean hasPhoneNumber(); /** - * - * *
    * Phone number for which to trigger a verification request. Should be given
    * in E.164 format.
    * 
* * string phone_number = 2; - * * @return The phoneNumber. */ java.lang.String getPhoneNumber(); /** - * - * *
    * Phone number for which to trigger a verification request. Should be given
    * in E.164 format.
    * 
* * string phone_number = 2; - * * @return The bytes for phoneNumber. */ - com.google.protobuf.ByteString getPhoneNumberBytes(); + com.google.protobuf.ByteString + getPhoneNumberBytes(); /** - * - * *
    * Output only. Token to provide to the client to trigger endpoint
    * verification. It must be used within 15 minutes.
    * 
* * string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestToken. */ java.lang.String getRequestToken(); /** - * - * *
    * Output only. Token to provide to the client to trigger endpoint
    * verification. It must be used within 15 minutes.
    * 
* * string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for requestToken. */ - com.google.protobuf.ByteString getRequestTokenBytes(); + com.google.protobuf.ByteString + getRequestTokenBytes(); /** - * - * *
    * Output only. Timestamp of the last successful verification for the
    * endpoint, if any.
    * 
* - * - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the lastVerificationTime field is set. */ boolean hasLastVerificationTime(); /** - * - * *
    * Output only. Timestamp of the last successful verification for the
    * endpoint, if any.
    * 
* - * - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lastVerificationTime. */ com.google.protobuf.Timestamp getLastVerificationTime(); /** - * - * *
    * Output only. Timestamp of the last successful verification for the
    * endpoint, if any.
    * 
* - * - * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getLastVerificationTimeOrBuilder(); diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Event.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Event.java similarity index 74% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Event.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Event.java index 889c85c7d203..f357e81443ab 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Event.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Event.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * The event being assessed.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.Event} */ -public final class Event extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Event extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.Event) EventOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Event.newBuilder() to construct. private Event(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Event() { token_ = ""; siteKey_ = ""; @@ -46,44 +28,40 @@ private Event() { hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; requestedUri_ = ""; ja3_ = ""; - headers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + headers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Event(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_Event_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Event_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_Event_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Event_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.Event.class, - com.google.recaptchaenterprise.v1.Event.Builder.class); + com.google.recaptchaenterprise.v1.Event.class, com.google.recaptchaenterprise.v1.Event.Builder.class); } public static final int TOKEN_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object token_ = ""; /** - * - * *
    * Optional. The user response token provided by the reCAPTCHA Enterprise
    * client-side integration on your site.
    * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The token. */ @java.lang.Override @@ -92,30 +70,30 @@ public java.lang.String getToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); token_ = s; return s; } } /** - * - * *
    * Optional. The user response token provided by the reCAPTCHA Enterprise
    * client-side integration on your site.
    * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for token. */ @java.lang.Override - public com.google.protobuf.ByteString getTokenBytes() { + public com.google.protobuf.ByteString + getTokenBytes() { java.lang.Object ref = token_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); token_ = b; return b; } else { @@ -124,19 +102,15 @@ public com.google.protobuf.ByteString getTokenBytes() { } public static final int SITE_KEY_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object siteKey_ = ""; /** - * - * *
    * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
    * site and generate the token.
    * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The siteKey. */ @java.lang.Override @@ -145,30 +119,30 @@ public java.lang.String getSiteKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); siteKey_ = s; return s; } } /** - * - * *
    * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
    * site and generate the token.
    * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for siteKey. */ @java.lang.Override - public com.google.protobuf.ByteString getSiteKeyBytes() { + public com.google.protobuf.ByteString + getSiteKeyBytes() { java.lang.Object ref = siteKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); siteKey_ = b; return b; } else { @@ -177,19 +151,15 @@ public com.google.protobuf.ByteString getSiteKeyBytes() { } public static final int USER_AGENT_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object userAgent_ = ""; /** - * - * *
    * Optional. The user agent present in the request from the user's device
    * related to this event.
    * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The userAgent. */ @java.lang.Override @@ -198,30 +168,30 @@ public java.lang.String getUserAgent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userAgent_ = s; return s; } } /** - * - * *
    * Optional. The user agent present in the request from the user's device
    * related to this event.
    * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for userAgent. */ @java.lang.Override - public com.google.protobuf.ByteString getUserAgentBytes() { + public com.google.protobuf.ByteString + getUserAgentBytes() { java.lang.Object ref = userAgent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userAgent_ = b; return b; } else { @@ -230,19 +200,15 @@ public com.google.protobuf.ByteString getUserAgentBytes() { } public static final int USER_IP_ADDRESS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object userIpAddress_ = ""; /** - * - * *
    * Optional. The IP address in the request from the user's device related to
    * this event.
    * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The userIpAddress. */ @java.lang.Override @@ -251,30 +217,30 @@ public java.lang.String getUserIpAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userIpAddress_ = s; return s; } } /** - * - * *
    * Optional. The IP address in the request from the user's device related to
    * this event.
    * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for userIpAddress. */ @java.lang.Override - public com.google.protobuf.ByteString getUserIpAddressBytes() { + public com.google.protobuf.ByteString + getUserIpAddressBytes() { java.lang.Object ref = userIpAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userIpAddress_ = b; return b; } else { @@ -283,12 +249,9 @@ public com.google.protobuf.ByteString getUserIpAddressBytes() { } public static final int EXPECTED_ACTION_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object expectedAction_ = ""; /** - * - * *
    * Optional. The expected action for this type of event. This should be the
    * same action provided at token generation time on client-side platforms
@@ -296,7 +259,6 @@ public com.google.protobuf.ByteString getUserIpAddressBytes() {
    * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The expectedAction. */ @java.lang.Override @@ -305,15 +267,14 @@ public java.lang.String getExpectedAction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); expectedAction_ = s; return s; } } /** - * - * *
    * Optional. The expected action for this type of event. This should be the
    * same action provided at token generation time on client-side platforms
@@ -321,15 +282,16 @@ public java.lang.String getExpectedAction() {
    * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for expectedAction. */ @java.lang.Override - public com.google.protobuf.ByteString getExpectedActionBytes() { + public com.google.protobuf.ByteString + getExpectedActionBytes() { java.lang.Object ref = expectedAction_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); expectedAction_ = b; return b; } else { @@ -340,15 +302,12 @@ public com.google.protobuf.ByteString getExpectedActionBytes() { public static final int HASHED_ACCOUNT_ID_FIELD_NUMBER = 6; private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * Optional. Unique stable hashed user identifier for the request. The
    * identifier must be hashed using hmac-sha256 with stable secret.
    * 
* * bytes hashed_account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hashedAccountId. */ @java.lang.Override @@ -359,8 +318,6 @@ public com.google.protobuf.ByteString getHashedAccountId() { public static final int EXPRESS_FIELD_NUMBER = 14; private boolean express_ = false; /** - * - * *
    * Optional. Flag for a reCAPTCHA express request for an assessment without a
    * token. If enabled, `site_key` must reference a SCORE key with WAF feature
@@ -368,7 +325,6 @@ public com.google.protobuf.ByteString getHashedAccountId() {
    * 
* * bool express = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The express. */ @java.lang.Override @@ -377,18 +333,14 @@ public boolean getExpress() { } public static final int REQUESTED_URI_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object requestedUri_ = ""; /** - * - * *
    * Optional. The URI resource the user requested that triggered an assessment.
    * 
* * string requested_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestedUri. */ @java.lang.Override @@ -397,29 +349,29 @@ public java.lang.String getRequestedUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestedUri_ = s; return s; } } /** - * - * *
    * Optional. The URI resource the user requested that triggered an assessment.
    * 
* * string requested_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestedUri. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestedUriBytes() { + public com.google.protobuf.ByteString + getRequestedUriBytes() { java.lang.Object ref = requestedUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestedUri_ = b; return b; } else { @@ -430,8 +382,6 @@ public com.google.protobuf.ByteString getRequestedUriBytes() { public static final int WAF_TOKEN_ASSESSMENT_FIELD_NUMBER = 9; private boolean wafTokenAssessment_ = false; /** - * - * *
    * Optional. Flag for running WAF token assessment.
    * If enabled, the token must be specified, and have been created by a
@@ -439,7 +389,6 @@ public com.google.protobuf.ByteString getRequestedUriBytes() {
    * 
* * bool waf_token_assessment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The wafTokenAssessment. */ @java.lang.Override @@ -448,18 +397,14 @@ public boolean getWafTokenAssessment() { } public static final int JA3_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private volatile java.lang.Object ja3_ = ""; /** - * - * *
    * Optional. JA3 fingerprint for SSL clients.
    * 
* * string ja3 = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ja3. */ @java.lang.Override @@ -468,29 +413,29 @@ public java.lang.String getJa3() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ja3_ = s; return s; } } /** - * - * *
    * Optional. JA3 fingerprint for SSL clients.
    * 
* * string ja3 = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for ja3. */ @java.lang.Override - public com.google.protobuf.ByteString getJa3Bytes() { + public com.google.protobuf.ByteString + getJa3Bytes() { java.lang.Object ref = ja3_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ja3_ = b; return b; } else { @@ -499,47 +444,38 @@ public com.google.protobuf.ByteString getJa3Bytes() { } public static final int HEADERS_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList headers_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. HTTP header information about the request.
    * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the headers. */ - public com.google.protobuf.ProtocolStringList getHeadersList() { + public com.google.protobuf.ProtocolStringList + getHeadersList() { return headers_; } /** - * - * *
    * Optional. HTTP header information about the request.
    * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of headers. */ public int getHeadersCount() { return headers_.size(); } /** - * - * *
    * Optional. HTTP header information about the request.
    * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The headers at the given index. */ @@ -547,26 +483,22 @@ public java.lang.String getHeaders(int index) { return headers_.get(index); } /** - * - * *
    * Optional. HTTP header information about the request.
    * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the headers at the given index. */ - public com.google.protobuf.ByteString getHeadersBytes(int index) { + public com.google.protobuf.ByteString + getHeadersBytes(int index) { return headers_.getByteString(index); } public static final int FIREWALL_POLICY_EVALUATION_FIELD_NUMBER = 12; private boolean firewallPolicyEvaluation_ = false; /** - * - * *
    * Optional. Flag for enabling firewall policy config assessment.
    * If this flag is enabled, the firewall policy will be evaluated and a
@@ -574,7 +506,6 @@ public com.google.protobuf.ByteString getHeadersBytes(int index) {
    * 
* * bool firewall_policy_evaluation = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The firewallPolicyEvaluation. */ @java.lang.Override @@ -585,18 +516,13 @@ public boolean getFirewallPolicyEvaluation() { public static final int TRANSACTION_DATA_FIELD_NUMBER = 13; private com.google.recaptchaenterprise.v1.TransactionData transactionData_; /** - * - * *
    * Optional. Data describing a payment transaction to be assessed. Sending
    * this data enables reCAPTCHA Enterprise Fraud Prevention and the
    * FraudPreventionAssessment component in the response.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the transactionData field is set. */ @java.lang.Override @@ -604,48 +530,34 @@ public boolean hasTransactionData() { return transactionData_ != null; } /** - * - * *
    * Optional. Data describing a payment transaction to be assessed. Sending
    * this data enables reCAPTCHA Enterprise Fraud Prevention and the
    * FraudPreventionAssessment component in the response.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The transactionData. */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData getTransactionData() { - return transactionData_ == null - ? com.google.recaptchaenterprise.v1.TransactionData.getDefaultInstance() - : transactionData_; + return transactionData_ == null ? com.google.recaptchaenterprise.v1.TransactionData.getDefaultInstance() : transactionData_; } /** - * - * *
    * Optional. Data describing a payment transaction to be assessed. Sending
    * this data enables reCAPTCHA Enterprise Fraud Prevention and the
    * FraudPreventionAssessment component in the response.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionDataOrBuilder getTransactionDataOrBuilder() { - return transactionData_ == null - ? com.google.recaptchaenterprise.v1.TransactionData.getDefaultInstance() - : transactionData_; + return transactionData_ == null ? com.google.recaptchaenterprise.v1.TransactionData.getDefaultInstance() : transactionData_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -657,7 +569,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(token_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, token_); } @@ -722,13 +635,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, expectedAction_); } if (!hashedAccountId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, hashedAccountId_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, hashedAccountId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestedUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, requestedUri_); } if (wafTokenAssessment_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, wafTokenAssessment_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, wafTokenAssessment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ja3_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, ja3_); @@ -742,13 +657,16 @@ public int getSerializedSize() { size += 1 * getHeadersList().size(); } if (firewallPolicyEvaluation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, firewallPolicyEvaluation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, firewallPolicyEvaluation_); } if (transactionData_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getTransactionData()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getTransactionData()); } if (express_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, express_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, express_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -758,28 +676,41 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.Event)) { return super.equals(obj); } com.google.recaptchaenterprise.v1.Event other = (com.google.recaptchaenterprise.v1.Event) obj; - if (!getToken().equals(other.getToken())) return false; - if (!getSiteKey().equals(other.getSiteKey())) return false; - if (!getUserAgent().equals(other.getUserAgent())) return false; - if (!getUserIpAddress().equals(other.getUserIpAddress())) return false; - if (!getExpectedAction().equals(other.getExpectedAction())) return false; - if (!getHashedAccountId().equals(other.getHashedAccountId())) return false; - if (getExpress() != other.getExpress()) return false; - if (!getRequestedUri().equals(other.getRequestedUri())) return false; - if (getWafTokenAssessment() != other.getWafTokenAssessment()) return false; - if (!getJa3().equals(other.getJa3())) return false; - if (!getHeadersList().equals(other.getHeadersList())) return false; - if (getFirewallPolicyEvaluation() != other.getFirewallPolicyEvaluation()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!getSiteKey() + .equals(other.getSiteKey())) return false; + if (!getUserAgent() + .equals(other.getUserAgent())) return false; + if (!getUserIpAddress() + .equals(other.getUserIpAddress())) return false; + if (!getExpectedAction() + .equals(other.getExpectedAction())) return false; + if (!getHashedAccountId() + .equals(other.getHashedAccountId())) return false; + if (getExpress() + != other.getExpress()) return false; + if (!getRequestedUri() + .equals(other.getRequestedUri())) return false; + if (getWafTokenAssessment() + != other.getWafTokenAssessment()) return false; + if (!getJa3() + .equals(other.getJa3())) return false; + if (!getHeadersList() + .equals(other.getHeadersList())) return false; + if (getFirewallPolicyEvaluation() + != other.getFirewallPolicyEvaluation()) return false; if (hasTransactionData() != other.hasTransactionData()) return false; if (hasTransactionData()) { - if (!getTransactionData().equals(other.getTransactionData())) return false; + if (!getTransactionData() + .equals(other.getTransactionData())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -805,11 +736,13 @@ public int hashCode() { hash = (37 * hash) + HASHED_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getHashedAccountId().hashCode(); hash = (37 * hash) + EXPRESS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExpress()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getExpress()); hash = (37 * hash) + REQUESTED_URI_FIELD_NUMBER; hash = (53 * hash) + getRequestedUri().hashCode(); hash = (37 * hash) + WAF_TOKEN_ASSESSMENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getWafTokenAssessment()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getWafTokenAssessment()); hash = (37 * hash) + JA3_FIELD_NUMBER; hash = (53 * hash) + getJa3().hashCode(); if (getHeadersCount() > 0) { @@ -817,7 +750,8 @@ public int hashCode() { hash = (53 * hash) + getHeadersList().hashCode(); } hash = (37 * hash) + FIREWALL_POLICY_EVALUATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFirewallPolicyEvaluation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFirewallPolicyEvaluation()); if (hasTransactionData()) { hash = (37 * hash) + TRANSACTION_DATA_FIELD_NUMBER; hash = (53 * hash) + getTransactionData().hashCode(); @@ -827,136 +761,132 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.Event parseFrom(java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.Event parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.Event parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.Event parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.Event parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.Event parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.Event parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.Event parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.Event parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.Event parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.Event parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.Event parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.Event parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.Event parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.Event prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The event being assessed.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.Event} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.Event) com.google.recaptchaenterprise.v1.EventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_Event_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Event_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_Event_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Event_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.Event.class, - com.google.recaptchaenterprise.v1.Event.Builder.class); + com.google.recaptchaenterprise.v1.Event.class, com.google.recaptchaenterprise.v1.Event.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.Event.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -971,7 +901,8 @@ public Builder clear() { requestedUri_ = ""; wafTokenAssessment_ = false; ja3_ = ""; - headers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + headers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); firewallPolicyEvaluation_ = false; transactionData_ = null; if (transactionDataBuilder_ != null) { @@ -982,9 +913,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_Event_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Event_descriptor; } @java.lang.Override @@ -1003,11 +934,8 @@ public com.google.recaptchaenterprise.v1.Event build() { @java.lang.Override public com.google.recaptchaenterprise.v1.Event buildPartial() { - com.google.recaptchaenterprise.v1.Event result = - new com.google.recaptchaenterprise.v1.Event(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.Event result = new com.google.recaptchaenterprise.v1.Event(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1052,8 +980,9 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.Event result) { result.firewallPolicyEvaluation_ = firewallPolicyEvaluation_; } if (((from_bitField0_ & 0x00001000) != 0)) { - result.transactionData_ = - transactionDataBuilder_ == null ? transactionData_ : transactionDataBuilder_.build(); + result.transactionData_ = transactionDataBuilder_ == null + ? transactionData_ + : transactionDataBuilder_.build(); } } @@ -1061,39 +990,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.Event result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.Event) { - return mergeFrom((com.google.recaptchaenterprise.v1.Event) other); + return mergeFrom((com.google.recaptchaenterprise.v1.Event)other); } else { super.mergeFrom(other); return this; @@ -1188,92 +1116,80 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - token_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - siteKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - userAgent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - userIpAddress_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - expectedAction_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - hashedAccountId_ = input.readBytes(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 66: - { - requestedUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 72: - { - wafTokenAssessment_ = input.readBool(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 82: - { - ja3_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureHeadersIsMutable(); - headers_.add(s); - break; - } // case 90 - case 96: - { - firewallPolicyEvaluation_ = input.readBool(); - bitField0_ |= 0x00000800; - break; - } // case 96 - case 106: - { - input.readMessage(getTransactionDataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 106 - case 112: - { - express_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 112 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + token_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + siteKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + userAgent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + userIpAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + expectedAction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + hashedAccountId_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 66: { + requestedUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 72: { + wafTokenAssessment_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: { + ja3_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + ensureHeadersIsMutable(); + headers_.add(s); + break; + } // case 90 + case 96: { + firewallPolicyEvaluation_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 106: { + input.readMessage( + getTransactionDataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 112: { + express_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 112 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1283,26 +1199,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object token_ = ""; /** - * - * *
      * Optional. The user response token provided by the reCAPTCHA Enterprise
      * client-side integration on your site.
      * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The token. */ public java.lang.String getToken() { java.lang.Object ref = token_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); token_ = s; return s; @@ -1311,22 +1224,21 @@ public java.lang.String getToken() { } } /** - * - * *
      * Optional. The user response token provided by the reCAPTCHA Enterprise
      * client-side integration on your site.
      * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for token. */ - public com.google.protobuf.ByteString getTokenBytes() { + public com.google.protobuf.ByteString + getTokenBytes() { java.lang.Object ref = token_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); token_ = b; return b; } else { @@ -1334,37 +1246,30 @@ public com.google.protobuf.ByteString getTokenBytes() { } } /** - * - * *
      * Optional. The user response token provided by the reCAPTCHA Enterprise
      * client-side integration on your site.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } token_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Optional. The user response token provided by the reCAPTCHA Enterprise
      * client-side integration on your site.
      * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearToken() { @@ -1374,22 +1279,18 @@ public Builder clearToken() { return this; } /** - * - * *
      * Optional. The user response token provided by the reCAPTCHA Enterprise
      * client-side integration on your site.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); token_ = value; bitField0_ |= 0x00000001; @@ -1399,21 +1300,19 @@ public Builder setTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object siteKey_ = ""; /** - * - * *
      * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
      * site and generate the token.
      * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The siteKey. */ public java.lang.String getSiteKey() { java.lang.Object ref = siteKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); siteKey_ = s; return s; @@ -1422,22 +1321,21 @@ public java.lang.String getSiteKey() { } } /** - * - * *
      * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
      * site and generate the token.
      * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for siteKey. */ - public com.google.protobuf.ByteString getSiteKeyBytes() { + public com.google.protobuf.ByteString + getSiteKeyBytes() { java.lang.Object ref = siteKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); siteKey_ = b; return b; } else { @@ -1445,37 +1343,30 @@ public com.google.protobuf.ByteString getSiteKeyBytes() { } } /** - * - * *
      * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
      * site and generate the token.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setSiteKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } siteKey_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
      * site and generate the token.
      * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSiteKey() { @@ -1485,22 +1376,18 @@ public Builder clearSiteKey() { return this; } /** - * - * *
      * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
      * site and generate the token.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setSiteKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); siteKey_ = value; bitField0_ |= 0x00000002; @@ -1510,21 +1397,19 @@ public Builder setSiteKeyBytes(com.google.protobuf.ByteString value) { private java.lang.Object userAgent_ = ""; /** - * - * *
      * Optional. The user agent present in the request from the user's device
      * related to this event.
      * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The userAgent. */ public java.lang.String getUserAgent() { java.lang.Object ref = userAgent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userAgent_ = s; return s; @@ -1533,22 +1418,21 @@ public java.lang.String getUserAgent() { } } /** - * - * *
      * Optional. The user agent present in the request from the user's device
      * related to this event.
      * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for userAgent. */ - public com.google.protobuf.ByteString getUserAgentBytes() { + public com.google.protobuf.ByteString + getUserAgentBytes() { java.lang.Object ref = userAgent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userAgent_ = b; return b; } else { @@ -1556,37 +1440,30 @@ public com.google.protobuf.ByteString getUserAgentBytes() { } } /** - * - * *
      * Optional. The user agent present in the request from the user's device
      * related to this event.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setUserAgent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } userAgent_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. The user agent present in the request from the user's device
      * related to this event.
      * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearUserAgent() { @@ -1596,22 +1473,18 @@ public Builder clearUserAgent() { return this; } /** - * - * *
      * Optional. The user agent present in the request from the user's device
      * related to this event.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setUserAgentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userAgent_ = value; bitField0_ |= 0x00000004; @@ -1621,21 +1494,19 @@ public Builder setUserAgentBytes(com.google.protobuf.ByteString value) { private java.lang.Object userIpAddress_ = ""; /** - * - * *
      * Optional. The IP address in the request from the user's device related to
      * this event.
      * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The userIpAddress. */ public java.lang.String getUserIpAddress() { java.lang.Object ref = userIpAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userIpAddress_ = s; return s; @@ -1644,22 +1515,21 @@ public java.lang.String getUserIpAddress() { } } /** - * - * *
      * Optional. The IP address in the request from the user's device related to
      * this event.
      * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for userIpAddress. */ - public com.google.protobuf.ByteString getUserIpAddressBytes() { + public com.google.protobuf.ByteString + getUserIpAddressBytes() { java.lang.Object ref = userIpAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userIpAddress_ = b; return b; } else { @@ -1667,37 +1537,30 @@ public com.google.protobuf.ByteString getUserIpAddressBytes() { } } /** - * - * *
      * Optional. The IP address in the request from the user's device related to
      * this event.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setUserIpAddress( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } userIpAddress_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. The IP address in the request from the user's device related to
      * this event.
      * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearUserIpAddress() { @@ -1707,22 +1570,18 @@ public Builder clearUserIpAddress() { return this; } /** - * - * *
      * Optional. The IP address in the request from the user's device related to
      * this event.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setUserIpAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userIpAddress_ = value; bitField0_ |= 0x00000008; @@ -1732,8 +1591,6 @@ public Builder setUserIpAddressBytes(com.google.protobuf.ByteString value) { private java.lang.Object expectedAction_ = ""; /** - * - * *
      * Optional. The expected action for this type of event. This should be the
      * same action provided at token generation time on client-side platforms
@@ -1741,13 +1598,13 @@ 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_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); expectedAction_ = s; return s; @@ -1756,8 +1613,6 @@ public java.lang.String getExpectedAction() { } } /** - * - * *
      * Optional. The expected action for this type of event. This should be the
      * same action provided at token generation time on client-side platforms
@@ -1765,14 +1620,15 @@ 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() { + public com.google.protobuf.ByteString + getExpectedActionBytes() { java.lang.Object ref = expectedAction_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); expectedAction_ = b; return b; } else { @@ -1780,8 +1636,6 @@ public com.google.protobuf.ByteString getExpectedActionBytes() { } } /** - * - * *
      * Optional. The expected action for this type of event. This should be the
      * same action provided at token generation time on client-side platforms
@@ -1789,22 +1643,18 @@ 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) { - throw new NullPointerException(); - } + public Builder setExpectedAction( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } expectedAction_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Optional. The expected action for this type of event. This should be the
      * same action provided at token generation time on client-side platforms
@@ -1812,7 +1662,6 @@ public Builder setExpectedAction(java.lang.String value) {
      * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearExpectedAction() { @@ -1822,8 +1671,6 @@ public Builder clearExpectedAction() { return this; } /** - * - * *
      * Optional. The expected action for this type of event. This should be the
      * same action provided at token generation time on client-side platforms
@@ -1831,14 +1678,12 @@ 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) { - throw new NullPointerException(); - } + public Builder setExpectedActionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); expectedAction_ = value; bitField0_ |= 0x00000010; @@ -1848,15 +1693,12 @@ public Builder setExpectedActionBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Optional. Unique stable hashed user identifier for the request. The
      * identifier must be hashed using hmac-sha256 with stable secret.
      * 
* * bytes hashed_account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hashedAccountId. */ @java.lang.Override @@ -1864,37 +1706,29 @@ public com.google.protobuf.ByteString getHashedAccountId() { return hashedAccountId_; } /** - * - * *
      * Optional. Unique stable hashed user identifier for the request. The
      * identifier must be hashed using hmac-sha256 with stable secret.
      * 
* * bytes hashed_account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The hashedAccountId to set. * @return This builder for chaining. */ public Builder setHashedAccountId(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } hashedAccountId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Optional. Unique stable hashed user identifier for the request. The
      * identifier must be hashed using hmac-sha256 with stable secret.
      * 
* * bytes hashed_account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearHashedAccountId() { @@ -1904,10 +1738,8 @@ public Builder clearHashedAccountId() { return this; } - private boolean express_; + private boolean express_ ; /** - * - * *
      * Optional. Flag for a reCAPTCHA express request for an assessment without a
      * token. If enabled, `site_key` must reference a SCORE key with WAF feature
@@ -1915,7 +1747,6 @@ public Builder clearHashedAccountId() {
      * 
* * bool express = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The express. */ @java.lang.Override @@ -1923,8 +1754,6 @@ public boolean getExpress() { return express_; } /** - * - * *
      * Optional. Flag for a reCAPTCHA express request for an assessment without a
      * token. If enabled, `site_key` must reference a SCORE key with WAF feature
@@ -1932,7 +1761,6 @@ public boolean getExpress() {
      * 
* * bool express = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The express to set. * @return This builder for chaining. */ @@ -1944,8 +1772,6 @@ public Builder setExpress(boolean value) { return this; } /** - * - * *
      * Optional. Flag for a reCAPTCHA express request for an assessment without a
      * token. If enabled, `site_key` must reference a SCORE key with WAF feature
@@ -1953,7 +1779,6 @@ public Builder setExpress(boolean value) {
      * 
* * bool express = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearExpress() { @@ -1965,20 +1790,18 @@ public Builder clearExpress() { private java.lang.Object requestedUri_ = ""; /** - * - * *
      * Optional. The URI resource the user requested that triggered an assessment.
      * 
* * string requested_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestedUri. */ public java.lang.String getRequestedUri() { java.lang.Object ref = requestedUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestedUri_ = s; return s; @@ -1987,21 +1810,20 @@ public java.lang.String getRequestedUri() { } } /** - * - * *
      * Optional. The URI resource the user requested that triggered an assessment.
      * 
* * string requested_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestedUri. */ - public com.google.protobuf.ByteString getRequestedUriBytes() { + public com.google.protobuf.ByteString + getRequestedUriBytes() { java.lang.Object ref = requestedUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestedUri_ = b; return b; } else { @@ -2009,35 +1831,28 @@ public com.google.protobuf.ByteString getRequestedUriBytes() { } } /** - * - * *
      * Optional. The URI resource the user requested that triggered an assessment.
      * 
* * string requested_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestedUri to set. * @return This builder for chaining. */ - public Builder setRequestedUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestedUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestedUri_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * Optional. The URI resource the user requested that triggered an assessment.
      * 
* * string requested_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestedUri() { @@ -2047,21 +1862,17 @@ public Builder clearRequestedUri() { return this; } /** - * - * *
      * Optional. The URI resource the user requested that triggered an assessment.
      * 
* * string requested_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestedUri to set. * @return This builder for chaining. */ - public Builder setRequestedUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestedUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestedUri_ = value; bitField0_ |= 0x00000080; @@ -2069,10 +1880,8 @@ public Builder setRequestedUriBytes(com.google.protobuf.ByteString value) { return this; } - private boolean wafTokenAssessment_; + private boolean wafTokenAssessment_ ; /** - * - * *
      * Optional. Flag for running WAF token assessment.
      * If enabled, the token must be specified, and have been created by a
@@ -2080,7 +1889,6 @@ public Builder setRequestedUriBytes(com.google.protobuf.ByteString value) {
      * 
* * bool waf_token_assessment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The wafTokenAssessment. */ @java.lang.Override @@ -2088,8 +1896,6 @@ public boolean getWafTokenAssessment() { return wafTokenAssessment_; } /** - * - * *
      * Optional. Flag for running WAF token assessment.
      * If enabled, the token must be specified, and have been created by a
@@ -2097,7 +1903,6 @@ public boolean getWafTokenAssessment() {
      * 
* * bool waf_token_assessment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The wafTokenAssessment to set. * @return This builder for chaining. */ @@ -2109,8 +1914,6 @@ public Builder setWafTokenAssessment(boolean value) { return this; } /** - * - * *
      * Optional. Flag for running WAF token assessment.
      * If enabled, the token must be specified, and have been created by a
@@ -2118,7 +1921,6 @@ public Builder setWafTokenAssessment(boolean value) {
      * 
* * bool waf_token_assessment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearWafTokenAssessment() { @@ -2130,20 +1932,18 @@ public Builder clearWafTokenAssessment() { private java.lang.Object ja3_ = ""; /** - * - * *
      * Optional. JA3 fingerprint for SSL clients.
      * 
* * string ja3 = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ja3. */ public java.lang.String getJa3() { java.lang.Object ref = ja3_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ja3_ = s; return s; @@ -2152,21 +1952,20 @@ public java.lang.String getJa3() { } } /** - * - * *
      * Optional. JA3 fingerprint for SSL clients.
      * 
* * string ja3 = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for ja3. */ - public com.google.protobuf.ByteString getJa3Bytes() { + public com.google.protobuf.ByteString + getJa3Bytes() { java.lang.Object ref = ja3_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ja3_ = b; return b; } else { @@ -2174,35 +1973,28 @@ public com.google.protobuf.ByteString getJa3Bytes() { } } /** - * - * *
      * Optional. JA3 fingerprint for SSL clients.
      * 
* * string ja3 = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The ja3 to set. * @return This builder for chaining. */ - public Builder setJa3(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setJa3( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ja3_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** - * - * *
      * Optional. JA3 fingerprint for SSL clients.
      * 
* * string ja3 = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearJa3() { @@ -2212,21 +2004,17 @@ public Builder clearJa3() { return this; } /** - * - * *
      * Optional. JA3 fingerprint for SSL clients.
      * 
* * string ja3 = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for ja3 to set. * @return This builder for chaining. */ - public Builder setJa3Bytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setJa3Bytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ja3_ = value; bitField0_ |= 0x00000200; @@ -2236,7 +2024,6 @@ public Builder setJa3Bytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList headers_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureHeadersIsMutable() { if (!headers_.isModifiable()) { headers_ = new com.google.protobuf.LazyStringArrayList(headers_); @@ -2244,43 +2031,35 @@ private void ensureHeadersIsMutable() { bitField0_ |= 0x00000400; } /** - * - * *
      * Optional. HTTP header information about the request.
      * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the headers. */ - public com.google.protobuf.ProtocolStringList getHeadersList() { + public com.google.protobuf.ProtocolStringList + getHeadersList() { headers_.makeImmutable(); return headers_; } /** - * - * *
      * Optional. HTTP header information about the request.
      * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of headers. */ public int getHeadersCount() { return headers_.size(); } /** - * - * *
      * Optional. HTTP header information about the request.
      * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The headers at the given index. */ @@ -2288,37 +2067,31 @@ public java.lang.String getHeaders(int index) { return headers_.get(index); } /** - * - * *
      * Optional. HTTP header information about the request.
      * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the headers at the given index. */ - public com.google.protobuf.ByteString getHeadersBytes(int index) { + public com.google.protobuf.ByteString + getHeadersBytes(int index) { return headers_.getByteString(index); } /** - * - * *
      * Optional. HTTP header information about the request.
      * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The headers to set. * @return This builder for chaining. */ - public Builder setHeaders(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHeaders( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureHeadersIsMutable(); headers_.set(index, value); bitField0_ |= 0x00000400; @@ -2326,21 +2099,17 @@ public Builder setHeaders(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. HTTP header information about the request.
      * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The headers to add. * @return This builder for chaining. */ - public Builder addHeaders(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addHeaders( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureHeadersIsMutable(); headers_.add(value); bitField0_ |= 0x00000400; @@ -2348,58 +2117,50 @@ public Builder addHeaders(java.lang.String value) { return this; } /** - * - * *
      * Optional. HTTP header information about the request.
      * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The headers to add. * @return This builder for chaining. */ - public Builder addAllHeaders(java.lang.Iterable values) { + public Builder addAllHeaders( + java.lang.Iterable values) { ensureHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, headers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, headers_); bitField0_ |= 0x00000400; onChanged(); return this; } /** - * - * *
      * Optional. HTTP header information about the request.
      * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearHeaders() { - headers_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - ; + headers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400);; onChanged(); return this; } /** - * - * *
      * Optional. HTTP header information about the request.
      * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the headers to add. * @return This builder for chaining. */ - public Builder addHeadersBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addHeadersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureHeadersIsMutable(); headers_.add(value); @@ -2408,10 +2169,8 @@ public Builder addHeadersBytes(com.google.protobuf.ByteString value) { return this; } - private boolean firewallPolicyEvaluation_; + private boolean firewallPolicyEvaluation_ ; /** - * - * *
      * Optional. Flag for enabling firewall policy config assessment.
      * If this flag is enabled, the firewall policy will be evaluated and a
@@ -2419,7 +2178,6 @@ public Builder addHeadersBytes(com.google.protobuf.ByteString value) {
      * 
* * bool firewall_policy_evaluation = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The firewallPolicyEvaluation. */ @java.lang.Override @@ -2427,8 +2185,6 @@ public boolean getFirewallPolicyEvaluation() { return firewallPolicyEvaluation_; } /** - * - * *
      * Optional. Flag for enabling firewall policy config assessment.
      * If this flag is enabled, the firewall policy will be evaluated and a
@@ -2436,7 +2192,6 @@ public boolean getFirewallPolicyEvaluation() {
      * 
* * bool firewall_policy_evaluation = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The firewallPolicyEvaluation to set. * @return This builder for chaining. */ @@ -2448,8 +2203,6 @@ public Builder setFirewallPolicyEvaluation(boolean value) { return this; } /** - * - * *
      * Optional. Flag for enabling firewall policy config assessment.
      * If this flag is enabled, the firewall policy will be evaluated and a
@@ -2457,7 +2210,6 @@ public Builder setFirewallPolicyEvaluation(boolean value) {
      * 
* * bool firewall_policy_evaluation = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFirewallPolicyEvaluation() { @@ -2469,64 +2221,45 @@ public Builder clearFirewallPolicyEvaluation() { private com.google.recaptchaenterprise.v1.TransactionData transactionData_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData, - com.google.recaptchaenterprise.v1.TransactionData.Builder, - com.google.recaptchaenterprise.v1.TransactionDataOrBuilder> - transactionDataBuilder_; + com.google.recaptchaenterprise.v1.TransactionData, com.google.recaptchaenterprise.v1.TransactionData.Builder, com.google.recaptchaenterprise.v1.TransactionDataOrBuilder> transactionDataBuilder_; /** - * - * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the transactionData field is set. */ public boolean hasTransactionData() { return ((bitField0_ & 0x00001000) != 0); } /** - * - * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The transactionData. */ public com.google.recaptchaenterprise.v1.TransactionData getTransactionData() { if (transactionDataBuilder_ == null) { - return transactionData_ == null - ? com.google.recaptchaenterprise.v1.TransactionData.getDefaultInstance() - : transactionData_; + return transactionData_ == null ? com.google.recaptchaenterprise.v1.TransactionData.getDefaultInstance() : transactionData_; } else { return transactionDataBuilder_.getMessage(); } } /** - * - * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTransactionData(com.google.recaptchaenterprise.v1.TransactionData value) { if (transactionDataBuilder_ == null) { @@ -2542,17 +2275,13 @@ public Builder setTransactionData(com.google.recaptchaenterprise.v1.TransactionD return this; } /** - * - * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTransactionData( com.google.recaptchaenterprise.v1.TransactionData.Builder builderForValue) { @@ -2566,24 +2295,19 @@ public Builder setTransactionData( return this; } /** - * - * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeTransactionData(com.google.recaptchaenterprise.v1.TransactionData value) { if (transactionDataBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && transactionData_ != null - && transactionData_ - != com.google.recaptchaenterprise.v1.TransactionData.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) && + transactionData_ != null && + transactionData_ != com.google.recaptchaenterprise.v1.TransactionData.getDefaultInstance()) { getTransactionDataBuilder().mergeFrom(value); } else { transactionData_ = value; @@ -2596,17 +2320,13 @@ public Builder mergeTransactionData(com.google.recaptchaenterprise.v1.Transactio return this; } /** - * - * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearTransactionData() { bitField0_ = (bitField0_ & ~0x00001000); @@ -2619,17 +2339,13 @@ public Builder clearTransactionData() { return this; } /** - * - * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.TransactionData.Builder getTransactionDataBuilder() { bitField0_ |= 0x00001000; @@ -2637,60 +2353,47 @@ public com.google.recaptchaenterprise.v1.TransactionData.Builder getTransactionD return getTransactionDataFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.recaptchaenterprise.v1.TransactionDataOrBuilder - getTransactionDataOrBuilder() { + public com.google.recaptchaenterprise.v1.TransactionDataOrBuilder getTransactionDataOrBuilder() { if (transactionDataBuilder_ != null) { return transactionDataBuilder_.getMessageOrBuilder(); } else { - return transactionData_ == null - ? com.google.recaptchaenterprise.v1.TransactionData.getDefaultInstance() - : transactionData_; + return transactionData_ == null ? + com.google.recaptchaenterprise.v1.TransactionData.getDefaultInstance() : transactionData_; } } /** - * - * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData, - com.google.recaptchaenterprise.v1.TransactionData.Builder, - com.google.recaptchaenterprise.v1.TransactionDataOrBuilder> + com.google.recaptchaenterprise.v1.TransactionData, com.google.recaptchaenterprise.v1.TransactionData.Builder, com.google.recaptchaenterprise.v1.TransactionDataOrBuilder> getTransactionDataFieldBuilder() { if (transactionDataBuilder_ == null) { - transactionDataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData, - com.google.recaptchaenterprise.v1.TransactionData.Builder, - com.google.recaptchaenterprise.v1.TransactionDataOrBuilder>( - getTransactionData(), getParentForChildren(), isClean()); + transactionDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.TransactionData, com.google.recaptchaenterprise.v1.TransactionData.Builder, com.google.recaptchaenterprise.v1.TransactionDataOrBuilder>( + getTransactionData(), + getParentForChildren(), + isClean()); transactionData_ = null; } return transactionDataBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2700,12 +2403,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.Event) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.Event) private static final com.google.recaptchaenterprise.v1.Event DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.Event(); } @@ -2714,27 +2417,27 @@ public static com.google.recaptchaenterprise.v1.Event getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Event parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Event parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2749,4 +2452,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.Event getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EventOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EventOrBuilder.java similarity index 80% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EventOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EventOrBuilder.java index d1e71e2fd829..1d775ec4e4fe 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EventOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EventOrBuilder.java @@ -1,139 +1,101 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface EventOrBuilder - extends +public interface EventOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.Event) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The user response token provided by the reCAPTCHA Enterprise
    * client-side integration on your site.
    * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The token. */ java.lang.String getToken(); /** - * - * *
    * Optional. The user response token provided by the reCAPTCHA Enterprise
    * client-side integration on your site.
    * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for token. */ - com.google.protobuf.ByteString getTokenBytes(); + com.google.protobuf.ByteString + getTokenBytes(); /** - * - * *
    * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
    * site and generate the token.
    * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The siteKey. */ java.lang.String getSiteKey(); /** - * - * *
    * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
    * site and generate the token.
    * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for siteKey. */ - com.google.protobuf.ByteString getSiteKeyBytes(); + com.google.protobuf.ByteString + getSiteKeyBytes(); /** - * - * *
    * Optional. The user agent present in the request from the user's device
    * related to this event.
    * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The userAgent. */ java.lang.String getUserAgent(); /** - * - * *
    * Optional. The user agent present in the request from the user's device
    * related to this event.
    * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for userAgent. */ - com.google.protobuf.ByteString getUserAgentBytes(); + com.google.protobuf.ByteString + getUserAgentBytes(); /** - * - * *
    * Optional. The IP address in the request from the user's device related to
    * this event.
    * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The userIpAddress. */ java.lang.String getUserIpAddress(); /** - * - * *
    * Optional. The IP address in the request from the user's device related to
    * this event.
    * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for userIpAddress. */ - com.google.protobuf.ByteString getUserIpAddressBytes(); + com.google.protobuf.ByteString + getUserIpAddressBytes(); /** - * - * *
    * Optional. The expected action for this type of event. This should be the
    * same action provided at token generation time on client-side platforms
@@ -141,13 +103,10 @@ public interface EventOrBuilder
    * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The expectedAction. */ java.lang.String getExpectedAction(); /** - * - * *
    * Optional. The expected action for this type of event. This should be the
    * same action provided at token generation time on client-side platforms
@@ -155,28 +114,23 @@ public interface EventOrBuilder
    * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for expectedAction. */ - com.google.protobuf.ByteString getExpectedActionBytes(); + com.google.protobuf.ByteString + getExpectedActionBytes(); /** - * - * *
    * Optional. Unique stable hashed user identifier for the request. The
    * identifier must be hashed using hmac-sha256 with stable secret.
    * 
* * bytes hashed_account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hashedAccountId. */ com.google.protobuf.ByteString getHashedAccountId(); /** - * - * *
    * Optional. Flag for a reCAPTCHA express request for an assessment without a
    * token. If enabled, `site_key` must reference a SCORE key with WAF feature
@@ -184,39 +138,31 @@ public interface EventOrBuilder
    * 
* * bool express = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The express. */ boolean getExpress(); /** - * - * *
    * Optional. The URI resource the user requested that triggered an assessment.
    * 
* * string requested_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestedUri. */ java.lang.String getRequestedUri(); /** - * - * *
    * Optional. The URI resource the user requested that triggered an assessment.
    * 
* * string requested_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestedUri. */ - com.google.protobuf.ByteString getRequestedUriBytes(); + com.google.protobuf.ByteString + getRequestedUriBytes(); /** - * - * *
    * Optional. Flag for running WAF token assessment.
    * If enabled, the token must be specified, and have been created by a
@@ -224,90 +170,72 @@ public interface EventOrBuilder
    * 
* * bool waf_token_assessment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The wafTokenAssessment. */ boolean getWafTokenAssessment(); /** - * - * *
    * Optional. JA3 fingerprint for SSL clients.
    * 
* * string ja3 = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ja3. */ java.lang.String getJa3(); /** - * - * *
    * Optional. JA3 fingerprint for SSL clients.
    * 
* * string ja3 = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for ja3. */ - com.google.protobuf.ByteString getJa3Bytes(); + com.google.protobuf.ByteString + getJa3Bytes(); /** - * - * *
    * Optional. HTTP header information about the request.
    * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the headers. */ - java.util.List getHeadersList(); + java.util.List + getHeadersList(); /** - * - * *
    * Optional. HTTP header information about the request.
    * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of headers. */ int getHeadersCount(); /** - * - * *
    * Optional. HTTP header information about the request.
    * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The headers at the given index. */ java.lang.String getHeaders(int index); /** - * - * *
    * Optional. HTTP header information about the request.
    * 
* * repeated string headers = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the headers at the given index. */ - com.google.protobuf.ByteString getHeadersBytes(int index); + com.google.protobuf.ByteString + getHeadersBytes(int index); /** - * - * *
    * Optional. Flag for enabling firewall policy config assessment.
    * If this flag is enabled, the firewall policy will be evaluated and a
@@ -315,55 +243,40 @@ public interface EventOrBuilder
    * 
* * bool firewall_policy_evaluation = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The firewallPolicyEvaluation. */ boolean getFirewallPolicyEvaluation(); /** - * - * *
    * Optional. Data describing a payment transaction to be assessed. Sending
    * this data enables reCAPTCHA Enterprise Fraud Prevention and the
    * FraudPreventionAssessment component in the response.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the transactionData field is set. */ boolean hasTransactionData(); /** - * - * *
    * Optional. Data describing a payment transaction to be assessed. Sending
    * this data enables reCAPTCHA Enterprise Fraud Prevention and the
    * FraudPreventionAssessment component in the response.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The transactionData. */ com.google.recaptchaenterprise.v1.TransactionData getTransactionData(); /** - * - * *
    * Optional. Data describing a payment transaction to be assessed. Sending
    * this data enables reCAPTCHA Enterprise Fraud Prevention and the
    * FraudPreventionAssessment component in the response.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.recaptchaenterprise.v1.TransactionDataOrBuilder getTransactionDataOrBuilder(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallAction.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallAction.java similarity index 68% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallAction.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallAction.java index 2b0091094c46..af4a9e1c1ad5 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallAction.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallAction.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * An individual action. Each action represents what to do if a policy
  * matches.
@@ -28,87 +11,82 @@
  *
  * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallAction}
  */
-public final class FirewallAction extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class FirewallAction extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FirewallAction)
     FirewallActionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use FirewallAction.newBuilder() to construct.
   private FirewallAction(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private FirewallAction() {}
+  private FirewallAction() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new FirewallAction();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-        .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-        .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_fieldAccessorTable
+    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.recaptchaenterprise.v1.FirewallAction.class,
-            com.google.recaptchaenterprise.v1.FirewallAction.Builder.class);
+            com.google.recaptchaenterprise.v1.FirewallAction.class, com.google.recaptchaenterprise.v1.FirewallAction.Builder.class);
   }
 
-  public interface AllowActionOrBuilder
-      extends
+  public interface AllowActionOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction)
-      com.google.protobuf.MessageOrBuilder {}
+      com.google.protobuf.MessageOrBuilder {
+  }
   /**
-   *
-   *
    * 
    * An allow action continues processing a request unimpeded.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction} */ - public static final class AllowAction extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class AllowAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction) AllowActionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AllowAction.newBuilder() to construct. private AllowAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private AllowAction() {} + private AllowAction() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AllowAction(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.class, - com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder.class); + com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.class, com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,7 +98,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -138,13 +117,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.FirewallAction.AllowAction)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FirewallAction.AllowAction other = - (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) obj; + com.google.recaptchaenterprise.v1.FirewallAction.AllowAction other = (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -163,94 +141,89 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.FirewallAction.AllowAction prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.FirewallAction.AllowAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -260,41 +233,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * An allow action continues processing a request unimpeded.
      * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction) com.google.recaptchaenterprise.v1.FirewallAction.AllowActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.class, - com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder.class); + com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.class, com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -302,14 +273,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.getDefaultInstance(); } @@ -324,8 +294,7 @@ public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction build() { @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction buildPartial() { - com.google.recaptchaenterprise.v1.FirewallAction.AllowAction result = - new com.google.recaptchaenterprise.v1.FirewallAction.AllowAction(this); + com.google.recaptchaenterprise.v1.FirewallAction.AllowAction result = new com.google.recaptchaenterprise.v1.FirewallAction.AllowAction(this); onBuilt(); return result; } @@ -334,41 +303,38 @@ public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) { - return mergeFrom((com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) other); + return mergeFrom((com.google.recaptchaenterprise.v1.FirewallAction.AllowAction)other); } else { super.mergeFrom(other); return this; @@ -376,9 +342,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.FirewallAction.AllowAction other) { - if (other - == com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -405,13 +369,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,7 +384,6 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -434,44 +396,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction) - private static final com.google.recaptchaenterprise.v1.FirewallAction.AllowAction - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1.FirewallAction.AllowAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FirewallAction.AllowAction(); } - public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.FirewallAction.AllowAction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AllowAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllowAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -483,19 +442,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface BlockActionOrBuilder - extends + public interface BlockActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction) - com.google.protobuf.MessageOrBuilder {} + com.google.protobuf.MessageOrBuilder { + } /** - * - * *
    * A block action serves an HTTP error code a prevents the request from
    * hitting the backend.
@@ -503,41 +460,39 @@ public interface BlockActionOrBuilder
    *
    * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction}
    */
-  public static final class BlockAction extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class BlockAction extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction)
       BlockActionOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use BlockAction.newBuilder() to construct.
     private BlockAction(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private BlockAction() {}
+    private BlockAction() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new BlockAction();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_fieldAccessorTable
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.class,
-              com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder.class);
+              com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.class, com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder.class);
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -549,7 +504,8 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
       getUnknownFields().writeTo(output);
     }
 
@@ -567,13 +523,12 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-        return true;
+       return true;
       }
       if (!(obj instanceof com.google.recaptchaenterprise.v1.FirewallAction.BlockAction)) {
         return super.equals(obj);
       }
-      com.google.recaptchaenterprise.v1.FirewallAction.BlockAction other =
-          (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) obj;
+      com.google.recaptchaenterprise.v1.FirewallAction.BlockAction other = (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) obj;
 
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -592,94 +547,89 @@ public int hashCode() {
     }
 
     public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseFrom(
-        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseFrom(
-        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
     public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseFrom(
-        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseFrom(byte[] data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseFrom(
-        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseFrom(
-        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
-    public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseDelimitedFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
 
     public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseDelimitedFrom(
-        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
     }
-
     public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseFrom(
-        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() {
-      return newBuilder();
-    }
-
+    public Builder newBuilderForType() { return newBuilder(); }
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-
-    public static Builder newBuilder(
-        com.google.recaptchaenterprise.v1.FirewallAction.BlockAction prototype) {
+    public static Builder newBuilder(com.google.recaptchaenterprise.v1.FirewallAction.BlockAction prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
-
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE
+          ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -689,8 +639,6 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * A block action serves an HTTP error code a prevents the request from
      * hitting the backend.
@@ -698,33 +646,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction)
         com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-            .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-            .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_fieldAccessorTable
+        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.class,
-                com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder.class);
+                com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.class, com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder.class);
       }
 
       // Construct using com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -732,14 +680,13 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-            .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor;
       }
 
       @java.lang.Override
-      public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction
-          getDefaultInstanceForType() {
+      public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction getDefaultInstanceForType() {
         return com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.getDefaultInstance();
       }
 
@@ -754,8 +701,7 @@ public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction build() {
 
       @java.lang.Override
       public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction buildPartial() {
-        com.google.recaptchaenterprise.v1.FirewallAction.BlockAction result =
-            new com.google.recaptchaenterprise.v1.FirewallAction.BlockAction(this);
+        com.google.recaptchaenterprise.v1.FirewallAction.BlockAction result = new com.google.recaptchaenterprise.v1.FirewallAction.BlockAction(this);
         onBuilt();
         return result;
       }
@@ -764,41 +710,38 @@ public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction buildPartial
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) {
-          return mergeFrom((com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) other);
+          return mergeFrom((com.google.recaptchaenterprise.v1.FirewallAction.BlockAction)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -806,9 +749,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.recaptchaenterprise.v1.FirewallAction.BlockAction other) {
-        if (other
-            == com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.getDefaultInstance())
-          return this;
+        if (other == com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.getDefaultInstance()) return this;
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
         return this;
@@ -835,13 +776,12 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -851,7 +791,6 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -864,44 +803,41 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction)
-    private static final com.google.recaptchaenterprise.v1.FirewallAction.BlockAction
-        DEFAULT_INSTANCE;
-
+    private static final com.google.recaptchaenterprise.v1.FirewallAction.BlockAction DEFAULT_INSTANCE;
     static {
       DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FirewallAction.BlockAction();
     }
 
-    public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction
-        getDefaultInstance() {
+    public static com.google.recaptchaenterprise.v1.FirewallAction.BlockAction getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public BlockAction parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            Builder builder = newBuilder();
-            try {
-              builder.mergeFrom(input, extensionRegistry);
-            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-              throw e.setUnfinishedMessage(builder.buildPartial());
-            } catch (com.google.protobuf.UninitializedMessageException e) {
-              throw e.asInvalidProtocolBufferException()
-                  .setUnfinishedMessage(builder.buildPartial());
-            } catch (java.io.IOException e) {
-              throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                  .setUnfinishedMessage(builder.buildPartial());
-            }
-            return builder.buildPartial();
-          }
-        };
+    private static final com.google.protobuf.Parser
+        PARSER = new com.google.protobuf.AbstractParser() {
+      @java.lang.Override
+      public BlockAction parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        Builder builder = newBuilder();
+        try {
+          builder.mergeFrom(input, extensionRegistry);
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          throw e.setUnfinishedMessage(builder.buildPartial());
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+        } catch (java.io.IOException e) {
+          throw new com.google.protobuf.InvalidProtocolBufferException(e)
+              .setUnfinishedMessage(builder.buildPartial());
+        }
+        return builder.buildPartial();
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -913,19 +849,17 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction
-        getDefaultInstanceForType() {
+    public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
-  public interface RedirectActionOrBuilder
-      extends
+  public interface RedirectActionOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction)
-      com.google.protobuf.MessageOrBuilder {}
+      com.google.protobuf.MessageOrBuilder {
+  }
   /**
-   *
-   *
    * 
    * A redirect action returns a 307 (temporary redirect) response, pointing
    * the user to a ReCaptcha interstitial page to attach a token.
@@ -933,41 +867,39 @@ public interface RedirectActionOrBuilder
    *
    * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction}
    */
-  public static final class RedirectAction extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class RedirectAction extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction)
       RedirectActionOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use RedirectAction.newBuilder() to construct.
     private RedirectAction(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private RedirectAction() {}
+    private RedirectAction() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new RedirectAction();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_fieldAccessorTable
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.class,
-              com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder.class);
+              com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.class, com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder.class);
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -979,7 +911,8 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
       getUnknownFields().writeTo(output);
     }
 
@@ -997,13 +930,12 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-        return true;
+       return true;
       }
       if (!(obj instanceof com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction)) {
         return super.equals(obj);
       }
-      com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction other =
-          (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) obj;
+      com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction other = (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) obj;
 
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -1022,95 +954,89 @@ public int hashCode() {
     }
 
     public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseFrom(
-        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseFrom(
-        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
     public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseFrom(
-        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseFrom(byte[] data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseFrom(
-        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseFrom(
-        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
-    public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction
-        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
 
-    public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction
-        parseDelimitedFrom(
-            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseDelimitedFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
     }
-
     public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseFrom(
-        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() {
-      return newBuilder();
-    }
-
+    public Builder newBuilderForType() { return newBuilder(); }
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-
-    public static Builder newBuilder(
-        com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction prototype) {
+    public static Builder newBuilder(com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
-
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE
+          ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -1120,8 +1046,6 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * A redirect action returns a 307 (temporary redirect) response, pointing
      * the user to a ReCaptcha interstitial page to attach a token.
@@ -1129,34 +1053,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction)
         com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-            .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-            .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_fieldAccessorTable
+        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.class,
-                com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder.class);
+                com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.class, com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder.class);
       }
 
-      // Construct using
-      // com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.newBuilder()
-      private Builder() {}
+      // Construct using com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1164,14 +1087,13 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-            .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor;
       }
 
       @java.lang.Override
-      public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction
-          getDefaultInstanceForType() {
+      public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction getDefaultInstanceForType() {
         return com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.getDefaultInstance();
       }
 
@@ -1186,8 +1108,7 @@ public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction build() {
 
       @java.lang.Override
       public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction buildPartial() {
-        com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction result =
-            new com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction(this);
+        com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction result = new com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction(this);
         onBuilt();
         return result;
       }
@@ -1196,52 +1117,46 @@ public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction buildPart
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) {
-          return mergeFrom((com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) other);
+          return mergeFrom((com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction other) {
-        if (other
-            == com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.getDefaultInstance())
-          return this;
+      public Builder mergeFrom(com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction other) {
+        if (other == com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.getDefaultInstance()) return this;
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
         return this;
@@ -1268,13 +1183,12 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1284,7 +1198,6 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -1297,44 +1210,41 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction)
-    private static final com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction
-        DEFAULT_INSTANCE;
-
+    private static final com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction DEFAULT_INSTANCE;
     static {
       DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction();
     }
 
-    public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction
-        getDefaultInstance() {
+    public static com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public RedirectAction parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            Builder builder = newBuilder();
-            try {
-              builder.mergeFrom(input, extensionRegistry);
-            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-              throw e.setUnfinishedMessage(builder.buildPartial());
-            } catch (com.google.protobuf.UninitializedMessageException e) {
-              throw e.asInvalidProtocolBufferException()
-                  .setUnfinishedMessage(builder.buildPartial());
-            } catch (java.io.IOException e) {
-              throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                  .setUnfinishedMessage(builder.buildPartial());
-            }
-            return builder.buildPartial();
-          }
-        };
+    private static final com.google.protobuf.Parser
+        PARSER = new com.google.protobuf.AbstractParser() {
+      @java.lang.Override
+      public RedirectAction parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        Builder builder = newBuilder();
+        try {
+          builder.mergeFrom(input, extensionRegistry);
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          throw e.setUnfinishedMessage(builder.buildPartial());
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+        } catch (java.io.IOException e) {
+          throw new com.google.protobuf.InvalidProtocolBufferException(e)
+              .setUnfinishedMessage(builder.buildPartial());
+        }
+        return builder.buildPartial();
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -1346,47 +1256,39 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction
-        getDefaultInstanceForType() {
+    public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
-  public interface SubstituteActionOrBuilder
-      extends
+  public interface SubstituteActionOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Optional. The address to redirect to. The target is a relative path in
      * the current host. Example: "/blog/404.html".
      * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The path. */ java.lang.String getPath(); /** - * - * *
      * Optional. The address to redirect to. The target is a relative path in
      * the current host. Example: "/blog/404.html".
      * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for path. */ - com.google.protobuf.ByteString getPathBytes(); + com.google.protobuf.ByteString + getPathBytes(); } /** - * - * *
    * A substitute action transparently serves a different page than the one
    * requested.
@@ -1394,55 +1296,49 @@ public interface SubstituteActionOrBuilder
    *
    * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction}
    */
-  public static final class SubstituteAction extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class SubstituteAction extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction)
       SubstituteActionOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use SubstituteAction.newBuilder() to construct.
     private SubstituteAction(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private SubstituteAction() {
       path_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new SubstituteAction();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_fieldAccessorTable
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.class,
-              com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder.class);
+              com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.class, com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder.class);
     }
 
     public static final int PATH_FIELD_NUMBER = 1;
-
     @SuppressWarnings("serial")
     private volatile java.lang.Object path_ = "";
     /**
-     *
-     *
      * 
      * Optional. The address to redirect to. The target is a relative path in
      * the current host. Example: "/blog/404.html".
      * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The path. */ @java.lang.Override @@ -1451,30 +1347,30 @@ public java.lang.String getPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } } /** - * - * *
      * Optional. The address to redirect to. The target is a relative path in
      * the current host. Example: "/blog/404.html".
      * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for path. */ @java.lang.Override - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -1483,7 +1379,6 @@ public com.google.protobuf.ByteString getPathBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1495,7 +1390,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } @@ -1519,15 +1415,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction other = - (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) obj; + com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction other = (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) obj; - if (!getPath().equals(other.getPath())) return false; + if (!getPath() + .equals(other.getPath())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1547,95 +1443,89 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1645,8 +1535,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A substitute action transparently serves a different page than the one
      * requested.
@@ -1654,34 +1542,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction)
         com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-            .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-            .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_fieldAccessorTable
+        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.class,
-                com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder.class);
+                com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.class, com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder.class);
       }
 
-      // Construct using
-      // com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.newBuilder()
-      private Builder() {}
+      // Construct using com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1691,16 +1578,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-            .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor;
       }
 
       @java.lang.Override
-      public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction
-          getDefaultInstanceForType() {
-        return com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction
-            .getDefaultInstance();
+      public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction getDefaultInstanceForType() {
+        return com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.getDefaultInstance();
       }
 
       @java.lang.Override
@@ -1714,17 +1599,13 @@ public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction build()
 
       @java.lang.Override
       public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction buildPartial() {
-        com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction result =
-            new com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction result = new com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction result) {
+      private void buildPartial0(com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.path_ = path_;
@@ -1735,53 +1616,46 @@ private void buildPartial0(
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) {
-          return mergeFrom(
-              (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) other);
+          return mergeFrom((com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction other) {
-        if (other
-            == com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction other) {
+        if (other == com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.getDefaultInstance()) return this;
         if (!other.getPath().isEmpty()) {
           path_ = other.path_;
           bitField0_ |= 0x00000001;
@@ -1813,19 +1687,17 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  path_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                path_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1835,26 +1707,23 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private java.lang.Object path_ = "";
       /**
-       *
-       *
        * 
        * Optional. The address to redirect to. The target is a relative path in
        * the current host. Example: "/blog/404.html".
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; @@ -1863,22 +1732,21 @@ public java.lang.String getPath() { } } /** - * - * *
        * Optional. The address to redirect to. The target is a relative path in
        * the current host. Example: "/blog/404.html".
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for path. */ - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -1886,37 +1754,30 @@ public com.google.protobuf.ByteString getPathBytes() { } } /** - * - * *
        * Optional. The address to redirect to. The target is a relative path in
        * the current host. Example: "/blog/404.html".
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } path_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Optional. The address to redirect to. The target is a relative path in
        * the current host. Example: "/blog/404.html".
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPath() { @@ -1926,29 +1787,24 @@ public Builder clearPath() { return this; } /** - * - * *
        * Optional. The address to redirect to. The target is a relative path in
        * the current host. Example: "/blog/404.html".
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1961,44 +1817,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction) - private static final com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction(); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubstituteAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubstituteAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2010,70 +1863,57 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface SetHeaderActionOrBuilder - extends + public interface SetHeaderActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Optional. The header key to set in the request to the backend server.
      * 
* * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The key. */ java.lang.String getKey(); /** - * - * *
      * Optional. The header key to set in the request to the backend server.
      * 
* * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for key. */ - com.google.protobuf.ByteString getKeyBytes(); + com.google.protobuf.ByteString + getKeyBytes(); /** - * - * *
      * Optional. The header value to set in the request to the backend server.
      * 
* * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
      * Optional. The header value to set in the request to the backend server.
      * 
* * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); } /** - * - * *
    * A set header action sets a header and forwards the request to the
    * backend. This can be used to trigger custom protection implemented on the
@@ -2082,16 +1922,15 @@ public interface SetHeaderActionOrBuilder
    *
    * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction}
    */
-  public static final class SetHeaderAction extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class SetHeaderAction extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction)
       SetHeaderActionOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use SetHeaderAction.newBuilder() to construct.
     private SetHeaderAction(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private SetHeaderAction() {
       key_ = "";
       value_ = "";
@@ -2099,38 +1938,33 @@ private SetHeaderAction() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new SetHeaderAction();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_fieldAccessorTable
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.class,
-              com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder.class);
+              com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.class, com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder.class);
     }
 
     public static final int KEY_FIELD_NUMBER = 1;
-
     @SuppressWarnings("serial")
     private volatile java.lang.Object key_ = "";
     /**
-     *
-     *
      * 
      * Optional. The header key to set in the request to the backend server.
      * 
* * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The key. */ @java.lang.Override @@ -2139,29 +1973,29 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** - * - * *
      * Optional. The header key to set in the request to the backend server.
      * 
* * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -2170,18 +2004,14 @@ public com.google.protobuf.ByteString getKeyBytes() { } public static final int VALUE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** - * - * *
      * Optional. The header value to set in the request to the backend server.
      * 
* * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The value. */ @java.lang.Override @@ -2190,29 +2020,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** - * - * *
      * Optional. The header value to set in the request to the backend server.
      * 
* * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -2221,7 +2051,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2233,7 +2062,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } @@ -2263,16 +2093,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction other = - (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) obj; + com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction other = (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) obj; - if (!getKey().equals(other.getKey())) return false; - if (!getValue().equals(other.getValue())) return false; + if (!getKey() + .equals(other.getKey())) return false; + if (!getValue() + .equals(other.getValue())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2294,95 +2125,89 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2392,8 +2217,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A set header action sets a header and forwards the request to the
      * backend. This can be used to trigger custom protection implemented on the
@@ -2402,34 +2225,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction)
         com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderActionOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-            .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-            .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_fieldAccessorTable
+        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.class,
-                com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder.class);
+                com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.class, com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder.class);
       }
 
-      // Construct using
-      // com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.newBuilder()
-      private Builder() {}
+      // Construct using com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2440,16 +2262,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-            .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor;
       }
 
       @java.lang.Override
-      public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction
-          getDefaultInstanceForType() {
-        return com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction
-            .getDefaultInstance();
+      public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction getDefaultInstanceForType() {
+        return com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.getDefaultInstance();
       }
 
       @java.lang.Override
@@ -2463,17 +2283,13 @@ public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction build()
 
       @java.lang.Override
       public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction buildPartial() {
-        com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction result =
-            new com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction result = new com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction result) {
+      private void buildPartial0(com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.key_ = key_;
@@ -2487,53 +2303,46 @@ private void buildPartial0(
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) {
-          return mergeFrom(
-              (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) other);
+          return mergeFrom((com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction other) {
-        if (other
-            == com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction other) {
+        if (other == com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.getDefaultInstance()) return this;
         if (!other.getKey().isEmpty()) {
           key_ = other.key_;
           bitField0_ |= 0x00000001;
@@ -2570,25 +2379,22 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  key_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 18:
-                {
-                  value_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 18
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                key_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 18: {
+                value_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2598,25 +2404,22 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private java.lang.Object key_ = "";
       /**
-       *
-       *
        * 
        * Optional. The header key to set in the request to the backend server.
        * 
* * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -2625,21 +2428,20 @@ public java.lang.String getKey() { } } /** - * - * *
        * Optional. The header key to set in the request to the backend server.
        * 
* * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for key. */ - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -2647,35 +2449,28 @@ public com.google.protobuf.ByteString getKeyBytes() { } } /** - * - * *
        * Optional. The header key to set in the request to the backend server.
        * 
* * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Optional. The header key to set in the request to the backend server.
        * 
* * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearKey() { @@ -2685,21 +2480,17 @@ public Builder clearKey() { return this; } /** - * - * *
        * Optional. The header key to set in the request to the backend server.
        * 
* * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; bitField0_ |= 0x00000001; @@ -2709,20 +2500,18 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { private java.lang.Object value_ = ""; /** - * - * *
        * Optional. The header value to set in the request to the backend server.
        * 
* * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -2731,21 +2520,20 @@ public java.lang.String getValue() { } } /** - * - * *
        * Optional. The header value to set in the request to the backend server.
        * 
* * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -2753,35 +2541,28 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
        * Optional. The header value to set in the request to the backend server.
        * 
* * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } value_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Optional. The header value to set in the request to the backend server.
        * 
* * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -2791,28 +2572,23 @@ public Builder clearValue() { return this; } /** - * - * *
        * Optional. The header value to set in the request to the backend server.
        * 
* * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2825,44 +2601,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) - private static final com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction(); } - public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetHeaderAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetHeaderAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2874,20 +2647,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int firewallActionOneofCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object firewallActionOneof_; - public enum FirewallActionOneofCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ALLOW(1), BLOCK(2), @@ -2896,7 +2666,6 @@ public enum FirewallActionOneofCase SET_HEADER(4), FIREWALLACTIONONEOF_NOT_SET(0); private final int value; - private FirewallActionOneofCase(int value) { this.value = value; } @@ -2912,43 +2681,34 @@ public static FirewallActionOneofCase valueOf(int value) { public static FirewallActionOneofCase forNumber(int value) { switch (value) { - case 1: - return ALLOW; - case 2: - return BLOCK; - case 5: - return REDIRECT; - case 3: - return SUBSTITUTE; - case 4: - return SET_HEADER; - case 0: - return FIREWALLACTIONONEOF_NOT_SET; - default: - return null; + case 1: return ALLOW; + case 2: return BLOCK; + case 5: return REDIRECT; + case 3: return SUBSTITUTE; + case 4: return SET_HEADER; + case 0: return FIREWALLACTIONONEOF_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public FirewallActionOneofCase getFirewallActionOneofCase() { - return FirewallActionOneofCase.forNumber(firewallActionOneofCase_); + public FirewallActionOneofCase + getFirewallActionOneofCase() { + return FirewallActionOneofCase.forNumber( + firewallActionOneofCase_); } public static final int ALLOW_FIELD_NUMBER = 1; /** - * - * *
    * The user request did not match any policy and should be allowed
    * access to the requested resource.
    * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction allow = 1; - * * @return Whether the allow field is set. */ @java.lang.Override @@ -2956,27 +2716,22 @@ public boolean hasAllow() { return firewallActionOneofCase_ == 1; } /** - * - * *
    * The user request did not match any policy and should be allowed
    * access to the requested resource.
    * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction allow = 1; - * * @return The allow. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction getAllow() { if (firewallActionOneofCase_ == 1) { - return (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) firewallActionOneof_; } return com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.getDefaultInstance(); } /** - * - * *
    * The user request did not match any policy and should be allowed
    * access to the requested resource.
@@ -2987,22 +2742,19 @@ public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction getAllow() {
   @java.lang.Override
   public com.google.recaptchaenterprise.v1.FirewallAction.AllowActionOrBuilder getAllowOrBuilder() {
     if (firewallActionOneofCase_ == 1) {
-      return (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) firewallActionOneof_;
+       return (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) firewallActionOneof_;
     }
     return com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.getDefaultInstance();
   }
 
   public static final int BLOCK_FIELD_NUMBER = 2;
   /**
-   *
-   *
    * 
    * This action will deny access to a given page. The user will get an HTTP
    * error code.
    * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2; - * * @return Whether the block field is set. */ @java.lang.Override @@ -3010,27 +2762,22 @@ public boolean hasBlock() { return firewallActionOneofCase_ == 2; } /** - * - * *
    * This action will deny access to a given page. The user will get an HTTP
    * error code.
    * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2; - * * @return The block. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction getBlock() { if (firewallActionOneofCase_ == 2) { - return (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) firewallActionOneof_; } return com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.getDefaultInstance(); } /** - * - * *
    * This action will deny access to a given page. The user will get an HTTP
    * error code.
@@ -3041,22 +2788,19 @@ public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction getBlock() {
   @java.lang.Override
   public com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder getBlockOrBuilder() {
     if (firewallActionOneofCase_ == 2) {
-      return (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) firewallActionOneof_;
+       return (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) firewallActionOneof_;
     }
     return com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.getDefaultInstance();
   }
 
   public static final int REDIRECT_FIELD_NUMBER = 5;
   /**
-   *
-   *
    * 
    * This action will redirect the request to a ReCaptcha interstitial to
    * attach a token.
    * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5; - * * @return Whether the redirect field is set. */ @java.lang.Override @@ -3064,27 +2808,22 @@ public boolean hasRedirect() { return firewallActionOneofCase_ == 5; } /** - * - * *
    * This action will redirect the request to a ReCaptcha interstitial to
    * attach a token.
    * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5; - * * @return The redirect. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction getRedirect() { if (firewallActionOneofCase_ == 5) { - return (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) firewallActionOneof_; } return com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.getDefaultInstance(); } /** - * - * *
    * This action will redirect the request to a ReCaptcha interstitial to
    * attach a token.
@@ -3093,26 +2832,21 @@ public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction getRedire
    * .google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;
    */
   @java.lang.Override
-  public com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder
-      getRedirectOrBuilder() {
+  public com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder getRedirectOrBuilder() {
     if (firewallActionOneofCase_ == 5) {
-      return (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) firewallActionOneof_;
+       return (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) firewallActionOneof_;
     }
     return com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.getDefaultInstance();
   }
 
   public static final int SUBSTITUTE_FIELD_NUMBER = 3;
   /**
-   *
-   *
    * 
    * This action will transparently serve a different page to an offending
    * user.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; * @return Whether the substitute field is set. */ @java.lang.Override @@ -3120,59 +2854,45 @@ public boolean hasSubstitute() { return firewallActionOneofCase_ == 3; } /** - * - * *
    * This action will transparently serve a different page to an offending
    * user.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; * @return The substitute. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction getSubstitute() { if (firewallActionOneofCase_ == 3) { - return (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) - firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) firewallActionOneof_; } return com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.getDefaultInstance(); } /** - * - * *
    * This action will transparently serve a different page to an offending
    * user.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder - getSubstituteOrBuilder() { + public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder getSubstituteOrBuilder() { if (firewallActionOneofCase_ == 3) { - return (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) - firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) firewallActionOneof_; } return com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.getDefaultInstance(); } public static final int SET_HEADER_FIELD_NUMBER = 4; /** - * - * *
    * This action will set a custom header but allow the request to continue
    * to the customer backend.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; * @return Whether the setHeader field is set. */ @java.lang.Override @@ -3180,49 +2900,38 @@ public boolean hasSetHeader() { return firewallActionOneofCase_ == 4; } /** - * - * *
    * This action will set a custom header but allow the request to continue
    * to the customer backend.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; * @return The setHeader. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction getSetHeader() { if (firewallActionOneofCase_ == 4) { - return (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) - firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) firewallActionOneof_; } return com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.getDefaultInstance(); } /** - * - * *
    * This action will set a custom header but allow the request to continue
    * to the customer backend.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderActionOrBuilder - getSetHeaderOrBuilder() { + public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderActionOrBuilder getSetHeaderOrBuilder() { if (firewallActionOneofCase_ == 4) { - return (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) - firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) firewallActionOneof_; } return com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3234,29 +2943,22 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (firewallActionOneofCase_ == 1) { - output.writeMessage( - 1, (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) firewallActionOneof_); + output.writeMessage(1, (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) firewallActionOneof_); } if (firewallActionOneofCase_ == 2) { - output.writeMessage( - 2, (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) firewallActionOneof_); + output.writeMessage(2, (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) firewallActionOneof_); } if (firewallActionOneofCase_ == 3) { - output.writeMessage( - 3, - (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) firewallActionOneof_); + output.writeMessage(3, (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) firewallActionOneof_); } if (firewallActionOneofCase_ == 4) { - output.writeMessage( - 4, - (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) firewallActionOneof_); + output.writeMessage(4, (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) firewallActionOneof_); } if (firewallActionOneofCase_ == 5) { - output.writeMessage( - 5, - (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) firewallActionOneof_); + output.writeMessage(5, (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) firewallActionOneof_); } getUnknownFields().writeTo(output); } @@ -3268,37 +2970,24 @@ public int getSerializedSize() { size = 0; if (firewallActionOneofCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) firewallActionOneof_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) firewallActionOneof_); } if (firewallActionOneofCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) firewallActionOneof_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) firewallActionOneof_); } if (firewallActionOneofCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, - (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) - firewallActionOneof_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) firewallActionOneof_); } if (firewallActionOneofCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, - (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) - firewallActionOneof_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) firewallActionOneof_); } if (firewallActionOneofCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, - (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) - firewallActionOneof_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) firewallActionOneof_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3308,30 +2997,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.FirewallAction)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FirewallAction other = - (com.google.recaptchaenterprise.v1.FirewallAction) obj; + com.google.recaptchaenterprise.v1.FirewallAction other = (com.google.recaptchaenterprise.v1.FirewallAction) obj; if (!getFirewallActionOneofCase().equals(other.getFirewallActionOneofCase())) return false; switch (firewallActionOneofCase_) { case 1: - if (!getAllow().equals(other.getAllow())) return false; + if (!getAllow() + .equals(other.getAllow())) return false; break; case 2: - if (!getBlock().equals(other.getBlock())) return false; + if (!getBlock() + .equals(other.getBlock())) return false; break; case 5: - if (!getRedirect().equals(other.getRedirect())) return false; + if (!getRedirect() + .equals(other.getRedirect())) return false; break; case 3: - if (!getSubstitute().equals(other.getSubstitute())) return false; + if (!getSubstitute() + .equals(other.getSubstitute())) return false; break; case 4: - if (!getSetHeader().equals(other.getSetHeader())) return false; + if (!getSetHeader() + .equals(other.getSetHeader())) return false; break; case 0: default: @@ -3376,104 +3069,99 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.FirewallAction parseFrom(java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.FirewallAction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FirewallAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FirewallAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FirewallAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.FirewallAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FirewallAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FirewallAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FirewallAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.FirewallAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FirewallAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.FirewallAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An individual action. Each action represents what to do if a policy
    * matches.
@@ -3481,32 +3169,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallAction}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FirewallAction)
       com.google.recaptchaenterprise.v1.FirewallActionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_fieldAccessorTable
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.recaptchaenterprise.v1.FirewallAction.class,
-              com.google.recaptchaenterprise.v1.FirewallAction.Builder.class);
+              com.google.recaptchaenterprise.v1.FirewallAction.class, com.google.recaptchaenterprise.v1.FirewallAction.Builder.class);
     }
 
     // Construct using com.google.recaptchaenterprise.v1.FirewallAction.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3532,9 +3221,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor;
     }
 
     @java.lang.Override
@@ -3553,11 +3242,8 @@ public com.google.recaptchaenterprise.v1.FirewallAction build() {
 
     @java.lang.Override
     public com.google.recaptchaenterprise.v1.FirewallAction buildPartial() {
-      com.google.recaptchaenterprise.v1.FirewallAction result =
-          new com.google.recaptchaenterprise.v1.FirewallAction(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.recaptchaenterprise.v1.FirewallAction result = new com.google.recaptchaenterprise.v1.FirewallAction(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -3570,19 +3256,24 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.FirewallAction resu
     private void buildPartialOneofs(com.google.recaptchaenterprise.v1.FirewallAction result) {
       result.firewallActionOneofCase_ = firewallActionOneofCase_;
       result.firewallActionOneof_ = this.firewallActionOneof_;
-      if (firewallActionOneofCase_ == 1 && allowBuilder_ != null) {
+      if (firewallActionOneofCase_ == 1 &&
+          allowBuilder_ != null) {
         result.firewallActionOneof_ = allowBuilder_.build();
       }
-      if (firewallActionOneofCase_ == 2 && blockBuilder_ != null) {
+      if (firewallActionOneofCase_ == 2 &&
+          blockBuilder_ != null) {
         result.firewallActionOneof_ = blockBuilder_.build();
       }
-      if (firewallActionOneofCase_ == 5 && redirectBuilder_ != null) {
+      if (firewallActionOneofCase_ == 5 &&
+          redirectBuilder_ != null) {
         result.firewallActionOneof_ = redirectBuilder_.build();
       }
-      if (firewallActionOneofCase_ == 3 && substituteBuilder_ != null) {
+      if (firewallActionOneofCase_ == 3 &&
+          substituteBuilder_ != null) {
         result.firewallActionOneof_ = substituteBuilder_.build();
       }
-      if (firewallActionOneofCase_ == 4 && setHeaderBuilder_ != null) {
+      if (firewallActionOneofCase_ == 4 &&
+          setHeaderBuilder_ != null) {
         result.firewallActionOneof_ = setHeaderBuilder_.build();
       }
     }
@@ -3591,39 +3282,38 @@ private void buildPartialOneofs(com.google.recaptchaenterprise.v1.FirewallAction
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.recaptchaenterprise.v1.FirewallAction) {
-        return mergeFrom((com.google.recaptchaenterprise.v1.FirewallAction) other);
+        return mergeFrom((com.google.recaptchaenterprise.v1.FirewallAction)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3631,38 +3321,31 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.recaptchaenterprise.v1.FirewallAction other) {
-      if (other == com.google.recaptchaenterprise.v1.FirewallAction.getDefaultInstance())
-        return this;
+      if (other == com.google.recaptchaenterprise.v1.FirewallAction.getDefaultInstance()) return this;
       switch (other.getFirewallActionOneofCase()) {
-        case ALLOW:
-          {
-            mergeAllow(other.getAllow());
-            break;
-          }
-        case BLOCK:
-          {
-            mergeBlock(other.getBlock());
-            break;
-          }
-        case REDIRECT:
-          {
-            mergeRedirect(other.getRedirect());
-            break;
-          }
-        case SUBSTITUTE:
-          {
-            mergeSubstitute(other.getSubstitute());
-            break;
-          }
-        case SET_HEADER:
-          {
-            mergeSetHeader(other.getSetHeader());
-            break;
-          }
-        case FIREWALLACTIONONEOF_NOT_SET:
-          {
-            break;
-          }
+        case ALLOW: {
+          mergeAllow(other.getAllow());
+          break;
+        }
+        case BLOCK: {
+          mergeBlock(other.getBlock());
+          break;
+        }
+        case REDIRECT: {
+          mergeRedirect(other.getRedirect());
+          break;
+        }
+        case SUBSTITUTE: {
+          mergeSubstitute(other.getSubstitute());
+          break;
+        }
+        case SET_HEADER: {
+          mergeSetHeader(other.getSetHeader());
+          break;
+        }
+        case FIREWALLACTIONONEOF_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -3690,43 +3373,47 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getAllowFieldBuilder().getBuilder(), extensionRegistry);
-                firewallActionOneofCase_ = 1;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getBlockFieldBuilder().getBuilder(), extensionRegistry);
-                firewallActionOneofCase_ = 2;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getSubstituteFieldBuilder().getBuilder(), extensionRegistry);
-                firewallActionOneofCase_ = 3;
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getSetHeaderFieldBuilder().getBuilder(), extensionRegistry);
-                firewallActionOneofCase_ = 4;
-                break;
-              } // case 34
-            case 42:
-              {
-                input.readMessage(getRedirectFieldBuilder().getBuilder(), extensionRegistry);
-                firewallActionOneofCase_ = 5;
-                break;
-              } // case 42
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getAllowFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              firewallActionOneofCase_ = 1;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getBlockFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              firewallActionOneofCase_ = 2;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getSubstituteFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              firewallActionOneofCase_ = 3;
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getSetHeaderFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              firewallActionOneofCase_ = 4;
+              break;
+            } // case 34
+            case 42: {
+              input.readMessage(
+                  getRedirectFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              firewallActionOneofCase_ = 5;
+              break;
+            } // case 42
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3736,12 +3423,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int firewallActionOneofCase_ = 0;
     private java.lang.Object firewallActionOneof_;
-
-    public FirewallActionOneofCase getFirewallActionOneofCase() {
-      return FirewallActionOneofCase.forNumber(firewallActionOneofCase_);
+    public FirewallActionOneofCase
+        getFirewallActionOneofCase() {
+      return FirewallActionOneofCase.forNumber(
+          firewallActionOneofCase_);
     }
 
     public Builder clearFirewallActionOneof() {
@@ -3754,20 +3441,14 @@ public Builder clearFirewallActionOneof() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.recaptchaenterprise.v1.FirewallAction.AllowAction,
-            com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder,
-            com.google.recaptchaenterprise.v1.FirewallAction.AllowActionOrBuilder>
-        allowBuilder_;
+        com.google.recaptchaenterprise.v1.FirewallAction.AllowAction, com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.AllowActionOrBuilder> allowBuilder_;
     /**
-     *
-     *
      * 
      * The user request did not match any policy and should be allowed
      * access to the requested resource.
      * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction allow = 1; - * * @return Whether the allow field is set. */ @java.lang.Override @@ -3775,23 +3456,19 @@ public boolean hasAllow() { return firewallActionOneofCase_ == 1; } /** - * - * *
      * The user request did not match any policy and should be allowed
      * access to the requested resource.
      * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction allow = 1; - * * @return The allow. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction getAllow() { if (allowBuilder_ == null) { if (firewallActionOneofCase_ == 1) { - return (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) - firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) firewallActionOneof_; } return com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.getDefaultInstance(); } else { @@ -3802,8 +3479,6 @@ public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction getAllow() { } } /** - * - * *
      * The user request did not match any policy and should be allowed
      * access to the requested resource.
@@ -3825,8 +3500,6 @@ public Builder setAllow(com.google.recaptchaenterprise.v1.FirewallAction.AllowAc
       return this;
     }
     /**
-     *
-     *
      * 
      * The user request did not match any policy and should be allowed
      * access to the requested resource.
@@ -3846,8 +3519,6 @@ public Builder setAllow(
       return this;
     }
     /**
-     *
-     *
      * 
      * The user request did not match any policy and should be allowed
      * access to the requested resource.
@@ -3857,16 +3528,10 @@ public Builder setAllow(
      */
     public Builder mergeAllow(com.google.recaptchaenterprise.v1.FirewallAction.AllowAction value) {
       if (allowBuilder_ == null) {
-        if (firewallActionOneofCase_ == 1
-            && firewallActionOneof_
-                != com.google.recaptchaenterprise.v1.FirewallAction.AllowAction
-                    .getDefaultInstance()) {
-          firewallActionOneof_ =
-              com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.newBuilder(
-                      (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction)
-                          firewallActionOneof_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (firewallActionOneofCase_ == 1 &&
+            firewallActionOneof_ != com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.getDefaultInstance()) {
+          firewallActionOneof_ = com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.newBuilder((com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) firewallActionOneof_)
+              .mergeFrom(value).buildPartial();
         } else {
           firewallActionOneof_ = value;
         }
@@ -3882,8 +3547,6 @@ public Builder mergeAllow(com.google.recaptchaenterprise.v1.FirewallAction.Allow
       return this;
     }
     /**
-     *
-     *
      * 
      * The user request did not match any policy and should be allowed
      * access to the requested resource.
@@ -3908,8 +3571,6 @@ public Builder clearAllow() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The user request did not match any policy and should be allowed
      * access to the requested resource.
@@ -3921,8 +3582,6 @@ public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder getA
       return getAllowFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The user request did not match any policy and should be allowed
      * access to the requested resource.
@@ -3931,21 +3590,17 @@ public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder getA
      * .google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction allow = 1;
      */
     @java.lang.Override
-    public com.google.recaptchaenterprise.v1.FirewallAction.AllowActionOrBuilder
-        getAllowOrBuilder() {
+    public com.google.recaptchaenterprise.v1.FirewallAction.AllowActionOrBuilder getAllowOrBuilder() {
       if ((firewallActionOneofCase_ == 1) && (allowBuilder_ != null)) {
         return allowBuilder_.getMessageOrBuilder();
       } else {
         if (firewallActionOneofCase_ == 1) {
-          return (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction)
-              firewallActionOneof_;
+          return (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) firewallActionOneof_;
         }
         return com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.getDefaultInstance();
       }
     }
     /**
-     *
-     *
      * 
      * The user request did not match any policy and should be allowed
      * access to the requested resource.
@@ -3954,20 +3609,14 @@ public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder getA
      * .google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction allow = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.recaptchaenterprise.v1.FirewallAction.AllowAction,
-            com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder,
-            com.google.recaptchaenterprise.v1.FirewallAction.AllowActionOrBuilder>
+        com.google.recaptchaenterprise.v1.FirewallAction.AllowAction, com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.AllowActionOrBuilder> 
         getAllowFieldBuilder() {
       if (allowBuilder_ == null) {
         if (!(firewallActionOneofCase_ == 1)) {
-          firewallActionOneof_ =
-              com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.getDefaultInstance();
+          firewallActionOneof_ = com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.getDefaultInstance();
         }
-        allowBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.recaptchaenterprise.v1.FirewallAction.AllowAction,
-                com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder,
-                com.google.recaptchaenterprise.v1.FirewallAction.AllowActionOrBuilder>(
+        allowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.recaptchaenterprise.v1.FirewallAction.AllowAction, com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.AllowActionOrBuilder>(
                 (com.google.recaptchaenterprise.v1.FirewallAction.AllowAction) firewallActionOneof_,
                 getParentForChildren(),
                 isClean());
@@ -3979,20 +3628,14 @@ public com.google.recaptchaenterprise.v1.FirewallAction.AllowAction.Builder getA
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.recaptchaenterprise.v1.FirewallAction.BlockAction,
-            com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder,
-            com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder>
-        blockBuilder_;
+        com.google.recaptchaenterprise.v1.FirewallAction.BlockAction, com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder> blockBuilder_;
     /**
-     *
-     *
      * 
      * This action will deny access to a given page. The user will get an HTTP
      * error code.
      * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2; - * * @return Whether the block field is set. */ @java.lang.Override @@ -4000,23 +3643,19 @@ public boolean hasBlock() { return firewallActionOneofCase_ == 2; } /** - * - * *
      * This action will deny access to a given page. The user will get an HTTP
      * error code.
      * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2; - * * @return The block. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction getBlock() { if (blockBuilder_ == null) { if (firewallActionOneofCase_ == 2) { - return (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) - firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) firewallActionOneof_; } return com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.getDefaultInstance(); } else { @@ -4027,8 +3666,6 @@ public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction getBlock() { } } /** - * - * *
      * This action will deny access to a given page. The user will get an HTTP
      * error code.
@@ -4050,8 +3687,6 @@ public Builder setBlock(com.google.recaptchaenterprise.v1.FirewallAction.BlockAc
       return this;
     }
     /**
-     *
-     *
      * 
      * This action will deny access to a given page. The user will get an HTTP
      * error code.
@@ -4071,8 +3706,6 @@ public Builder setBlock(
       return this;
     }
     /**
-     *
-     *
      * 
      * This action will deny access to a given page. The user will get an HTTP
      * error code.
@@ -4082,16 +3715,10 @@ public Builder setBlock(
      */
     public Builder mergeBlock(com.google.recaptchaenterprise.v1.FirewallAction.BlockAction value) {
       if (blockBuilder_ == null) {
-        if (firewallActionOneofCase_ == 2
-            && firewallActionOneof_
-                != com.google.recaptchaenterprise.v1.FirewallAction.BlockAction
-                    .getDefaultInstance()) {
-          firewallActionOneof_ =
-              com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.newBuilder(
-                      (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction)
-                          firewallActionOneof_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (firewallActionOneofCase_ == 2 &&
+            firewallActionOneof_ != com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.getDefaultInstance()) {
+          firewallActionOneof_ = com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.newBuilder((com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) firewallActionOneof_)
+              .mergeFrom(value).buildPartial();
         } else {
           firewallActionOneof_ = value;
         }
@@ -4107,8 +3734,6 @@ public Builder mergeBlock(com.google.recaptchaenterprise.v1.FirewallAction.Block
       return this;
     }
     /**
-     *
-     *
      * 
      * This action will deny access to a given page. The user will get an HTTP
      * error code.
@@ -4133,8 +3758,6 @@ public Builder clearBlock() {
       return this;
     }
     /**
-     *
-     *
      * 
      * This action will deny access to a given page. The user will get an HTTP
      * error code.
@@ -4146,8 +3769,6 @@ public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder getB
       return getBlockFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * This action will deny access to a given page. The user will get an HTTP
      * error code.
@@ -4156,21 +3777,17 @@ public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder getB
      * .google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2;
      */
     @java.lang.Override
-    public com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder
-        getBlockOrBuilder() {
+    public com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder getBlockOrBuilder() {
       if ((firewallActionOneofCase_ == 2) && (blockBuilder_ != null)) {
         return blockBuilder_.getMessageOrBuilder();
       } else {
         if (firewallActionOneofCase_ == 2) {
-          return (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction)
-              firewallActionOneof_;
+          return (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) firewallActionOneof_;
         }
         return com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.getDefaultInstance();
       }
     }
     /**
-     *
-     *
      * 
      * This action will deny access to a given page. The user will get an HTTP
      * error code.
@@ -4179,20 +3796,14 @@ public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder getB
      * .google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.recaptchaenterprise.v1.FirewallAction.BlockAction,
-            com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder,
-            com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder>
+        com.google.recaptchaenterprise.v1.FirewallAction.BlockAction, com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder> 
         getBlockFieldBuilder() {
       if (blockBuilder_ == null) {
         if (!(firewallActionOneofCase_ == 2)) {
-          firewallActionOneof_ =
-              com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.getDefaultInstance();
+          firewallActionOneof_ = com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.getDefaultInstance();
         }
-        blockBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.recaptchaenterprise.v1.FirewallAction.BlockAction,
-                com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder,
-                com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder>(
+        blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.recaptchaenterprise.v1.FirewallAction.BlockAction, com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder>(
                 (com.google.recaptchaenterprise.v1.FirewallAction.BlockAction) firewallActionOneof_,
                 getParentForChildren(),
                 isClean());
@@ -4204,20 +3815,14 @@ public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder getB
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction,
-            com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder,
-            com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder>
-        redirectBuilder_;
+        com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction, com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder> redirectBuilder_;
     /**
-     *
-     *
      * 
      * This action will redirect the request to a ReCaptcha interstitial to
      * attach a token.
      * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5; - * * @return Whether the redirect field is set. */ @java.lang.Override @@ -4225,23 +3830,19 @@ public boolean hasRedirect() { return firewallActionOneofCase_ == 5; } /** - * - * *
      * This action will redirect the request to a ReCaptcha interstitial to
      * attach a token.
      * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5; - * * @return The redirect. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction getRedirect() { if (redirectBuilder_ == null) { if (firewallActionOneofCase_ == 5) { - return (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) - firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) firewallActionOneof_; } return com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.getDefaultInstance(); } else { @@ -4252,8 +3853,6 @@ public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction getRedire } } /** - * - * *
      * This action will redirect the request to a ReCaptcha interstitial to
      * attach a token.
@@ -4261,8 +3860,7 @@ public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction getRedire
      *
      * .google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;
      */
-    public Builder setRedirect(
-        com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction value) {
+    public Builder setRedirect(com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction value) {
       if (redirectBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -4276,8 +3874,6 @@ public Builder setRedirect(
       return this;
     }
     /**
-     *
-     *
      * 
      * This action will redirect the request to a ReCaptcha interstitial to
      * attach a token.
@@ -4297,8 +3893,6 @@ public Builder setRedirect(
       return this;
     }
     /**
-     *
-     *
      * 
      * This action will redirect the request to a ReCaptcha interstitial to
      * attach a token.
@@ -4306,19 +3900,12 @@ public Builder setRedirect(
      *
      * .google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;
      */
-    public Builder mergeRedirect(
-        com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction value) {
+    public Builder mergeRedirect(com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction value) {
       if (redirectBuilder_ == null) {
-        if (firewallActionOneofCase_ == 5
-            && firewallActionOneof_
-                != com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction
-                    .getDefaultInstance()) {
-          firewallActionOneof_ =
-              com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.newBuilder(
-                      (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction)
-                          firewallActionOneof_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (firewallActionOneofCase_ == 5 &&
+            firewallActionOneof_ != com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.getDefaultInstance()) {
+          firewallActionOneof_ = com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.newBuilder((com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) firewallActionOneof_)
+              .mergeFrom(value).buildPartial();
         } else {
           firewallActionOneof_ = value;
         }
@@ -4334,8 +3921,6 @@ public Builder mergeRedirect(
       return this;
     }
     /**
-     *
-     *
      * 
      * This action will redirect the request to a ReCaptcha interstitial to
      * attach a token.
@@ -4360,8 +3945,6 @@ public Builder clearRedirect() {
       return this;
     }
     /**
-     *
-     *
      * 
      * This action will redirect the request to a ReCaptcha interstitial to
      * attach a token.
@@ -4369,13 +3952,10 @@ public Builder clearRedirect() {
      *
      * .google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;
      */
-    public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder
-        getRedirectBuilder() {
+    public com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder getRedirectBuilder() {
       return getRedirectFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * This action will redirect the request to a ReCaptcha interstitial to
      * attach a token.
@@ -4384,21 +3964,17 @@ public Builder clearRedirect() {
      * .google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;
      */
     @java.lang.Override
-    public com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder
-        getRedirectOrBuilder() {
+    public com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder getRedirectOrBuilder() {
       if ((firewallActionOneofCase_ == 5) && (redirectBuilder_ != null)) {
         return redirectBuilder_.getMessageOrBuilder();
       } else {
         if (firewallActionOneofCase_ == 5) {
-          return (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction)
-              firewallActionOneof_;
+          return (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) firewallActionOneof_;
         }
         return com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.getDefaultInstance();
       }
     }
     /**
-     *
-     *
      * 
      * This action will redirect the request to a ReCaptcha interstitial to
      * attach a token.
@@ -4407,22 +3983,15 @@ public Builder clearRedirect() {
      * .google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction,
-            com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder,
-            com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder>
+        com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction, com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder> 
         getRedirectFieldBuilder() {
       if (redirectBuilder_ == null) {
         if (!(firewallActionOneofCase_ == 5)) {
-          firewallActionOneof_ =
-              com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.getDefaultInstance();
+          firewallActionOneof_ = com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.getDefaultInstance();
         }
-        redirectBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction,
-                com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder,
-                com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder>(
-                (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction)
-                    firewallActionOneof_,
+        redirectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction, com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder>(
+                (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) firewallActionOneof_,
                 getParentForChildren(),
                 isClean());
         firewallActionOneof_ = null;
@@ -4433,21 +4002,14 @@ public Builder clearRedirect() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction,
-            com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder,
-            com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder>
-        substituteBuilder_;
+        com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction, com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder> substituteBuilder_;
     /**
-     *
-     *
      * 
      * This action will transparently serve a different page to an offending
      * user.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; * @return Whether the substitute field is set. */ @java.lang.Override @@ -4455,48 +4017,37 @@ public boolean hasSubstitute() { return firewallActionOneofCase_ == 3; } /** - * - * *
      * This action will transparently serve a different page to an offending
      * user.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; * @return The substitute. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction getSubstitute() { if (substituteBuilder_ == null) { if (firewallActionOneofCase_ == 3) { - return (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) - firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) firewallActionOneof_; } - return com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction - .getDefaultInstance(); + return com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.getDefaultInstance(); } else { if (firewallActionOneofCase_ == 3) { return substituteBuilder_.getMessage(); } - return com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction - .getDefaultInstance(); + return com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.getDefaultInstance(); } } /** - * - * *
      * This action will transparently serve a different page to an offending
      * user.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; */ - public Builder setSubstitute( - com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction value) { + public Builder setSubstitute(com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction value) { if (substituteBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4510,15 +4061,12 @@ public Builder setSubstitute( return this; } /** - * - * *
      * This action will transparently serve a different page to an offending
      * user.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; */ public Builder setSubstitute( com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder builderForValue) { @@ -4532,29 +4080,19 @@ public Builder setSubstitute( return this; } /** - * - * *
      * This action will transparently serve a different page to an offending
      * user.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; */ - public Builder mergeSubstitute( - com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction value) { + public Builder mergeSubstitute(com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction value) { if (substituteBuilder_ == null) { - if (firewallActionOneofCase_ == 3 - && firewallActionOneof_ - != com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction - .getDefaultInstance()) { - firewallActionOneof_ = - com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.newBuilder( - (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) - firewallActionOneof_) - .mergeFrom(value) - .buildPartial(); + if (firewallActionOneofCase_ == 3 && + firewallActionOneof_ != com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.getDefaultInstance()) { + firewallActionOneof_ = com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.newBuilder((com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) firewallActionOneof_) + .mergeFrom(value).buildPartial(); } else { firewallActionOneof_ = value; } @@ -4570,15 +4108,12 @@ public Builder mergeSubstitute( return this; } /** - * - * *
      * This action will transparently serve a different page to an offending
      * user.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; */ public Builder clearSubstitute() { if (substituteBuilder_ == null) { @@ -4597,74 +4132,53 @@ public Builder clearSubstitute() { return this; } /** - * - * *
      * This action will transparently serve a different page to an offending
      * user.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; */ - public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder - getSubstituteBuilder() { + public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder getSubstituteBuilder() { return getSubstituteFieldBuilder().getBuilder(); } /** - * - * *
      * This action will transparently serve a different page to an offending
      * user.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder - getSubstituteOrBuilder() { + public com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder getSubstituteOrBuilder() { if ((firewallActionOneofCase_ == 3) && (substituteBuilder_ != null)) { return substituteBuilder_.getMessageOrBuilder(); } else { if (firewallActionOneofCase_ == 3) { - return (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) - firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) firewallActionOneof_; } - return com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction - .getDefaultInstance(); + return com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.getDefaultInstance(); } } /** - * - * *
      * This action will transparently serve a different page to an offending
      * user.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction, - com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder, - com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder> + com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction, com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder> getSubstituteFieldBuilder() { if (substituteBuilder_ == null) { if (!(firewallActionOneofCase_ == 3)) { - firewallActionOneof_ = - com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction - .getDefaultInstance(); + firewallActionOneof_ = com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.getDefaultInstance(); } - substituteBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction, - com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder, - com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder>( - (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) - firewallActionOneof_, + substituteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction, com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder>( + (com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction) firewallActionOneof_, getParentForChildren(), isClean()); firewallActionOneof_ = null; @@ -4675,21 +4189,14 @@ public Builder clearSubstitute() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction, - com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder, - com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderActionOrBuilder> - setHeaderBuilder_; + com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction, com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderActionOrBuilder> setHeaderBuilder_; /** - * - * *
      * This action will set a custom header but allow the request to continue
      * to the customer backend.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; * @return Whether the setHeader field is set. */ @java.lang.Override @@ -4697,48 +4204,37 @@ public boolean hasSetHeader() { return firewallActionOneofCase_ == 4; } /** - * - * *
      * This action will set a custom header but allow the request to continue
      * to the customer backend.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; * @return The setHeader. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction getSetHeader() { if (setHeaderBuilder_ == null) { if (firewallActionOneofCase_ == 4) { - return (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) - firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) firewallActionOneof_; } - return com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction - .getDefaultInstance(); + return com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.getDefaultInstance(); } else { if (firewallActionOneofCase_ == 4) { return setHeaderBuilder_.getMessage(); } - return com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction - .getDefaultInstance(); + return com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.getDefaultInstance(); } } /** - * - * *
      * This action will set a custom header but allow the request to continue
      * to the customer backend.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; */ - public Builder setSetHeader( - com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction value) { + public Builder setSetHeader(com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction value) { if (setHeaderBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4752,15 +4248,12 @@ public Builder setSetHeader( return this; } /** - * - * *
      * This action will set a custom header but allow the request to continue
      * to the customer backend.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; */ public Builder setSetHeader( com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder builderForValue) { @@ -4774,29 +4267,19 @@ public Builder setSetHeader( return this; } /** - * - * *
      * This action will set a custom header but allow the request to continue
      * to the customer backend.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; */ - public Builder mergeSetHeader( - com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction value) { + public Builder mergeSetHeader(com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction value) { if (setHeaderBuilder_ == null) { - if (firewallActionOneofCase_ == 4 - && firewallActionOneof_ - != com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction - .getDefaultInstance()) { - firewallActionOneof_ = - com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.newBuilder( - (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) - firewallActionOneof_) - .mergeFrom(value) - .buildPartial(); + if (firewallActionOneofCase_ == 4 && + firewallActionOneof_ != com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.getDefaultInstance()) { + firewallActionOneof_ = com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.newBuilder((com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) firewallActionOneof_) + .mergeFrom(value).buildPartial(); } else { firewallActionOneof_ = value; } @@ -4812,15 +4295,12 @@ public Builder mergeSetHeader( return this; } /** - * - * *
      * This action will set a custom header but allow the request to continue
      * to the customer backend.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; */ public Builder clearSetHeader() { if (setHeaderBuilder_ == null) { @@ -4839,73 +4319,53 @@ public Builder clearSetHeader() { return this; } /** - * - * *
      * This action will set a custom header but allow the request to continue
      * to the customer backend.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; */ - public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder - getSetHeaderBuilder() { + public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder getSetHeaderBuilder() { return getSetHeaderFieldBuilder().getBuilder(); } /** - * - * *
      * This action will set a custom header but allow the request to continue
      * to the customer backend.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderActionOrBuilder - getSetHeaderOrBuilder() { + public com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderActionOrBuilder getSetHeaderOrBuilder() { if ((firewallActionOneofCase_ == 4) && (setHeaderBuilder_ != null)) { return setHeaderBuilder_.getMessageOrBuilder(); } else { if (firewallActionOneofCase_ == 4) { - return (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) - firewallActionOneof_; + return (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) firewallActionOneof_; } - return com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction - .getDefaultInstance(); + return com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.getDefaultInstance(); } } /** - * - * *
      * This action will set a custom header but allow the request to continue
      * to the customer backend.
      * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction, - com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder, - com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderActionOrBuilder> + com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction, com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderActionOrBuilder> getSetHeaderFieldBuilder() { if (setHeaderBuilder_ == null) { if (!(firewallActionOneofCase_ == 4)) { - firewallActionOneof_ = - com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.getDefaultInstance(); + firewallActionOneof_ = com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.getDefaultInstance(); } - setHeaderBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction, - com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder, - com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderActionOrBuilder>( - (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) - firewallActionOneof_, + setHeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction, com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction.Builder, com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderActionOrBuilder>( + (com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction) firewallActionOneof_, getParentForChildren(), isClean()); firewallActionOneof_ = null; @@ -4914,9 +4374,9 @@ public Builder clearSetHeader() { onChanged(); return setHeaderBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4926,12 +4386,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FirewallAction) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FirewallAction) private static final com.google.recaptchaenterprise.v1.FirewallAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FirewallAction(); } @@ -4940,27 +4400,27 @@ public static com.google.recaptchaenterprise.v1.FirewallAction getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FirewallAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FirewallAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4975,4 +4435,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.FirewallAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallActionOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallActionOrBuilder.java similarity index 80% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallActionOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallActionOrBuilder.java index 718f49c6bc82..37347e8503ec 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallActionOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallActionOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface FirewallActionOrBuilder - extends +public interface FirewallActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FirewallAction) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The user request did not match any policy and should be allowed
    * access to the requested resource.
    * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction allow = 1; - * * @return Whether the allow field is set. */ boolean hasAllow(); /** - * - * *
    * The user request did not match any policy and should be allowed
    * access to the requested resource.
    * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.AllowAction allow = 1; - * * @return The allow. */ com.google.recaptchaenterprise.v1.FirewallAction.AllowAction getAllow(); /** - * - * *
    * The user request did not match any policy and should be allowed
    * access to the requested resource.
@@ -62,34 +38,26 @@ public interface FirewallActionOrBuilder
   com.google.recaptchaenterprise.v1.FirewallAction.AllowActionOrBuilder getAllowOrBuilder();
 
   /**
-   *
-   *
    * 
    * This action will deny access to a given page. The user will get an HTTP
    * error code.
    * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2; - * * @return Whether the block field is set. */ boolean hasBlock(); /** - * - * *
    * This action will deny access to a given page. The user will get an HTTP
    * error code.
    * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.BlockAction block = 2; - * * @return The block. */ com.google.recaptchaenterprise.v1.FirewallAction.BlockAction getBlock(); /** - * - * *
    * This action will deny access to a given page. The user will get an HTTP
    * error code.
@@ -100,34 +68,26 @@ public interface FirewallActionOrBuilder
   com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder getBlockOrBuilder();
 
   /**
-   *
-   *
    * 
    * This action will redirect the request to a ReCaptcha interstitial to
    * attach a token.
    * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5; - * * @return Whether the redirect field is set. */ boolean hasRedirect(); /** - * - * *
    * This action will redirect the request to a ReCaptcha interstitial to
    * attach a token.
    * 
* * .google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction redirect = 5; - * * @return The redirect. */ com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction getRedirect(); /** - * - * *
    * This action will redirect the request to a ReCaptcha interstitial to
    * attach a token.
@@ -138,88 +98,64 @@ public interface FirewallActionOrBuilder
   com.google.recaptchaenterprise.v1.FirewallAction.RedirectActionOrBuilder getRedirectOrBuilder();
 
   /**
-   *
-   *
    * 
    * This action will transparently serve a different page to an offending
    * user.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; * @return Whether the substitute field is set. */ boolean hasSubstitute(); /** - * - * *
    * This action will transparently serve a different page to an offending
    * user.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; * @return The substitute. */ com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction getSubstitute(); /** - * - * *
    * This action will transparently serve a different page to an offending
    * user.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction substitute = 3; */ - com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder - getSubstituteOrBuilder(); + com.google.recaptchaenterprise.v1.FirewallAction.SubstituteActionOrBuilder getSubstituteOrBuilder(); /** - * - * *
    * This action will set a custom header but allow the request to continue
    * to the customer backend.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; * @return Whether the setHeader field is set. */ boolean hasSetHeader(); /** - * - * *
    * This action will set a custom header but allow the request to continue
    * to the customer backend.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; * @return The setHeader. */ com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderAction getSetHeader(); /** - * - * *
    * This action will set a custom header but allow the request to continue
    * to the customer backend.
    * 
* - * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; - * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.SetHeaderAction set_header = 4; */ com.google.recaptchaenterprise.v1.FirewallAction.SetHeaderActionOrBuilder getSetHeaderOrBuilder(); - com.google.recaptchaenterprise.v1.FirewallAction.FirewallActionOneofCase - getFirewallActionOneofCase(); + com.google.recaptchaenterprise.v1.FirewallAction.FirewallActionOneofCase getFirewallActionOneofCase(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicy.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicy.java similarity index 74% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicy.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicy.java index 59f8b8f606e1..cf04b9ce3b77 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicy.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicy.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * A FirewallPolicy represents a single matching pattern and resulting actions
  * to take.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallPolicy}
  */
-public final class FirewallPolicy extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class FirewallPolicy extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FirewallPolicy)
     FirewallPolicyOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use FirewallPolicy.newBuilder() to construct.
   private FirewallPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private FirewallPolicy() {
     name_ = "";
     description_ = "";
@@ -48,39 +30,34 @@ private FirewallPolicy() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new FirewallPolicy();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-        .internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-        .internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_fieldAccessorTable
+    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.recaptchaenterprise.v1.FirewallPolicy.class,
-            com.google.recaptchaenterprise.v1.FirewallPolicy.Builder.class);
+            com.google.recaptchaenterprise.v1.FirewallPolicy.class, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * The resource name for the FirewallPolicy in the format
    * `projects/{project}/firewallpolicies/{firewallpolicy}`.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -89,30 +66,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name for the FirewallPolicy in the format
    * `projects/{project}/firewallpolicies/{firewallpolicy}`.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -121,12 +98,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Optional. A description of what this policy aims to achieve, for
    * convenience purposes. The description can at most include 256 UTF-8
@@ -134,7 +108,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -143,15 +116,14 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Optional. A description of what this policy aims to achieve, for
    * convenience purposes. The description can at most include 256 UTF-8
@@ -159,15 +131,16 @@ public java.lang.String getDescription() {
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -176,12 +149,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int PATH_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** - * - * *
    * Optional. The path for which this policy applies, specified as a glob
    * pattern. For more information on glob, see the [manual
@@ -190,7 +160,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
    * 
* * string path = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The path. */ @java.lang.Override @@ -199,15 +168,14 @@ public java.lang.String getPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } } /** - * - * *
    * Optional. The path for which this policy applies, specified as a glob
    * pattern. For more information on glob, see the [manual
@@ -216,15 +184,16 @@ public java.lang.String getPath() {
    * 
* * string path = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for path. */ @java.lang.Override - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -233,12 +202,9 @@ public com.google.protobuf.ByteString getPathBytes() { } public static final int CONDITION_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object condition_ = ""; /** - * - * *
    * Optional. A CEL (Common Expression Language) conditional expression that
    * specifies if this policy applies to an incoming user request. If this
@@ -252,7 +218,6 @@ public com.google.protobuf.ByteString getPathBytes() {
    * 
* * string condition = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The condition. */ @java.lang.Override @@ -261,15 +226,14 @@ public java.lang.String getCondition() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); condition_ = s; return s; } } /** - * - * *
    * Optional. A CEL (Common Expression Language) conditional expression that
    * specifies if this policy applies to an incoming user request. If this
@@ -283,15 +247,16 @@ public java.lang.String getCondition() {
    * 
* * string condition = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for condition. */ @java.lang.Override - public com.google.protobuf.ByteString getConditionBytes() { + public com.google.protobuf.ByteString + getConditionBytes() { java.lang.Object ref = condition_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); condition_ = b; return b; } else { @@ -300,12 +265,9 @@ public com.google.protobuf.ByteString getConditionBytes() { } public static final int ACTIONS_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private java.util.List actions_; /** - * - * *
    * Optional. The actions that the caller should take regarding user access.
    * There should be at most one terminal action. A terminal action is any
@@ -315,17 +277,13 @@ public com.google.protobuf.ByteString getConditionBytes() {
    * specified. A single policy can contain up to 16 actions.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.List getActionsList() { return actions_; } /** - * - * *
    * Optional. The actions that the caller should take regarding user access.
    * There should be at most one terminal action. A terminal action is any
@@ -335,18 +293,14 @@ public java.util.List getActio
    * specified. A single policy can contain up to 16 actions.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getActionsOrBuilderList() { return actions_; } /** - * - * *
    * Optional. The actions that the caller should take regarding user access.
    * There should be at most one terminal action. A terminal action is any
@@ -356,17 +310,13 @@ public java.util.List getActio
    * specified. A single policy can contain up to 16 actions.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getActionsCount() { return actions_.size(); } /** - * - * *
    * Optional. The actions that the caller should take regarding user access.
    * There should be at most one terminal action. A terminal action is any
@@ -376,17 +326,13 @@ public int getActionsCount() {
    * specified. A single policy can contain up to 16 actions.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallAction getActions(int index) { return actions_.get(index); } /** - * - * *
    * Optional. The actions that the caller should take regarding user access.
    * There should be at most one terminal action. A terminal action is any
@@ -396,17 +342,15 @@ public com.google.recaptchaenterprise.v1.FirewallAction getActions(int index) {
    * specified. A single policy can contain up to 16 actions.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FirewallActionOrBuilder getActionsOrBuilder(int index) { + public com.google.recaptchaenterprise.v1.FirewallActionOrBuilder getActionsOrBuilder( + int index) { return actions_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -418,7 +362,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -456,7 +401,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, condition_); } for (int i = 0; i < actions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, actions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, actions_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -466,19 +412,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.FirewallPolicy)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FirewallPolicy other = - (com.google.recaptchaenterprise.v1.FirewallPolicy) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getPath().equals(other.getPath())) return false; - if (!getCondition().equals(other.getCondition())) return false; - if (!getActionsList().equals(other.getActionsList())) return false; + com.google.recaptchaenterprise.v1.FirewallPolicy other = (com.google.recaptchaenterprise.v1.FirewallPolicy) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getPath() + .equals(other.getPath())) return false; + if (!getCondition() + .equals(other.getCondition())) return false; + if (!getActionsList() + .equals(other.getActionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -507,104 +457,99 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.FirewallPolicy parseFrom(java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.FirewallPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FirewallPolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FirewallPolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FirewallPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.FirewallPolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FirewallPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FirewallPolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallPolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FirewallPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.FirewallPolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FirewallPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.FirewallPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A FirewallPolicy represents a single matching pattern and resulting actions
    * to take.
@@ -612,32 +557,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallPolicy}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FirewallPolicy)
       com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_fieldAccessorTable
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.recaptchaenterprise.v1.FirewallPolicy.class,
-              com.google.recaptchaenterprise.v1.FirewallPolicy.Builder.class);
+              com.google.recaptchaenterprise.v1.FirewallPolicy.class, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder.class);
     }
 
     // Construct using com.google.recaptchaenterprise.v1.FirewallPolicy.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -657,9 +603,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-          .internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor;
     }
 
     @java.lang.Override
@@ -678,18 +624,14 @@ public com.google.recaptchaenterprise.v1.FirewallPolicy build() {
 
     @java.lang.Override
     public com.google.recaptchaenterprise.v1.FirewallPolicy buildPartial() {
-      com.google.recaptchaenterprise.v1.FirewallPolicy result =
-          new com.google.recaptchaenterprise.v1.FirewallPolicy(this);
+      com.google.recaptchaenterprise.v1.FirewallPolicy result = new com.google.recaptchaenterprise.v1.FirewallPolicy(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.recaptchaenterprise.v1.FirewallPolicy result) {
+    private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.FirewallPolicy result) {
       if (actionsBuilder_ == null) {
         if (((bitField0_ & 0x00000010) != 0)) {
           actions_ = java.util.Collections.unmodifiableList(actions_);
@@ -721,39 +663,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.FirewallPolicy resu
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.recaptchaenterprise.v1.FirewallPolicy) {
-        return mergeFrom((com.google.recaptchaenterprise.v1.FirewallPolicy) other);
+        return mergeFrom((com.google.recaptchaenterprise.v1.FirewallPolicy)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -761,8 +702,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.recaptchaenterprise.v1.FirewallPolicy other) {
-      if (other == com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance())
-        return this;
+      if (other == com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -801,10 +741,9 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.FirewallPolicy other)
             actionsBuilder_ = null;
             actions_ = other.actions_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            actionsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getActionsFieldBuilder()
-                    : null;
+            actionsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getActionsFieldBuilder() : null;
           } else {
             actionsBuilder_.addAllMessages(other.actions_);
           }
@@ -836,51 +775,45 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 34:
-              {
-                path_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 34
-            case 42:
-              {
-                condition_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 42
-            case 50:
-              {
-                com.google.recaptchaenterprise.v1.FirewallAction m =
-                    input.readMessage(
-                        com.google.recaptchaenterprise.v1.FirewallAction.parser(),
-                        extensionRegistry);
-                if (actionsBuilder_ == null) {
-                  ensureActionsIsMutable();
-                  actions_.add(m);
-                } else {
-                  actionsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              description_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 34: {
+              path_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 34
+            case 42: {
+              condition_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 42
+            case 50: {
+              com.google.recaptchaenterprise.v1.FirewallAction m =
+                  input.readMessage(
+                      com.google.recaptchaenterprise.v1.FirewallAction.parser(),
+                      extensionRegistry);
+              if (actionsBuilder_ == null) {
+                ensureActionsIsMutable();
+                actions_.add(m);
+              } else {
+                actionsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -890,26 +823,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name for the FirewallPolicy in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -918,22 +848,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name for the FirewallPolicy in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -941,37 +870,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name for the FirewallPolicy in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name for the FirewallPolicy in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -981,22 +903,18 @@ public Builder clearName() { return this; } /** - * - * *
      * The resource name for the FirewallPolicy in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1006,8 +924,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Optional. A description of what this policy aims to achieve, for
      * convenience purposes. The description can at most include 256 UTF-8
@@ -1015,13 +931,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1030,8 +946,6 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. A description of what this policy aims to achieve, for
      * convenience purposes. The description can at most include 256 UTF-8
@@ -1039,14 +953,15 @@ public java.lang.String getDescription() {
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1054,8 +969,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. A description of what this policy aims to achieve, for
      * convenience purposes. The description can at most include 256 UTF-8
@@ -1063,22 +976,18 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. A description of what this policy aims to achieve, for
      * convenience purposes. The description can at most include 256 UTF-8
@@ -1086,7 +995,6 @@ public Builder setDescription(java.lang.String value) {
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1096,8 +1004,6 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Optional. A description of what this policy aims to achieve, for
      * convenience purposes. The description can at most include 256 UTF-8
@@ -1105,14 +1011,12 @@ public Builder clearDescription() {
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; @@ -1122,8 +1026,6 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object path_ = ""; /** - * - * *
      * Optional. The path for which this policy applies, specified as a glob
      * pattern. For more information on glob, see the [manual
@@ -1132,13 +1034,13 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      * 
* * string path = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; @@ -1147,8 +1049,6 @@ public java.lang.String getPath() { } } /** - * - * *
      * Optional. The path for which this policy applies, specified as a glob
      * pattern. For more information on glob, see the [manual
@@ -1157,14 +1057,15 @@ public java.lang.String getPath() {
      * 
* * string path = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for path. */ - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -1172,8 +1073,6 @@ public com.google.protobuf.ByteString getPathBytes() { } } /** - * - * *
      * Optional. The path for which this policy applies, specified as a glob
      * pattern. For more information on glob, see the [manual
@@ -1182,22 +1081,18 @@ public com.google.protobuf.ByteString getPathBytes() {
      * 
* * string path = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } path_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. The path for which this policy applies, specified as a glob
      * pattern. For more information on glob, see the [manual
@@ -1206,7 +1101,6 @@ public Builder setPath(java.lang.String value) {
      * 
* * string path = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPath() { @@ -1216,8 +1110,6 @@ public Builder clearPath() { return this; } /** - * - * *
      * Optional. The path for which this policy applies, specified as a glob
      * pattern. For more information on glob, see the [manual
@@ -1226,14 +1118,12 @@ public Builder clearPath() {
      * 
* * string path = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000004; @@ -1243,8 +1133,6 @@ public Builder setPathBytes(com.google.protobuf.ByteString value) { private java.lang.Object condition_ = ""; /** - * - * *
      * Optional. A CEL (Common Expression Language) conditional expression that
      * specifies if this policy applies to an incoming user request. If this
@@ -1258,13 +1146,13 @@ public Builder setPathBytes(com.google.protobuf.ByteString value) {
      * 
* * string condition = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The condition. */ public java.lang.String getCondition() { java.lang.Object ref = condition_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); condition_ = s; return s; @@ -1273,8 +1161,6 @@ public java.lang.String getCondition() { } } /** - * - * *
      * Optional. A CEL (Common Expression Language) conditional expression that
      * specifies if this policy applies to an incoming user request. If this
@@ -1288,14 +1174,15 @@ public java.lang.String getCondition() {
      * 
* * string condition = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for condition. */ - public com.google.protobuf.ByteString getConditionBytes() { + public com.google.protobuf.ByteString + getConditionBytes() { java.lang.Object ref = condition_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); condition_ = b; return b; } else { @@ -1303,8 +1190,6 @@ public com.google.protobuf.ByteString getConditionBytes() { } } /** - * - * *
      * Optional. A CEL (Common Expression Language) conditional expression that
      * specifies if this policy applies to an incoming user request. If this
@@ -1318,22 +1203,18 @@ public com.google.protobuf.ByteString getConditionBytes() {
      * 
* * string condition = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The condition to set. * @return This builder for chaining. */ - public Builder setCondition(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCondition( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } condition_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. A CEL (Common Expression Language) conditional expression that
      * specifies if this policy applies to an incoming user request. If this
@@ -1347,7 +1228,6 @@ public Builder setCondition(java.lang.String value) {
      * 
* * string condition = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCondition() { @@ -1357,8 +1237,6 @@ public Builder clearCondition() { return this; } /** - * - * *
      * Optional. A CEL (Common Expression Language) conditional expression that
      * specifies if this policy applies to an incoming user request. If this
@@ -1372,14 +1250,12 @@ public Builder clearCondition() {
      * 
* * string condition = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for condition to set. * @return This builder for chaining. */ - public Builder setConditionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setConditionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); condition_ = value; bitField0_ |= 0x00000008; @@ -1388,25 +1264,18 @@ public Builder setConditionBytes(com.google.protobuf.ByteString value) { } private java.util.List actions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureActionsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - actions_ = - new java.util.ArrayList(actions_); + actions_ = new java.util.ArrayList(actions_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallAction, - com.google.recaptchaenterprise.v1.FirewallAction.Builder, - com.google.recaptchaenterprise.v1.FirewallActionOrBuilder> - actionsBuilder_; + com.google.recaptchaenterprise.v1.FirewallAction, com.google.recaptchaenterprise.v1.FirewallAction.Builder, com.google.recaptchaenterprise.v1.FirewallActionOrBuilder> actionsBuilder_; /** - * - * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1416,9 +1285,7 @@ private void ensureActionsIsMutable() {
      * specified. A single policy can contain up to 16 actions.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public java.util.List getActionsList() { if (actionsBuilder_ == null) { @@ -1428,8 +1295,6 @@ public java.util.List getActio } } /** - * - * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1439,9 +1304,7 @@ public java.util.List getActio
      * specified. A single policy can contain up to 16 actions.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public int getActionsCount() { if (actionsBuilder_ == null) { @@ -1451,8 +1314,6 @@ public int getActionsCount() { } } /** - * - * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1462,9 +1323,7 @@ public int getActionsCount() {
      * specified. A single policy can contain up to 16 actions.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.FirewallAction getActions(int index) { if (actionsBuilder_ == null) { @@ -1474,8 +1333,6 @@ public com.google.recaptchaenterprise.v1.FirewallAction getActions(int index) { } } /** - * - * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1485,11 +1342,10 @@ public com.google.recaptchaenterprise.v1.FirewallAction getActions(int index) {
      * specified. A single policy can contain up to 16 actions.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setActions(int index, com.google.recaptchaenterprise.v1.FirewallAction value) { + public Builder setActions( + int index, com.google.recaptchaenterprise.v1.FirewallAction value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1503,8 +1359,6 @@ public Builder setActions(int index, com.google.recaptchaenterprise.v1.FirewallA return this; } /** - * - * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1514,9 +1368,7 @@ public Builder setActions(int index, com.google.recaptchaenterprise.v1.FirewallA
      * specified. A single policy can contain up to 16 actions.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setActions( int index, com.google.recaptchaenterprise.v1.FirewallAction.Builder builderForValue) { @@ -1530,8 +1382,6 @@ public Builder setActions( return this; } /** - * - * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1541,9 +1391,7 @@ public Builder setActions(
      * specified. A single policy can contain up to 16 actions.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addActions(com.google.recaptchaenterprise.v1.FirewallAction value) { if (actionsBuilder_ == null) { @@ -1559,8 +1407,6 @@ public Builder addActions(com.google.recaptchaenterprise.v1.FirewallAction value return this; } /** - * - * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1570,11 +1416,10 @@ public Builder addActions(com.google.recaptchaenterprise.v1.FirewallAction value
      * specified. A single policy can contain up to 16 actions.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addActions(int index, com.google.recaptchaenterprise.v1.FirewallAction value) { + public Builder addActions( + int index, com.google.recaptchaenterprise.v1.FirewallAction value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1588,8 +1433,6 @@ public Builder addActions(int index, com.google.recaptchaenterprise.v1.FirewallA return this; } /** - * - * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1599,9 +1442,7 @@ public Builder addActions(int index, com.google.recaptchaenterprise.v1.FirewallA
      * specified. A single policy can contain up to 16 actions.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addActions( com.google.recaptchaenterprise.v1.FirewallAction.Builder builderForValue) { @@ -1615,8 +1456,6 @@ public Builder addActions( return this; } /** - * - * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1626,9 +1465,7 @@ public Builder addActions(
      * specified. A single policy can contain up to 16 actions.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addActions( int index, com.google.recaptchaenterprise.v1.FirewallAction.Builder builderForValue) { @@ -1642,8 +1479,6 @@ public Builder addActions( return this; } /** - * - * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1653,15 +1488,14 @@ public Builder addActions(
      * specified. A single policy can contain up to 16 actions.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllActions( java.lang.Iterable values) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, actions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, actions_); onChanged(); } else { actionsBuilder_.addAllMessages(values); @@ -1669,8 +1503,6 @@ public Builder addAllActions( return this; } /** - * - * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1680,9 +1512,7 @@ public Builder addAllActions(
      * specified. A single policy can contain up to 16 actions.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearActions() { if (actionsBuilder_ == null) { @@ -1695,8 +1525,6 @@ public Builder clearActions() { return this; } /** - * - * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1706,9 +1534,7 @@ public Builder clearActions() {
      * specified. A single policy can contain up to 16 actions.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeActions(int index) { if (actionsBuilder_ == null) { @@ -1721,8 +1547,6 @@ public Builder removeActions(int index) { return this; } /** - * - * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1732,16 +1556,13 @@ public Builder removeActions(int index) {
      * specified. A single policy can contain up to 16 actions.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.recaptchaenterprise.v1.FirewallAction.Builder getActionsBuilder(int index) { + public com.google.recaptchaenterprise.v1.FirewallAction.Builder getActionsBuilder( + int index) { return getActionsFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1751,21 +1572,16 @@ public com.google.recaptchaenterprise.v1.FirewallAction.Builder getActionsBuilde
      * specified. A single policy can contain up to 16 actions.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.FirewallActionOrBuilder getActionsOrBuilder( int index) { if (actionsBuilder_ == null) { - return actions_.get(index); - } else { + return actions_.get(index); } else { return actionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1775,12 +1591,10 @@ public com.google.recaptchaenterprise.v1.FirewallActionOrBuilder getActionsOrBui
      * specified. A single policy can contain up to 16 actions.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getActionsOrBuilderList() { + public java.util.List + getActionsOrBuilderList() { if (actionsBuilder_ != null) { return actionsBuilder_.getMessageOrBuilderList(); } else { @@ -1788,8 +1602,6 @@ public com.google.recaptchaenterprise.v1.FirewallActionOrBuilder getActionsOrBui } } /** - * - * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1799,17 +1611,13 @@ public com.google.recaptchaenterprise.v1.FirewallActionOrBuilder getActionsOrBui
      * specified. A single policy can contain up to 16 actions.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.FirewallAction.Builder addActionsBuilder() { - return getActionsFieldBuilder() - .addBuilder(com.google.recaptchaenterprise.v1.FirewallAction.getDefaultInstance()); + return getActionsFieldBuilder().addBuilder( + com.google.recaptchaenterprise.v1.FirewallAction.getDefaultInstance()); } /** - * - * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1819,17 +1627,14 @@ public com.google.recaptchaenterprise.v1.FirewallAction.Builder addActionsBuilde
      * specified. A single policy can contain up to 16 actions.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.recaptchaenterprise.v1.FirewallAction.Builder addActionsBuilder(int index) { - return getActionsFieldBuilder() - .addBuilder(index, com.google.recaptchaenterprise.v1.FirewallAction.getDefaultInstance()); + public com.google.recaptchaenterprise.v1.FirewallAction.Builder addActionsBuilder( + int index) { + return getActionsFieldBuilder().addBuilder( + index, com.google.recaptchaenterprise.v1.FirewallAction.getDefaultInstance()); } /** - * - * *
      * Optional. The actions that the caller should take regarding user access.
      * There should be at most one terminal action. A terminal action is any
@@ -1839,34 +1644,29 @@ public com.google.recaptchaenterprise.v1.FirewallAction.Builder addActionsBuilde
      * specified. A single policy can contain up to 16 actions.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getActionsBuilderList() { + public java.util.List + getActionsBuilderList() { return getActionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallAction, - com.google.recaptchaenterprise.v1.FirewallAction.Builder, - com.google.recaptchaenterprise.v1.FirewallActionOrBuilder> + com.google.recaptchaenterprise.v1.FirewallAction, com.google.recaptchaenterprise.v1.FirewallAction.Builder, com.google.recaptchaenterprise.v1.FirewallActionOrBuilder> getActionsFieldBuilder() { if (actionsBuilder_ == null) { - actionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallAction, - com.google.recaptchaenterprise.v1.FirewallAction.Builder, - com.google.recaptchaenterprise.v1.FirewallActionOrBuilder>( - actions_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + actionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1.FirewallAction, com.google.recaptchaenterprise.v1.FirewallAction.Builder, com.google.recaptchaenterprise.v1.FirewallActionOrBuilder>( + actions_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); actions_ = null; } return actionsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1876,12 +1676,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FirewallPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FirewallPolicy) private static final com.google.recaptchaenterprise.v1.FirewallPolicy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FirewallPolicy(); } @@ -1890,27 +1690,27 @@ public static com.google.recaptchaenterprise.v1.FirewallPolicy getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FirewallPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FirewallPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1925,4 +1725,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.FirewallPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessment.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessment.java similarity index 67% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessment.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessment.java index 90dd8af1f107..72a20646b051 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessment.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessment.java @@ -1,77 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * Policy config assessment.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment} */ -public final class FirewallPolicyAssessment extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FirewallPolicyAssessment extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment) FirewallPolicyAssessmentOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FirewallPolicyAssessment.newBuilder() to construct. private FirewallPolicyAssessment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private FirewallPolicyAssessment() {} + private FirewallPolicyAssessment() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FirewallPolicyAssessment(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.class, - com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder.class); + com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.class, com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder.class); } public static final int ERROR_FIELD_NUMBER = 5; private com.google.rpc.Status error_; /** - * - * *
    * Output only. If the processing of a policy config fails, an error will be
    * populated and the firewall_policy will be left empty.
    * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the error field is set. */ @java.lang.Override @@ -79,15 +58,12 @@ public boolean hasError() { return error_ != null; } /** - * - * *
    * Output only. If the processing of a policy config fails, an error will be
    * populated and the firewall_policy will be left empty.
    * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The error. */ @java.lang.Override @@ -95,8 +71,6 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** - * - * *
    * Output only. If the processing of a policy config fails, an error will be
    * populated and the firewall_policy will be left empty.
@@ -112,18 +86,13 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int FIREWALL_POLICY_FIELD_NUMBER = 8;
   private com.google.recaptchaenterprise.v1.FirewallPolicy firewallPolicy_;
   /**
-   *
-   *
    * 
    * Output only. The policy that matched the request. If more than one policy
    * may match, this is the first match. If no policy matches the incoming
    * request, the policy field will be left empty.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the firewallPolicy field is set. */ @java.lang.Override @@ -131,48 +100,34 @@ public boolean hasFirewallPolicy() { return firewallPolicy_ != null; } /** - * - * *
    * Output only. The policy that matched the request. If more than one policy
    * may match, this is the first match. If no policy matches the incoming
    * request, the policy field will be left empty.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The firewallPolicy. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy() { - return firewallPolicy_ == null - ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() - : firewallPolicy_; + return firewallPolicy_ == null ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() : firewallPolicy_; } /** - * - * *
    * Output only. The policy that matched the request. If more than one policy
    * may match, this is the first match. If no policy matches the incoming
    * request, the policy field will be left empty.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPolicyOrBuilder() { - return firewallPolicy_ == null - ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() - : firewallPolicy_; + return firewallPolicy_ == null ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() : firewallPolicy_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -184,7 +139,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (error_ != null) { output.writeMessage(5, getError()); } @@ -201,10 +157,12 @@ public int getSerializedSize() { size = 0; if (error_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getError()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getError()); } if (firewallPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getFirewallPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getFirewallPolicy()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -214,21 +172,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.FirewallPolicyAssessment)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FirewallPolicyAssessment other = - (com.google.recaptchaenterprise.v1.FirewallPolicyAssessment) obj; + com.google.recaptchaenterprise.v1.FirewallPolicyAssessment other = (com.google.recaptchaenterprise.v1.FirewallPolicyAssessment) obj; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError().equals(other.getError())) return false; + if (!getError() + .equals(other.getError())) return false; } if (hasFirewallPolicy() != other.hasFirewallPolicy()) return false; if (hasFirewallPolicy()) { - if (!getFirewallPolicy().equals(other.getFirewallPolicy())) return false; + if (!getFirewallPolicy() + .equals(other.getFirewallPolicy())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -255,136 +214,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.FirewallPolicyAssessment prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.FirewallPolicyAssessment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Policy config assessment.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment) com.google.recaptchaenterprise.v1.FirewallPolicyAssessmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.class, - com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder.class); + com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.class, com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -403,9 +357,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor; } @java.lang.Override @@ -424,11 +378,8 @@ public com.google.recaptchaenterprise.v1.FirewallPolicyAssessment build() { @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallPolicyAssessment buildPartial() { - com.google.recaptchaenterprise.v1.FirewallPolicyAssessment result = - new com.google.recaptchaenterprise.v1.FirewallPolicyAssessment(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.FirewallPolicyAssessment result = new com.google.recaptchaenterprise.v1.FirewallPolicyAssessment(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -436,11 +387,14 @@ public com.google.recaptchaenterprise.v1.FirewallPolicyAssessment buildPartial() private void buildPartial0(com.google.recaptchaenterprise.v1.FirewallPolicyAssessment result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + result.error_ = errorBuilder_ == null + ? error_ + : errorBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.firewallPolicy_ = - firewallPolicyBuilder_ == null ? firewallPolicy_ : firewallPolicyBuilder_.build(); + result.firewallPolicy_ = firewallPolicyBuilder_ == null + ? firewallPolicy_ + : firewallPolicyBuilder_.build(); } } @@ -448,39 +402,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.FirewallPolicyAsses public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.FirewallPolicyAssessment) { - return mergeFrom((com.google.recaptchaenterprise.v1.FirewallPolicyAssessment) other); + return mergeFrom((com.google.recaptchaenterprise.v1.FirewallPolicyAssessment)other); } else { super.mergeFrom(other); return this; @@ -488,8 +441,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.FirewallPolicyAssessment other) { - if (other == com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.FirewallPolicyAssessment.getDefaultInstance()) return this; if (other.hasError()) { mergeError(other.getError()); } @@ -522,25 +474,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 42: - { - input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 42 - case 66: - { - input.readMessage(getFirewallPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 42: { + input.readMessage( + getErrorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 42 + case 66: { + input.readMessage( + getFirewallPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -550,38 +503,30 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; /** - * - * *
      * Output only. If the processing of a policy config fails, an error will be
      * populated and the firewall_policy will be left empty.
      * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the error field is set. */ public boolean hasError() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Output only. If the processing of a policy config fails, an error will be
      * populated and the firewall_policy will be left empty.
      * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The error. */ public com.google.rpc.Status getError() { @@ -592,8 +537,6 @@ public com.google.rpc.Status getError() { } } /** - * - * *
      * Output only. If the processing of a policy config fails, an error will be
      * populated and the firewall_policy will be left empty.
@@ -615,8 +558,6 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If the processing of a policy config fails, an error will be
      * populated and the firewall_policy will be left empty.
@@ -624,7 +565,8 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
-    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(
+        com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
       } else {
@@ -635,8 +577,6 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If the processing of a policy config fails, an error will be
      * populated and the firewall_policy will be left empty.
@@ -646,9 +586,9 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
      */
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && error_ != null
-            && error_ != com.google.rpc.Status.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          error_ != null &&
+          error_ != com.google.rpc.Status.getDefaultInstance()) {
           getErrorBuilder().mergeFrom(value);
         } else {
           error_ = value;
@@ -661,8 +601,6 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If the processing of a policy config fails, an error will be
      * populated and the firewall_policy will be left empty.
@@ -681,8 +619,6 @@ public Builder clearError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If the processing of a policy config fails, an error will be
      * populated and the firewall_policy will be left empty.
@@ -696,8 +632,6 @@ public com.google.rpc.Status.Builder getErrorBuilder() {
       return getErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output only. If the processing of a policy config fails, an error will be
      * populated and the firewall_policy will be left empty.
@@ -709,12 +643,11 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       if (errorBuilder_ != null) {
         return errorBuilder_.getMessageOrBuilder();
       } else {
-        return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
+        return error_ == null ?
+            com.google.rpc.Status.getDefaultInstance() : error_;
       }
     }
     /**
-     *
-     *
      * 
      * Output only. If the processing of a policy config fails, an error will be
      * populated and the firewall_policy will be left empty.
@@ -723,14 +656,14 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
+        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+                getError(),
+                getParentForChildren(),
+                isClean());
         error_ = null;
       }
       return errorBuilder_;
@@ -738,64 +671,45 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
 
     private com.google.recaptchaenterprise.v1.FirewallPolicy firewallPolicy_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.recaptchaenterprise.v1.FirewallPolicy,
-            com.google.recaptchaenterprise.v1.FirewallPolicy.Builder,
-            com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder>
-        firewallPolicyBuilder_;
+        com.google.recaptchaenterprise.v1.FirewallPolicy, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> firewallPolicyBuilder_;
     /**
-     *
-     *
      * 
      * Output only. The policy that matched the request. If more than one policy
      * may match, this is the first match. If no policy matches the incoming
      * request, the policy field will be left empty.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the firewallPolicy field is set. */ public boolean hasFirewallPolicy() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The policy that matched the request. If more than one policy
      * may match, this is the first match. If no policy matches the incoming
      * request, the policy field will be left empty.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The firewallPolicy. */ public com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy() { if (firewallPolicyBuilder_ == null) { - return firewallPolicy_ == null - ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() - : firewallPolicy_; + return firewallPolicy_ == null ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() : firewallPolicy_; } else { return firewallPolicyBuilder_.getMessage(); } } /** - * - * *
      * Output only. The policy that matched the request. If more than one policy
      * may match, this is the first match. If no policy matches the incoming
      * request, the policy field will be left empty.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setFirewallPolicy(com.google.recaptchaenterprise.v1.FirewallPolicy value) { if (firewallPolicyBuilder_ == null) { @@ -811,17 +725,13 @@ public Builder setFirewallPolicy(com.google.recaptchaenterprise.v1.FirewallPolic return this; } /** - * - * *
      * Output only. The policy that matched the request. If more than one policy
      * may match, this is the first match. If no policy matches the incoming
      * request, the policy field will be left empty.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setFirewallPolicy( com.google.recaptchaenterprise.v1.FirewallPolicy.Builder builderForValue) { @@ -835,24 +745,19 @@ public Builder setFirewallPolicy( return this; } /** - * - * *
      * Output only. The policy that matched the request. If more than one policy
      * may match, this is the first match. If no policy matches the incoming
      * request, the policy field will be left empty.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeFirewallPolicy(com.google.recaptchaenterprise.v1.FirewallPolicy value) { if (firewallPolicyBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && firewallPolicy_ != null - && firewallPolicy_ - != com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + firewallPolicy_ != null && + firewallPolicy_ != com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance()) { getFirewallPolicyBuilder().mergeFrom(value); } else { firewallPolicy_ = value; @@ -865,17 +770,13 @@ public Builder mergeFirewallPolicy(com.google.recaptchaenterprise.v1.FirewallPol return this; } /** - * - * *
      * Output only. The policy that matched the request. If more than one policy
      * may match, this is the first match. If no policy matches the incoming
      * request, the policy field will be left empty.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearFirewallPolicy() { bitField0_ = (bitField0_ & ~0x00000002); @@ -888,17 +789,13 @@ public Builder clearFirewallPolicy() { return this; } /** - * - * *
      * Output only. The policy that matched the request. If more than one policy
      * may match, this is the first match. If no policy matches the incoming
      * request, the policy field will be left empty.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.recaptchaenterprise.v1.FirewallPolicy.Builder getFirewallPolicyBuilder() { bitField0_ |= 0x00000002; @@ -906,59 +803,47 @@ public com.google.recaptchaenterprise.v1.FirewallPolicy.Builder getFirewallPolic return getFirewallPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The policy that matched the request. If more than one policy
      * may match, this is the first match. If no policy matches the incoming
      * request, the policy field will be left empty.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPolicyOrBuilder() { if (firewallPolicyBuilder_ != null) { return firewallPolicyBuilder_.getMessageOrBuilder(); } else { - return firewallPolicy_ == null - ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() - : firewallPolicy_; + return firewallPolicy_ == null ? + com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() : firewallPolicy_; } } /** - * - * *
      * Output only. The policy that matched the request. If more than one policy
      * may match, this is the first match. If no policy matches the incoming
      * request, the policy field will be left empty.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicy, - com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, - com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> + com.google.recaptchaenterprise.v1.FirewallPolicy, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> getFirewallPolicyFieldBuilder() { if (firewallPolicyBuilder_ == null) { - firewallPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicy, - com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, - com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder>( - getFirewallPolicy(), getParentForChildren(), isClean()); + firewallPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FirewallPolicy, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder>( + getFirewallPolicy(), + getParentForChildren(), + isClean()); firewallPolicy_ = null; } return firewallPolicyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -968,12 +853,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment) private static final com.google.recaptchaenterprise.v1.FirewallPolicyAssessment DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FirewallPolicyAssessment(); } @@ -982,27 +867,27 @@ public static com.google.recaptchaenterprise.v1.FirewallPolicyAssessment getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FirewallPolicyAssessment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FirewallPolicyAssessment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1017,4 +902,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.FirewallPolicyAssessment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessmentOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessmentOrBuilder.java similarity index 66% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessmentOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessmentOrBuilder.java index 1bbe128776c0..b7889708d14d 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessmentOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyAssessmentOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface FirewallPolicyAssessmentOrBuilder - extends +public interface FirewallPolicyAssessmentOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. If the processing of a policy config fails, an error will be
    * populated and the firewall_policy will be left empty.
    * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
    * Output only. If the processing of a policy config fails, an error will be
    * populated and the firewall_policy will be left empty.
    * 
* * .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The error. */ com.google.rpc.Status getError(); /** - * - * *
    * Output only. If the processing of a policy config fails, an error will be
    * populated and the firewall_policy will be left empty.
@@ -62,49 +38,35 @@ public interface FirewallPolicyAssessmentOrBuilder
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. The policy that matched the request. If more than one policy
    * may match, this is the first match. If no policy matches the incoming
    * request, the policy field will be left empty.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the firewallPolicy field is set. */ boolean hasFirewallPolicy(); /** - * - * *
    * Output only. The policy that matched the request. If more than one policy
    * may match, this is the first match. If no policy matches the incoming
    * request, the policy field will be left empty.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The firewallPolicy. */ com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy(); /** - * - * *
    * Output only. The policy that matched the request. If more than one policy
    * may match, this is the first match. If no policy matches the incoming
    * request, the policy field will be left empty.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPolicyOrBuilder(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyName.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyName.java similarity index 100% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyName.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyName.java diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyOrBuilder.java similarity index 77% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyOrBuilder.java index ec17ad10366e..f9f107bcb0be 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface FirewallPolicyOrBuilder - extends +public interface FirewallPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FirewallPolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name for the FirewallPolicy in the format
    * `projects/{project}/firewallpolicies/{firewallpolicy}`.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name for the FirewallPolicy in the format
    * `projects/{project}/firewallpolicies/{firewallpolicy}`.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. A description of what this policy aims to achieve, for
    * convenience purposes. The description can at most include 256 UTF-8
@@ -60,13 +37,10 @@ public interface FirewallPolicyOrBuilder
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. A description of what this policy aims to achieve, for
    * convenience purposes. The description can at most include 256 UTF-8
@@ -74,14 +48,12 @@ public interface FirewallPolicyOrBuilder
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Optional. The path for which this policy applies, specified as a glob
    * pattern. For more information on glob, see the [manual
@@ -90,13 +62,10 @@ public interface FirewallPolicyOrBuilder
    * 
* * string path = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The path. */ java.lang.String getPath(); /** - * - * *
    * Optional. The path for which this policy applies, specified as a glob
    * pattern. For more information on glob, see the [manual
@@ -105,14 +74,12 @@ public interface FirewallPolicyOrBuilder
    * 
* * string path = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for path. */ - com.google.protobuf.ByteString getPathBytes(); + com.google.protobuf.ByteString + getPathBytes(); /** - * - * *
    * Optional. A CEL (Common Expression Language) conditional expression that
    * specifies if this policy applies to an incoming user request. If this
@@ -126,13 +93,10 @@ public interface FirewallPolicyOrBuilder
    * 
* * string condition = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The condition. */ java.lang.String getCondition(); /** - * - * *
    * Optional. A CEL (Common Expression Language) conditional expression that
    * specifies if this policy applies to an incoming user request. If this
@@ -146,14 +110,12 @@ public interface FirewallPolicyOrBuilder
    * 
* * string condition = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for condition. */ - com.google.protobuf.ByteString getConditionBytes(); + com.google.protobuf.ByteString + getConditionBytes(); /** - * - * *
    * Optional. The actions that the caller should take regarding user access.
    * There should be at most one terminal action. A terminal action is any
@@ -163,14 +125,11 @@ public interface FirewallPolicyOrBuilder
    * specified. A single policy can contain up to 16 actions.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getActionsList(); + java.util.List + getActionsList(); /** - * - * *
    * Optional. The actions that the caller should take regarding user access.
    * There should be at most one terminal action. A terminal action is any
@@ -180,14 +139,10 @@ public interface FirewallPolicyOrBuilder
    * specified. A single policy can contain up to 16 actions.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.recaptchaenterprise.v1.FirewallAction getActions(int index); /** - * - * *
    * Optional. The actions that the caller should take regarding user access.
    * There should be at most one terminal action. A terminal action is any
@@ -197,14 +152,10 @@ public interface FirewallPolicyOrBuilder
    * specified. A single policy can contain up to 16 actions.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ int getActionsCount(); /** - * - * *
    * Optional. The actions that the caller should take regarding user access.
    * There should be at most one terminal action. A terminal action is any
@@ -214,15 +165,11 @@ public interface FirewallPolicyOrBuilder
    * specified. A single policy can contain up to 16 actions.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getActionsOrBuilderList(); /** - * - * *
    * Optional. The actions that the caller should take regarding user access.
    * There should be at most one terminal action. A terminal action is any
@@ -232,9 +179,8 @@ public interface FirewallPolicyOrBuilder
    * specified. A single policy can contain up to 16 actions.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallAction actions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.recaptchaenterprise.v1.FirewallActionOrBuilder getActionsOrBuilder(int index); + com.google.recaptchaenterprise.v1.FirewallActionOrBuilder getActionsOrBuilder( + int index); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessment.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessment.java similarity index 56% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessment.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessment.java index 42e5581a0fb5..158b8f230f1f 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessment.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessment.java @@ -1,142 +1,111 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * Assessment for Fraud Prevention.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment} */ -public final class FraudPreventionAssessment extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FraudPreventionAssessment extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment) FraudPreventionAssessmentOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FraudPreventionAssessment.newBuilder() to construct. private FraudPreventionAssessment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private FraudPreventionAssessment() {} + private FraudPreventionAssessment() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FraudPreventionAssessment(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.class, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder.class); + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.class, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder.class); } - public interface StolenInstrumentVerdictOrBuilder - extends + public interface StolenInstrumentVerdictOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Output only. Probability of this transaction being executed with a stolen
      * instrument. Values are from 0.0 (lowest) to 1.0 (highest).
      * 
* * float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The risk. */ float getRisk(); } /** - * - * *
    * Information about stolen instrument fraud, where the user is not the
    * legitimate owner of the instrument being used for the purchase.
    * 
* - * Protobuf type {@code - * google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict} + * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict} */ - public static final class StolenInstrumentVerdict extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class StolenInstrumentVerdict extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict) StolenInstrumentVerdictOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StolenInstrumentVerdict.newBuilder() to construct. private StolenInstrumentVerdict(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StolenInstrumentVerdict() {} + private StolenInstrumentVerdict() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StolenInstrumentVerdict(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - .class, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - .Builder.class); + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.class, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder.class); } public static final int RISK_FIELD_NUMBER = 1; private float risk_ = 0F; /** - * - * *
      * Output only. Probability of this transaction being executed with a stolen
      * instrument. Values are from 0.0 (lowest) to 1.0 (highest).
      * 
* * float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The risk. */ @java.lang.Override @@ -145,7 +114,6 @@ public float getRisk() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -157,7 +125,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(risk_) != 0) { output.writeFloat(1, risk_); } @@ -171,7 +140,8 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(risk_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, risk_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, risk_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -181,18 +151,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict)) { + if (!(obj instanceof com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict other = - (com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict) obj; + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict other = (com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict) obj; if (java.lang.Float.floatToIntBits(getRisk()) - != java.lang.Float.floatToIntBits(other.getRisk())) return false; + != java.lang.Float.floatToIntBits( + other.getRisk())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -205,120 +173,97 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RISK_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getRisk()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getRisk()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .StolenInstrumentVerdict - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .StolenInstrumentVerdict - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .StolenInstrumentVerdict - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .StolenInstrumentVerdict - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .StolenInstrumentVerdict - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .StolenInstrumentVerdict - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .StolenInstrumentVerdict - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .StolenInstrumentVerdict - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .StolenInstrumentVerdict - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .StolenInstrumentVerdict - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .StolenInstrumentVerdict - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .StolenInstrumentVerdict - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -328,47 +273,40 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information about stolen instrument fraud, where the user is not the
      * legitimate owner of the instrument being used for the purchase.
      * 
* - * Protobuf type {@code - * google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict} + * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict) - com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .StolenInstrumentVerdictOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - .class, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - .Builder.class); + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.class, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder.class); } - // Construct using - // com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.newBuilder() - private Builder() {} + // Construct using com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -378,23 +316,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - getDefaultInstanceForType() { - return com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - .getDefaultInstance(); + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance(); } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - build() { - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict result = - buildPartial(); + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict build() { + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -402,21 +336,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - buildPartial() { - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict result = - new com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict buildPartial() { + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict result = new com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - result) { + private void buildPartial0(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.risk_ = risk_; @@ -427,57 +354,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict) { - return mergeFrom( - (com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict) - other); + if (other instanceof com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict) { + return mergeFrom((com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - other) { - if (other - == com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict other) { + if (other == com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance()) return this; if (other.getRisk() != 0F) { setRisk(other.getRisk()); } @@ -507,19 +423,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: - { - risk_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: { + risk_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -529,20 +443,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private float risk_; + private float risk_ ; /** - * - * *
        * Output only. Probability of this transaction being executed with a stolen
        * instrument. Values are from 0.0 (lowest) to 1.0 (highest).
        * 
* * float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The risk. */ @java.lang.Override @@ -550,15 +460,12 @@ public float getRisk() { return risk_; } /** - * - * *
        * Output only. Probability of this transaction being executed with a stolen
        * instrument. Values are from 0.0 (lowest) to 1.0 (highest).
        * 
* * float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The risk to set. * @return This builder for chaining. */ @@ -570,15 +477,12 @@ public Builder setRisk(float value) { return this; } /** - * - * *
        * Output only. Probability of this transaction being executed with a stolen
        * instrument. Values are from 0.0 (lowest) to 1.0 (highest).
        * 
* * float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRisk() { @@ -587,7 +491,6 @@ public Builder clearRisk() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -600,47 +503,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict) - private static final com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .StolenInstrumentVerdict - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict(); + DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict(); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .StolenInstrumentVerdict - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StolenInstrumentVerdict parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StolenInstrumentVerdict parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -652,88 +549,76 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface CardTestingVerdictOrBuilder - extends + public interface CardTestingVerdictOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Output only. Probability of this transaction attempt being part of a card
      * testing attack. Values are from 0.0 (lowest) to 1.0 (highest).
      * 
* * float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The risk. */ float getRisk(); } /** - * - * *
    * Information about card testing fraud, where an adversary is testing
    * fraudulently obtained cards or brute forcing their details.
    * 
* - * Protobuf type {@code - * google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict} + * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict} */ - public static final class CardTestingVerdict extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class CardTestingVerdict extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict) CardTestingVerdictOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CardTestingVerdict.newBuilder() to construct. private CardTestingVerdict(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CardTestingVerdict() {} + private CardTestingVerdict() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CardTestingVerdict(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.class, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.Builder - .class); + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.class, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.Builder.class); } public static final int RISK_FIELD_NUMBER = 1; private float risk_ = 0F; /** - * - * *
      * Output only. Probability of this transaction attempt being part of a card
      * testing attack. Values are from 0.0 (lowest) to 1.0 (highest).
      * 
* * float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The risk. */ @java.lang.Override @@ -742,7 +627,6 @@ public float getRisk() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -754,7 +638,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(risk_) != 0) { output.writeFloat(1, risk_); } @@ -768,7 +653,8 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(risk_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, risk_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, risk_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -778,18 +664,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict)) { + if (!(obj instanceof com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict other = - (com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict) obj; + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict other = (com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict) obj; if (java.lang.Float.floatToIntBits(getRisk()) - != java.lang.Float.floatToIntBits(other.getRisk())) return false; + != java.lang.Float.floatToIntBits( + other.getRisk())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -802,107 +686,97 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RISK_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getRisk()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getRisk()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -912,46 +786,40 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information about card testing fraud, where an adversary is testing
      * fraudulently obtained cards or brute forcing their details.
      * 
* - * Protobuf type {@code - * google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict} + * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict) com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdictOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - .class, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - .Builder.class); + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.class, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.Builder.class); } - // Construct using - // com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.newBuilder() - private Builder() {} + // Construct using com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -961,23 +829,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - getDefaultInstanceForType() { - return com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - .getDefaultInstance(); + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance(); } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - build() { - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict result = - buildPartial(); + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict build() { + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -985,20 +849,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - buildPartial() { - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict result = - new com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict buildPartial() { + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict result = new com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict result) { + private void buildPartial0(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.risk_ = risk_; @@ -1009,56 +867,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict) { - return mergeFrom( - (com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict) - other); + if (other instanceof com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict) { + return mergeFrom((com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict other) { - if (other - == com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict other) { + if (other == com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance()) return this; if (other.getRisk() != 0F) { setRisk(other.getRisk()); } @@ -1088,19 +936,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: - { - risk_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: { + risk_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1110,20 +956,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private float risk_; + private float risk_ ; /** - * - * *
        * Output only. Probability of this transaction attempt being part of a card
        * testing attack. Values are from 0.0 (lowest) to 1.0 (highest).
        * 
* * float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The risk. */ @java.lang.Override @@ -1131,15 +973,12 @@ public float getRisk() { return risk_; } /** - * - * *
        * Output only. Probability of this transaction attempt being part of a card
        * testing attack. Values are from 0.0 (lowest) to 1.0 (highest).
        * 
* * float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The risk to set. * @return This builder for chaining. */ @@ -1151,15 +990,12 @@ public Builder setRisk(float value) { return this; } /** - * - * *
        * Output only. Probability of this transaction attempt being part of a card
        * testing attack. Values are from 0.0 (lowest) to 1.0 (highest).
        * 
* * float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRisk() { @@ -1168,7 +1004,6 @@ public Builder clearRisk() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1181,46 +1016,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict) - private static final com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .CardTestingVerdict - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict(); + DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict(); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CardTestingVerdict parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CardTestingVerdict parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1232,20 +1062,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface BehavioralTrustVerdictOrBuilder - extends + public interface BehavioralTrustVerdictOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Output only. Probability of this transaction attempt being executed in a
      * behaviorally trustworthy way. Values are from 0.0 (lowest) to 1.0
@@ -1253,61 +1080,52 @@ public interface BehavioralTrustVerdictOrBuilder
      * 
* * float trust = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The trust. */ float getTrust(); } /** - * - * *
    * Information about behavioral trust of the transaction.
    * 
* - * Protobuf type {@code - * google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict} + * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict} */ - public static final class BehavioralTrustVerdict extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class BehavioralTrustVerdict extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict) BehavioralTrustVerdictOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BehavioralTrustVerdict.newBuilder() to construct. private BehavioralTrustVerdict(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BehavioralTrustVerdict() {} + private BehavioralTrustVerdict() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BehavioralTrustVerdict(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - .class, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - .Builder.class); + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.class, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder.class); } public static final int TRUST_FIELD_NUMBER = 1; private float trust_ = 0F; /** - * - * *
      * Output only. Probability of this transaction attempt being executed in a
      * behaviorally trustworthy way. Values are from 0.0 (lowest) to 1.0
@@ -1315,7 +1133,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * float trust = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The trust. */ @java.lang.Override @@ -1324,7 +1141,6 @@ public float getTrust() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1336,7 +1152,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(trust_) != 0) { output.writeFloat(1, trust_); } @@ -1350,7 +1167,8 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(trust_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, trust_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, trust_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1360,18 +1178,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict)) { + if (!(obj instanceof com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict other = - (com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict) obj; + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict other = (com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict) obj; if (java.lang.Float.floatToIntBits(getTrust()) - != java.lang.Float.floatToIntBits(other.getTrust())) return false; + != java.lang.Float.floatToIntBits( + other.getTrust())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1384,108 +1200,97 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TRUST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getTrust()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getTrust()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1495,46 +1300,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information about behavioral trust of the transaction.
      * 
* - * Protobuf type {@code - * google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict} + * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict) - com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .BehavioralTrustVerdictOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - .class, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - .Builder.class); + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.class, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder.class); } - // Construct using - // com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.newBuilder() - private Builder() {} + // Construct using com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1544,23 +1342,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - getDefaultInstanceForType() { - return com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - .getDefaultInstance(); + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance(); } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - build() { - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict result = - buildPartial(); + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict build() { + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1568,21 +1362,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - buildPartial() { - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict result = - new com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict buildPartial() { + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict result = new com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - result) { + private void buildPartial0(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.trust_ = trust_; @@ -1593,57 +1380,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict) { - return mergeFrom( - (com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict) - other); + if (other instanceof com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict) { + return mergeFrom((com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - other) { - if (other - == com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict other) { + if (other == com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance()) return this; if (other.getTrust() != 0F) { setTrust(other.getTrust()); } @@ -1673,19 +1449,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: - { - trust_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: { + trust_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1695,13 +1469,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private float trust_; + private float trust_ ; /** - * - * *
        * Output only. Probability of this transaction attempt being executed in a
        * behaviorally trustworthy way. Values are from 0.0 (lowest) to 1.0
@@ -1709,7 +1480,6 @@ public Builder mergeFrom(
        * 
* * float trust = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The trust. */ @java.lang.Override @@ -1717,8 +1487,6 @@ public float getTrust() { return trust_; } /** - * - * *
        * Output only. Probability of this transaction attempt being executed in a
        * behaviorally trustworthy way. Values are from 0.0 (lowest) to 1.0
@@ -1726,7 +1494,6 @@ public float getTrust() {
        * 
* * float trust = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The trust to set. * @return This builder for chaining. */ @@ -1738,8 +1505,6 @@ public Builder setTrust(float value) { return this; } /** - * - * *
        * Output only. Probability of this transaction attempt being executed in a
        * behaviorally trustworthy way. Values are from 0.0 (lowest) to 1.0
@@ -1747,7 +1512,6 @@ public Builder setTrust(float value) {
        * 
* * float trust = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTrust() { @@ -1756,7 +1520,6 @@ public Builder clearTrust() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1769,46 +1532,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict) - private static final com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .BehavioralTrustVerdict - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict(); + DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict(); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BehavioralTrustVerdict parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BehavioralTrustVerdict parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1820,17 +1578,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int TRANSACTION_RISK_FIELD_NUMBER = 1; private float transactionRisk_ = 0F; /** - * - * *
    * Output only. Probability of this transaction being fraudulent. Summarizes
    * the combined risk of attack vectors below. Values are from 0.0 (lowest)
@@ -1838,7 +1594,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * float transaction_risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The transactionRisk. */ @java.lang.Override @@ -1847,20 +1602,14 @@ public float getTransactionRisk() { } public static final int STOLEN_INSTRUMENT_VERDICT_FIELD_NUMBER = 2; - private com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - stolenInstrumentVerdict_; + private com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolenInstrumentVerdict_; /** - * - * *
    * Output only. Assessment of this transaction for risk of a stolen
    * instrument.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the stolenInstrumentVerdict field is set. */ @java.lang.Override @@ -1868,64 +1617,40 @@ public boolean hasStolenInstrumentVerdict() { return stolenInstrumentVerdict_ != null; } /** - * - * *
    * Output only. Assessment of this transaction for risk of a stolen
    * instrument.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The stolenInstrumentVerdict. */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - getStolenInstrumentVerdict() { - return stolenInstrumentVerdict_ == null - ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - .getDefaultInstance() - : stolenInstrumentVerdict_; + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict getStolenInstrumentVerdict() { + return stolenInstrumentVerdict_ == null ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance() : stolenInstrumentVerdict_; } /** - * - * *
    * Output only. Assessment of this transaction for risk of a stolen
    * instrument.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .StolenInstrumentVerdictOrBuilder - getStolenInstrumentVerdictOrBuilder() { - return stolenInstrumentVerdict_ == null - ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - .getDefaultInstance() - : stolenInstrumentVerdict_; + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder getStolenInstrumentVerdictOrBuilder() { + return stolenInstrumentVerdict_ == null ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance() : stolenInstrumentVerdict_; } public static final int CARD_TESTING_VERDICT_FIELD_NUMBER = 3; - private com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - cardTestingVerdict_; + private com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict cardTestingVerdict_; /** - * - * *
    * Output only. Assessment of this transaction for risk of being part of a
    * card testing attack.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the cardTestingVerdict field is set. */ @java.lang.Override @@ -1933,62 +1658,39 @@ public boolean hasCardTestingVerdict() { return cardTestingVerdict_ != null; } /** - * - * *
    * Output only. Assessment of this transaction for risk of being part of a
    * card testing attack.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The cardTestingVerdict. */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - getCardTestingVerdict() { - return cardTestingVerdict_ == null - ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - .getDefaultInstance() - : cardTestingVerdict_; + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict getCardTestingVerdict() { + return cardTestingVerdict_ == null ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance() : cardTestingVerdict_; } /** - * - * *
    * Output only. Assessment of this transaction for risk of being part of a
    * card testing attack.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdictOrBuilder - getCardTestingVerdictOrBuilder() { - return cardTestingVerdict_ == null - ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - .getDefaultInstance() - : cardTestingVerdict_; + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdictOrBuilder getCardTestingVerdictOrBuilder() { + return cardTestingVerdict_ == null ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance() : cardTestingVerdict_; } public static final int BEHAVIORAL_TRUST_VERDICT_FIELD_NUMBER = 4; - private com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - behavioralTrustVerdict_; + private com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioralTrustVerdict_; /** - * - * *
    * Output only. Assessment of this transaction for behavioral trust.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the behavioralTrustVerdict field is set. */ @java.lang.Override @@ -1996,48 +1698,30 @@ public boolean hasBehavioralTrustVerdict() { return behavioralTrustVerdict_ != null; } /** - * - * *
    * Output only. Assessment of this transaction for behavioral trust.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The behavioralTrustVerdict. */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - getBehavioralTrustVerdict() { - return behavioralTrustVerdict_ == null - ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - .getDefaultInstance() - : behavioralTrustVerdict_; + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict getBehavioralTrustVerdict() { + return behavioralTrustVerdict_ == null ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance() : behavioralTrustVerdict_; } /** - * - * *
    * Output only. Assessment of this transaction for behavioral trust.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder - getBehavioralTrustVerdictOrBuilder() { - return behavioralTrustVerdict_ == null - ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - .getDefaultInstance() - : behavioralTrustVerdict_; + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder getBehavioralTrustVerdictOrBuilder() { + return behavioralTrustVerdict_ == null ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance() : behavioralTrustVerdict_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2049,7 +1733,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(transactionRisk_) != 0) { output.writeFloat(1, transactionRisk_); } @@ -2072,18 +1757,20 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(transactionRisk_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, transactionRisk_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, transactionRisk_); } if (stolenInstrumentVerdict_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStolenInstrumentVerdict()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStolenInstrumentVerdict()); } if (cardTestingVerdict_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCardTestingVerdict()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCardTestingVerdict()); } if (behavioralTrustVerdict_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, getBehavioralTrustVerdict()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getBehavioralTrustVerdict()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2093,27 +1780,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.FraudPreventionAssessment)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FraudPreventionAssessment other = - (com.google.recaptchaenterprise.v1.FraudPreventionAssessment) obj; + com.google.recaptchaenterprise.v1.FraudPreventionAssessment other = (com.google.recaptchaenterprise.v1.FraudPreventionAssessment) obj; if (java.lang.Float.floatToIntBits(getTransactionRisk()) - != java.lang.Float.floatToIntBits(other.getTransactionRisk())) return false; + != java.lang.Float.floatToIntBits( + other.getTransactionRisk())) return false; if (hasStolenInstrumentVerdict() != other.hasStolenInstrumentVerdict()) return false; if (hasStolenInstrumentVerdict()) { - if (!getStolenInstrumentVerdict().equals(other.getStolenInstrumentVerdict())) return false; + if (!getStolenInstrumentVerdict() + .equals(other.getStolenInstrumentVerdict())) return false; } if (hasCardTestingVerdict() != other.hasCardTestingVerdict()) return false; if (hasCardTestingVerdict()) { - if (!getCardTestingVerdict().equals(other.getCardTestingVerdict())) return false; + if (!getCardTestingVerdict() + .equals(other.getCardTestingVerdict())) return false; } if (hasBehavioralTrustVerdict() != other.hasBehavioralTrustVerdict()) return false; if (hasBehavioralTrustVerdict()) { - if (!getBehavioralTrustVerdict().equals(other.getBehavioralTrustVerdict())) return false; + if (!getBehavioralTrustVerdict() + .equals(other.getBehavioralTrustVerdict())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2127,7 +1817,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TRANSACTION_RISK_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getTransactionRisk()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getTransactionRisk()); if (hasStolenInstrumentVerdict()) { hash = (37 * hash) + STOLEN_INSTRUMENT_VERDICT_FIELD_NUMBER; hash = (53 * hash) + getStolenInstrumentVerdict().hashCode(); @@ -2146,136 +1837,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.FraudPreventionAssessment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Assessment for Fraud Prevention.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment) com.google.recaptchaenterprise.v1.FraudPreventionAssessmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.class, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder.class); + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.class, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.FraudPreventionAssessment.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2300,9 +1986,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor; } @java.lang.Override @@ -2321,11 +2007,8 @@ public com.google.recaptchaenterprise.v1.FraudPreventionAssessment build() { @java.lang.Override public com.google.recaptchaenterprise.v1.FraudPreventionAssessment buildPartial() { - com.google.recaptchaenterprise.v1.FraudPreventionAssessment result = - new com.google.recaptchaenterprise.v1.FraudPreventionAssessment(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.FraudPreventionAssessment result = new com.google.recaptchaenterprise.v1.FraudPreventionAssessment(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -2336,22 +2019,19 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.FraudPreventionAsse result.transactionRisk_ = transactionRisk_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.stolenInstrumentVerdict_ = - stolenInstrumentVerdictBuilder_ == null - ? stolenInstrumentVerdict_ - : stolenInstrumentVerdictBuilder_.build(); + result.stolenInstrumentVerdict_ = stolenInstrumentVerdictBuilder_ == null + ? stolenInstrumentVerdict_ + : stolenInstrumentVerdictBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.cardTestingVerdict_ = - cardTestingVerdictBuilder_ == null - ? cardTestingVerdict_ - : cardTestingVerdictBuilder_.build(); + result.cardTestingVerdict_ = cardTestingVerdictBuilder_ == null + ? cardTestingVerdict_ + : cardTestingVerdictBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.behavioralTrustVerdict_ = - behavioralTrustVerdictBuilder_ == null - ? behavioralTrustVerdict_ - : behavioralTrustVerdictBuilder_.build(); + result.behavioralTrustVerdict_ = behavioralTrustVerdictBuilder_ == null + ? behavioralTrustVerdict_ + : behavioralTrustVerdictBuilder_.build(); } } @@ -2359,39 +2039,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.FraudPreventionAsse public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.FraudPreventionAssessment) { - return mergeFrom((com.google.recaptchaenterprise.v1.FraudPreventionAssessment) other); + return mergeFrom((com.google.recaptchaenterprise.v1.FraudPreventionAssessment)other); } else { super.mergeFrom(other); return this; @@ -2399,8 +2078,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.FraudPreventionAssessment other) { - if (other == com.google.recaptchaenterprise.v1.FraudPreventionAssessment.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.FraudPreventionAssessment.getDefaultInstance()) return this; if (other.getTransactionRisk() != 0F) { setTransactionRisk(other.getTransactionRisk()); } @@ -2439,40 +2117,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: - { - transactionRisk_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - case 18: - { - input.readMessage( - getStolenInstrumentVerdictFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getCardTestingVerdictFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getBehavioralTrustVerdictFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: { + transactionRisk_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 18: { + input.readMessage( + getStolenInstrumentVerdictFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getCardTestingVerdictFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getBehavioralTrustVerdictFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2482,13 +2158,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private float transactionRisk_; + private float transactionRisk_ ; /** - * - * *
      * Output only. Probability of this transaction being fraudulent. Summarizes
      * the combined risk of attack vectors below. Values are from 0.0 (lowest)
@@ -2496,7 +2169,6 @@ public Builder mergeFrom(
      * 
* * float transaction_risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The transactionRisk. */ @java.lang.Override @@ -2504,8 +2176,6 @@ public float getTransactionRisk() { return transactionRisk_; } /** - * - * *
      * Output only. Probability of this transaction being fraudulent. Summarizes
      * the combined risk of attack vectors below. Values are from 0.0 (lowest)
@@ -2513,7 +2183,6 @@ public float getTransactionRisk() {
      * 
* * float transaction_risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The transactionRisk to set. * @return This builder for chaining. */ @@ -2525,8 +2194,6 @@ public Builder setTransactionRisk(float value) { return this; } /** - * - * *
      * Output only. Probability of this transaction being fraudulent. Summarizes
      * the combined risk of attack vectors below. Values are from 0.0 (lowest)
@@ -2534,7 +2201,6 @@ public Builder setTransactionRisk(float value) {
      * 
* * float transaction_risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTransactionRisk() { @@ -2544,71 +2210,46 @@ public Builder clearTransactionRisk() { return this; } - private com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - stolenInstrumentVerdict_; + private com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolenInstrumentVerdict_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - .Builder, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .StolenInstrumentVerdictOrBuilder> - stolenInstrumentVerdictBuilder_; + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder> stolenInstrumentVerdictBuilder_; /** - * - * *
      * Output only. Assessment of this transaction for risk of a stolen
      * instrument.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the stolenInstrumentVerdict field is set. */ public boolean hasStolenInstrumentVerdict() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. Assessment of this transaction for risk of a stolen
      * instrument.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The stolenInstrumentVerdict. */ - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - getStolenInstrumentVerdict() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict getStolenInstrumentVerdict() { if (stolenInstrumentVerdictBuilder_ == null) { - return stolenInstrumentVerdict_ == null - ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - .getDefaultInstance() - : stolenInstrumentVerdict_; + return stolenInstrumentVerdict_ == null ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance() : stolenInstrumentVerdict_; } else { return stolenInstrumentVerdictBuilder_.getMessage(); } } /** - * - * *
      * Output only. Assessment of this transaction for risk of a stolen
      * instrument.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStolenInstrumentVerdict( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict value) { + public Builder setStolenInstrumentVerdict(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict value) { if (stolenInstrumentVerdictBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2622,20 +2263,15 @@ public Builder setStolenInstrumentVerdict( return this; } /** - * - * *
      * Output only. Assessment of this transaction for risk of a stolen
      * instrument.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStolenInstrumentVerdict( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder - builderForValue) { + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder builderForValue) { if (stolenInstrumentVerdictBuilder_ == null) { stolenInstrumentVerdict_ = builderForValue.build(); } else { @@ -2646,25 +2282,18 @@ public Builder setStolenInstrumentVerdict( return this; } /** - * - * *
      * Output only. Assessment of this transaction for risk of a stolen
      * instrument.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeStolenInstrumentVerdict( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict value) { + public Builder mergeStolenInstrumentVerdict(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict value) { if (stolenInstrumentVerdictBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && stolenInstrumentVerdict_ != null - && stolenInstrumentVerdict_ - != com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .StolenInstrumentVerdict.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + stolenInstrumentVerdict_ != null && + stolenInstrumentVerdict_ != com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance()) { getStolenInstrumentVerdictBuilder().mergeFrom(value); } else { stolenInstrumentVerdict_ = value; @@ -2677,16 +2306,12 @@ public Builder mergeStolenInstrumentVerdict( return this; } /** - * - * *
      * Output only. Assessment of this transaction for risk of a stolen
      * instrument.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStolenInstrumentVerdict() { bitField0_ = (bitField0_ & ~0x00000002); @@ -2699,144 +2324,96 @@ public Builder clearStolenInstrumentVerdict() { return this; } /** - * - * *
      * Output only. Assessment of this transaction for risk of a stolen
      * instrument.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - .Builder - getStolenInstrumentVerdictBuilder() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder getStolenInstrumentVerdictBuilder() { bitField0_ |= 0x00000002; onChanged(); return getStolenInstrumentVerdictFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Assessment of this transaction for risk of a stolen
      * instrument.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .StolenInstrumentVerdictOrBuilder - getStolenInstrumentVerdictOrBuilder() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder getStolenInstrumentVerdictOrBuilder() { if (stolenInstrumentVerdictBuilder_ != null) { return stolenInstrumentVerdictBuilder_.getMessageOrBuilder(); } else { - return stolenInstrumentVerdict_ == null - ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - .getDefaultInstance() - : stolenInstrumentVerdict_; + return stolenInstrumentVerdict_ == null ? + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance() : stolenInstrumentVerdict_; } } /** - * - * *
      * Output only. Assessment of this transaction for risk of a stolen
      * instrument.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - .Builder, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .StolenInstrumentVerdictOrBuilder> + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder> getStolenInstrumentVerdictFieldBuilder() { if (stolenInstrumentVerdictBuilder_ == null) { - stolenInstrumentVerdictBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict - .Builder, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .StolenInstrumentVerdictOrBuilder>( - getStolenInstrumentVerdict(), getParentForChildren(), isClean()); + stolenInstrumentVerdictBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder>( + getStolenInstrumentVerdict(), + getParentForChildren(), + isClean()); stolenInstrumentVerdict_ = null; } return stolenInstrumentVerdictBuilder_; } - private com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - cardTestingVerdict_; + private com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict cardTestingVerdict_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.Builder, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdictOrBuilder> - cardTestingVerdictBuilder_; + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.Builder, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdictOrBuilder> cardTestingVerdictBuilder_; /** - * - * *
      * Output only. Assessment of this transaction for risk of being part of a
      * card testing attack.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the cardTestingVerdict field is set. */ public boolean hasCardTestingVerdict() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. Assessment of this transaction for risk of being part of a
      * card testing attack.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The cardTestingVerdict. */ - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - getCardTestingVerdict() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict getCardTestingVerdict() { if (cardTestingVerdictBuilder_ == null) { - return cardTestingVerdict_ == null - ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - .getDefaultInstance() - : cardTestingVerdict_; + return cardTestingVerdict_ == null ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance() : cardTestingVerdict_; } else { return cardTestingVerdictBuilder_.getMessage(); } } /** - * - * *
      * Output only. Assessment of this transaction for risk of being part of a
      * card testing attack.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCardTestingVerdict( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict value) { + public Builder setCardTestingVerdict(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict value) { if (cardTestingVerdictBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2850,20 +2427,15 @@ public Builder setCardTestingVerdict( return this; } /** - * - * *
      * Output only. Assessment of this transaction for risk of being part of a
      * card testing attack.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCardTestingVerdict( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.Builder - builderForValue) { + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.Builder builderForValue) { if (cardTestingVerdictBuilder_ == null) { cardTestingVerdict_ = builderForValue.build(); } else { @@ -2874,25 +2446,18 @@ public Builder setCardTestingVerdict( return this; } /** - * - * *
      * Output only. Assessment of this transaction for risk of being part of a
      * card testing attack.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeCardTestingVerdict( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict value) { + public Builder mergeCardTestingVerdict(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict value) { if (cardTestingVerdictBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && cardTestingVerdict_ != null - && cardTestingVerdict_ - != com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - .getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + cardTestingVerdict_ != null && + cardTestingVerdict_ != com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance()) { getCardTestingVerdictBuilder().mergeFrom(value); } else { cardTestingVerdict_ = value; @@ -2905,16 +2470,12 @@ public Builder mergeCardTestingVerdict( return this; } /** - * - * *
      * Output only. Assessment of this transaction for risk of being part of a
      * card testing attack.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCardTestingVerdict() { bitField0_ = (bitField0_ & ~0x00000004); @@ -2927,139 +2488,93 @@ public Builder clearCardTestingVerdict() { return this; } /** - * - * *
      * Output only. Assessment of this transaction for risk of being part of a
      * card testing attack.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.Builder - getCardTestingVerdictBuilder() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.Builder getCardTestingVerdictBuilder() { bitField0_ |= 0x00000004; onChanged(); return getCardTestingVerdictFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Assessment of this transaction for risk of being part of a
      * card testing attack.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdictOrBuilder - getCardTestingVerdictOrBuilder() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdictOrBuilder getCardTestingVerdictOrBuilder() { if (cardTestingVerdictBuilder_ != null) { return cardTestingVerdictBuilder_.getMessageOrBuilder(); } else { - return cardTestingVerdict_ == null - ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - .getDefaultInstance() - : cardTestingVerdict_; + return cardTestingVerdict_ == null ? + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance() : cardTestingVerdict_; } } /** - * - * *
      * Output only. Assessment of this transaction for risk of being part of a
      * card testing attack.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.Builder, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdictOrBuilder> + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.Builder, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdictOrBuilder> getCardTestingVerdictFieldBuilder() { if (cardTestingVerdictBuilder_ == null) { - cardTestingVerdictBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict - .Builder, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .CardTestingVerdictOrBuilder>( - getCardTestingVerdict(), getParentForChildren(), isClean()); + cardTestingVerdictBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict.Builder, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdictOrBuilder>( + getCardTestingVerdict(), + getParentForChildren(), + isClean()); cardTestingVerdict_ = null; } return cardTestingVerdictBuilder_; } - private com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - behavioralTrustVerdict_; + private com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioralTrustVerdict_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - .Builder, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .BehavioralTrustVerdictOrBuilder> - behavioralTrustVerdictBuilder_; + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder> behavioralTrustVerdictBuilder_; /** - * - * *
      * Output only. Assessment of this transaction for behavioral trust.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the behavioralTrustVerdict field is set. */ public boolean hasBehavioralTrustVerdict() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Output only. Assessment of this transaction for behavioral trust.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The behavioralTrustVerdict. */ - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - getBehavioralTrustVerdict() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict getBehavioralTrustVerdict() { if (behavioralTrustVerdictBuilder_ == null) { - return behavioralTrustVerdict_ == null - ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - .getDefaultInstance() - : behavioralTrustVerdict_; + return behavioralTrustVerdict_ == null ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance() : behavioralTrustVerdict_; } else { return behavioralTrustVerdictBuilder_.getMessage(); } } /** - * - * *
      * Output only. Assessment of this transaction for behavioral trust.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setBehavioralTrustVerdict( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict value) { + public Builder setBehavioralTrustVerdict(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict value) { if (behavioralTrustVerdictBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3073,19 +2588,14 @@ public Builder setBehavioralTrustVerdict( return this; } /** - * - * *
      * Output only. Assessment of this transaction for behavioral trust.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setBehavioralTrustVerdict( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder - builderForValue) { + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder builderForValue) { if (behavioralTrustVerdictBuilder_ == null) { behavioralTrustVerdict_ = builderForValue.build(); } else { @@ -3096,24 +2606,17 @@ public Builder setBehavioralTrustVerdict( return this; } /** - * - * *
      * Output only. Assessment of this transaction for behavioral trust.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeBehavioralTrustVerdict( - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict value) { + public Builder mergeBehavioralTrustVerdict(com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict value) { if (behavioralTrustVerdictBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && behavioralTrustVerdict_ != null - && behavioralTrustVerdict_ - != com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .BehavioralTrustVerdict.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + behavioralTrustVerdict_ != null && + behavioralTrustVerdict_ != com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance()) { getBehavioralTrustVerdictBuilder().mergeFrom(value); } else { behavioralTrustVerdict_ = value; @@ -3126,15 +2629,11 @@ public Builder mergeBehavioralTrustVerdict( return this; } /** - * - * *
      * Output only. Assessment of this transaction for behavioral trust.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearBehavioralTrustVerdict() { bitField0_ = (bitField0_ & ~0x00000008); @@ -3147,80 +2646,55 @@ public Builder clearBehavioralTrustVerdict() { return this; } /** - * - * *
      * Output only. Assessment of this transaction for behavioral trust.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - .Builder - getBehavioralTrustVerdictBuilder() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder getBehavioralTrustVerdictBuilder() { bitField0_ |= 0x00000008; onChanged(); return getBehavioralTrustVerdictFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Assessment of this transaction for behavioral trust.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .BehavioralTrustVerdictOrBuilder - getBehavioralTrustVerdictOrBuilder() { + public com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder getBehavioralTrustVerdictOrBuilder() { if (behavioralTrustVerdictBuilder_ != null) { return behavioralTrustVerdictBuilder_.getMessageOrBuilder(); } else { - return behavioralTrustVerdict_ == null - ? com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - .getDefaultInstance() - : behavioralTrustVerdict_; + return behavioralTrustVerdict_ == null ? + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance() : behavioralTrustVerdict_; } } /** - * - * *
      * Output only. Assessment of this transaction for behavioral trust.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - .Builder, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .BehavioralTrustVerdictOrBuilder> + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder> getBehavioralTrustVerdictFieldBuilder() { if (behavioralTrustVerdictBuilder_ == null) { - behavioralTrustVerdictBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict - .Builder, - com.google.recaptchaenterprise.v1.FraudPreventionAssessment - .BehavioralTrustVerdictOrBuilder>( - getBehavioralTrustVerdict(), getParentForChildren(), isClean()); + behavioralTrustVerdictBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder, com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder>( + getBehavioralTrustVerdict(), + getParentForChildren(), + isClean()); behavioralTrustVerdict_ = null; } return behavioralTrustVerdictBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3230,12 +2704,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment) private static final com.google.recaptchaenterprise.v1.FraudPreventionAssessment DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FraudPreventionAssessment(); } @@ -3244,27 +2718,27 @@ public static com.google.recaptchaenterprise.v1.FraudPreventionAssessment getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FraudPreventionAssessment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FraudPreventionAssessment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3279,4 +2753,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.recaptchaenterprise.v1.FraudPreventionAssessment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessmentOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessmentOrBuilder.java new file mode 100644 index 000000000000..cca734fe1318 --- /dev/null +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudPreventionAssessmentOrBuilder.java @@ -0,0 +1,108 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface FraudPreventionAssessmentOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. Probability of this transaction being fraudulent. Summarizes
+   * the combined risk of attack vectors below. Values are from 0.0 (lowest)
+   * to 1.0 (highest).
+   * 
+ * + * float transaction_risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The transactionRisk. + */ + float getTransactionRisk(); + + /** + *
+   * Output only. Assessment of this transaction for risk of a stolen
+   * instrument.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the stolenInstrumentVerdict field is set. + */ + boolean hasStolenInstrumentVerdict(); + /** + *
+   * Output only. Assessment of this transaction for risk of a stolen
+   * instrument.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The stolenInstrumentVerdict. + */ + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict getStolenInstrumentVerdict(); + /** + *
+   * Output only. Assessment of this transaction for risk of a stolen
+   * instrument.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder getStolenInstrumentVerdictOrBuilder(); + + /** + *
+   * Output only. Assessment of this transaction for risk of being part of a
+   * card testing attack.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the cardTestingVerdict field is set. + */ + boolean hasCardTestingVerdict(); + /** + *
+   * Output only. Assessment of this transaction for risk of being part of a
+   * card testing attack.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The cardTestingVerdict. + */ + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict getCardTestingVerdict(); + /** + *
+   * Output only. Assessment of this transaction for risk of being part of a
+   * card testing attack.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.CardTestingVerdictOrBuilder getCardTestingVerdictOrBuilder(); + + /** + *
+   * Output only. Assessment of this transaction for behavioral trust.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the behavioralTrustVerdict field is set. + */ + boolean hasBehavioralTrustVerdict(); + /** + *
+   * Output only. Assessment of this transaction for behavioral trust.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The behavioralTrustVerdict. + */ + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict getBehavioralTrustVerdict(); + /** + *
+   * Output only. Assessment of this transaction for behavioral trust.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.recaptchaenterprise.v1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder getBehavioralTrustVerdictOrBuilder(); +} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignals.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignals.java similarity index 64% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignals.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignals.java index ab1b973c9716..eed10e23853f 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignals.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignals.java @@ -1,87 +1,63 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * Fraud signals describing users and cards involved in the transaction.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudSignals} */ -public final class FraudSignals extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FraudSignals extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FraudSignals) FraudSignalsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FraudSignals.newBuilder() to construct. private FraudSignals(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private FraudSignals() {} + private FraudSignals() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FraudSignals(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudSignals.class, - com.google.recaptchaenterprise.v1.FraudSignals.Builder.class); + com.google.recaptchaenterprise.v1.FraudSignals.class, com.google.recaptchaenterprise.v1.FraudSignals.Builder.class); } - public interface UserSignalsOrBuilder - extends + public interface UserSignalsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Output only. This user (based on email, phone, and other identifiers) has
      * been seen on the internet for at least this number of days.
      * 
* * int32 active_days_lower_bound = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The activeDaysLowerBound. */ int getActiveDaysLowerBound(); /** - * - * *
      * Output only. Likelihood (from 0.0 to 1.0) this user includes synthetic
      * components in their identity, such as a randomly generated email address,
@@ -89,65 +65,58 @@ public interface UserSignalsOrBuilder
      * 
* * float synthetic_risk = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The syntheticRisk. */ float getSyntheticRisk(); } /** - * - * *
    * Signals describing the user involved in this transaction.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals} */ - public static final class UserSignals extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class UserSignals extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals) UserSignalsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UserSignals.newBuilder() to construct. private UserSignals(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UserSignals() {} + private UserSignals() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UserSignals(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.class, - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder.class); + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.class, com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder.class); } public static final int ACTIVE_DAYS_LOWER_BOUND_FIELD_NUMBER = 1; private int activeDaysLowerBound_ = 0; /** - * - * *
      * Output only. This user (based on email, phone, and other identifiers) has
      * been seen on the internet for at least this number of days.
      * 
* * int32 active_days_lower_bound = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The activeDaysLowerBound. */ @java.lang.Override @@ -158,8 +127,6 @@ public int getActiveDaysLowerBound() { public static final int SYNTHETIC_RISK_FIELD_NUMBER = 2; private float syntheticRisk_ = 0F; /** - * - * *
      * Output only. Likelihood (from 0.0 to 1.0) this user includes synthetic
      * components in their identity, such as a randomly generated email address,
@@ -167,7 +134,6 @@ public int getActiveDaysLowerBound() {
      * 
* * float synthetic_risk = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The syntheticRisk. */ @java.lang.Override @@ -176,7 +142,6 @@ public float getSyntheticRisk() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (activeDaysLowerBound_ != 0) { output.writeInt32(1, activeDaysLowerBound_); } @@ -205,10 +171,12 @@ public int getSerializedSize() { size = 0; if (activeDaysLowerBound_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, activeDaysLowerBound_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, activeDaysLowerBound_); } if (java.lang.Float.floatToRawIntBits(syntheticRisk_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, syntheticRisk_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, syntheticRisk_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -218,17 +186,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.FraudSignals.UserSignals)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals other = - (com.google.recaptchaenterprise.v1.FraudSignals.UserSignals) obj; + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals other = (com.google.recaptchaenterprise.v1.FraudSignals.UserSignals) obj; - if (getActiveDaysLowerBound() != other.getActiveDaysLowerBound()) return false; + if (getActiveDaysLowerBound() + != other.getActiveDaysLowerBound()) return false; if (java.lang.Float.floatToIntBits(getSyntheticRisk()) - != java.lang.Float.floatToIntBits(other.getSyntheticRisk())) return false; + != java.lang.Float.floatToIntBits( + other.getSyntheticRisk())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -243,101 +212,97 @@ public int hashCode() { hash = (37 * hash) + ACTIVE_DAYS_LOWER_BOUND_FIELD_NUMBER; hash = (53 * hash) + getActiveDaysLowerBound(); hash = (37 * hash) + SYNTHETIC_RISK_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getSyntheticRisk()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getSyntheticRisk()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.FraudSignals.UserSignals prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -347,41 +312,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Signals describing the user involved in this transaction.
      * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals) com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.class, - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder.class); + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.class, com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -392,14 +355,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudSignals.UserSignals - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.FraudSignals.UserSignals getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.getDefaultInstance(); } @@ -414,17 +376,13 @@ public com.google.recaptchaenterprise.v1.FraudSignals.UserSignals build() { @java.lang.Override public com.google.recaptchaenterprise.v1.FraudSignals.UserSignals buildPartial() { - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals result = - new com.google.recaptchaenterprise.v1.FraudSignals.UserSignals(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals result = new com.google.recaptchaenterprise.v1.FraudSignals.UserSignals(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals result) { + private void buildPartial0(com.google.recaptchaenterprise.v1.FraudSignals.UserSignals result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.activeDaysLowerBound_ = activeDaysLowerBound_; @@ -438,41 +396,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.FraudSignals.UserSignals) { - return mergeFrom((com.google.recaptchaenterprise.v1.FraudSignals.UserSignals) other); + return mergeFrom((com.google.recaptchaenterprise.v1.FraudSignals.UserSignals)other); } else { super.mergeFrom(other); return this; @@ -480,9 +435,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.FraudSignals.UserSignals other) { - if (other - == com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.getDefaultInstance()) return this; if (other.getActiveDaysLowerBound() != 0) { setActiveDaysLowerBound(other.getActiveDaysLowerBound()); } @@ -515,25 +468,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - activeDaysLowerBound_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 21: - { - syntheticRisk_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + activeDaysLowerBound_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 21: { + syntheticRisk_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -543,21 +493,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int activeDaysLowerBound_; + private int activeDaysLowerBound_ ; /** - * - * *
        * Output only. This user (based on email, phone, and other identifiers) has
        * been seen on the internet for at least this number of days.
        * 
* - * int32 active_days_lower_bound = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int32 active_days_lower_bound = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The activeDaysLowerBound. */ @java.lang.Override @@ -565,16 +510,12 @@ public int getActiveDaysLowerBound() { return activeDaysLowerBound_; } /** - * - * *
        * Output only. This user (based on email, phone, and other identifiers) has
        * been seen on the internet for at least this number of days.
        * 
* - * int32 active_days_lower_bound = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int32 active_days_lower_bound = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The activeDaysLowerBound to set. * @return This builder for chaining. */ @@ -586,16 +527,12 @@ public Builder setActiveDaysLowerBound(int value) { return this; } /** - * - * *
        * Output only. This user (based on email, phone, and other identifiers) has
        * been seen on the internet for at least this number of days.
        * 
* - * int32 active_days_lower_bound = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int32 active_days_lower_bound = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearActiveDaysLowerBound() { @@ -605,10 +542,8 @@ public Builder clearActiveDaysLowerBound() { return this; } - private float syntheticRisk_; + private float syntheticRisk_ ; /** - * - * *
        * Output only. Likelihood (from 0.0 to 1.0) this user includes synthetic
        * components in their identity, such as a randomly generated email address,
@@ -616,7 +551,6 @@ public Builder clearActiveDaysLowerBound() {
        * 
* * float synthetic_risk = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The syntheticRisk. */ @java.lang.Override @@ -624,8 +558,6 @@ public float getSyntheticRisk() { return syntheticRisk_; } /** - * - * *
        * Output only. Likelihood (from 0.0 to 1.0) this user includes synthetic
        * components in their identity, such as a randomly generated email address,
@@ -633,7 +565,6 @@ public float getSyntheticRisk() {
        * 
* * float synthetic_risk = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The syntheticRisk to set. * @return This builder for chaining. */ @@ -645,8 +576,6 @@ public Builder setSyntheticRisk(float value) { return this; } /** - * - * *
        * Output only. Likelihood (from 0.0 to 1.0) this user includes synthetic
        * components in their identity, such as a randomly generated email address,
@@ -654,7 +583,6 @@ public Builder setSyntheticRisk(float value) {
        * 
* * float synthetic_risk = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearSyntheticRisk() { @@ -663,7 +591,6 @@ public Builder clearSyntheticRisk() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -676,13 +603,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals) - private static final com.google.recaptchaenterprise.v1.FraudSignals.UserSignals - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1.FraudSignals.UserSignals DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FraudSignals.UserSignals(); } @@ -691,28 +617,27 @@ public static com.google.recaptchaenterprise.v1.FraudSignals.UserSignals getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserSignals parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserSignals parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -727,134 +652,103 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.FraudSignals.UserSignals getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface CardSignalsOrBuilder - extends + public interface CardSignalsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Output only. The labels for the payment card in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the cardLabels. */ - java.util.List - getCardLabelsList(); + java.util.List getCardLabelsList(); /** - * - * *
      * Output only. The labels for the payment card in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of cardLabels. */ int getCardLabelsCount(); /** - * - * *
      * Output only. The labels for the payment card in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The cardLabels at the given index. */ com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel getCardLabels(int index); /** - * - * *
      * Output only. The labels for the payment card in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the enum numeric values on the wire for cardLabels. */ - java.util.List getCardLabelsValueList(); + java.util.List + getCardLabelsValueList(); /** - * - * *
      * Output only. The labels for the payment card in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The enum numeric value on the wire of cardLabels at the given index. */ int getCardLabelsValue(int index); } /** - * - * *
    * Signals describing the payment card used in this transaction.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals} */ - public static final class CardSignals extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class CardSignals extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals) CardSignalsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CardSignals.newBuilder() to construct. private CardSignals(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CardSignals() { cardLabels_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CardSignals(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.class, - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder.class); + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.class, com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder.class); } /** - * - * *
      * Risk labels describing the card being assessed, such as its funding
      * mechanism.
@@ -862,10 +756,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      *
      * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel}
      */
-    public enum CardLabel implements com.google.protobuf.ProtocolMessageEnum {
+    public enum CardLabel
+        implements com.google.protobuf.ProtocolMessageEnum {
       /**
-       *
-       *
        * 
        * No label specified.
        * 
@@ -874,8 +767,6 @@ public enum CardLabel implements com.google.protobuf.ProtocolMessageEnum { */ CARD_LABEL_UNSPECIFIED(0), /** - * - * *
        * This card has been detected as prepaid.
        * 
@@ -884,8 +775,6 @@ public enum CardLabel implements com.google.protobuf.ProtocolMessageEnum { */ PREPAID(1), /** - * - * *
        * This card has been detected as virtual, such as a card number generated
        * for a single transaction or merchant.
@@ -895,8 +784,6 @@ public enum CardLabel implements com.google.protobuf.ProtocolMessageEnum {
        */
       VIRTUAL(2),
       /**
-       *
-       *
        * 
        * This card has been detected as being used in an unexpected geographic
        * location.
@@ -909,8 +796,6 @@ public enum CardLabel implements com.google.protobuf.ProtocolMessageEnum {
       ;
 
       /**
-       *
-       *
        * 
        * No label specified.
        * 
@@ -919,8 +804,6 @@ public enum CardLabel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CARD_LABEL_UNSPECIFIED_VALUE = 0; /** - * - * *
        * This card has been detected as prepaid.
        * 
@@ -929,8 +812,6 @@ public enum CardLabel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PREPAID_VALUE = 1; /** - * - * *
        * This card has been detected as virtual, such as a card number generated
        * for a single transaction or merchant.
@@ -940,8 +821,6 @@ public enum CardLabel implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int VIRTUAL_VALUE = 2;
       /**
-       *
-       *
        * 
        * This card has been detected as being used in an unexpected geographic
        * location.
@@ -951,6 +830,7 @@ public enum CardLabel implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int UNEXPECTED_LOCATION_VALUE = 3;
 
+
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -975,53 +855,50 @@ public static CardLabel valueOf(int value) {
        */
       public static CardLabel forNumber(int value) {
         switch (value) {
-          case 0:
-            return CARD_LABEL_UNSPECIFIED;
-          case 1:
-            return PREPAID;
-          case 2:
-            return VIRTUAL;
-          case 3:
-            return UNEXPECTED_LOCATION;
-          default:
-            return null;
+          case 0: return CARD_LABEL_UNSPECIFIED;
+          case 1: return PREPAID;
+          case 2: return VIRTUAL;
+          case 3: return UNEXPECTED_LOCATION;
+          default: return null;
         }
       }
 
-      public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+      public static com.google.protobuf.Internal.EnumLiteMap
+          internalGetValueMap() {
         return internalValueMap;
       }
+      private static final com.google.protobuf.Internal.EnumLiteMap<
+          CardLabel> internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public CardLabel findValueByNumber(int number) {
+                return CardLabel.forNumber(number);
+              }
+            };
 
-      private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public CardLabel findValueByNumber(int number) {
-              return CardLabel.forNumber(number);
-            }
-          };
-
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor
+          getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-
-      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+      public final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptorForType() {
         return getDescriptor();
       }
-
-      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-        return com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDescriptor()
-            .getEnumTypes()
-            .get(0);
+      public static final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptor() {
+        return com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDescriptor().getEnumTypes().get(0);
       }
 
       private static final CardLabel[] VALUES = values();
 
-      public static CardLabel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      public static CardLabel valueOf(
+          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException(
+            "EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -1039,58 +916,36 @@ private CardLabel(int value) {
     }
 
     public static final int CARD_LABELS_FIELD_NUMBER = 1;
-
     @SuppressWarnings("serial")
     private java.util.List cardLabels_;
-
     private static final com.google.protobuf.Internal.ListAdapter.Converter<
-            java.lang.Integer, com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel>
-        cardLabels_converter_ =
+        java.lang.Integer, com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel> cardLabels_converter_ =
             new com.google.protobuf.Internal.ListAdapter.Converter<
-                java.lang.Integer,
-                com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel>() {
-              public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel convert(
-                  java.lang.Integer from) {
-                com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel result =
-                    com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel.forNumber(
-                        from);
-                return result == null
-                    ? com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel
-                        .UNRECOGNIZED
-                    : result;
+                java.lang.Integer, com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel>() {
+              public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel convert(java.lang.Integer from) {
+                com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel result = com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel.forNumber(from);
+                return result == null ? com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel.UNRECOGNIZED : result;
               }
             };
     /**
-     *
-     *
      * 
      * Output only. The labels for the payment card in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the cardLabels. */ @java.lang.Override - public java.util.List - getCardLabelsList() { + public java.util.List getCardLabelsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel>( - cardLabels_, cardLabels_converter_); + java.lang.Integer, com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel>(cardLabels_, cardLabels_converter_); } /** - * - * *
      * Output only. The labels for the payment card in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of cardLabels. */ @java.lang.Override @@ -1098,52 +953,37 @@ public int getCardLabelsCount() { return cardLabels_.size(); } /** - * - * *
      * Output only. The labels for the payment card in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The cardLabels at the given index. */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel getCardLabels( - int index) { + public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel getCardLabels(int index) { return cardLabels_converter_.convert(cardLabels_.get(index)); } /** - * - * *
      * Output only. The labels for the payment card in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the enum numeric values on the wire for cardLabels. */ @java.lang.Override - public java.util.List getCardLabelsValueList() { + public java.util.List + getCardLabelsValueList() { return cardLabels_; } /** - * - * *
      * Output only. The labels for the payment card in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The enum numeric value on the wire of cardLabels at the given index. */ @@ -1151,11 +991,9 @@ public java.util.List getCardLabelsValueList() { public int getCardLabelsValue(int index) { return cardLabels_.get(index); } - private int cardLabelsMemoizedSerializedSize; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1167,7 +1005,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (getCardLabelsList().size() > 0) { output.writeUInt32NoTag(10); @@ -1188,15 +1027,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < cardLabels_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(cardLabels_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(cardLabels_.get(i)); } size += dataSize; - if (!getCardLabelsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - cardLabelsMemoizedSerializedSize = dataSize; + if (!getCardLabelsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }cardLabelsMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1206,13 +1044,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.FraudSignals.CardSignals)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals other = - (com.google.recaptchaenterprise.v1.FraudSignals.CardSignals) obj; + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals other = (com.google.recaptchaenterprise.v1.FraudSignals.CardSignals) obj; if (!cardLabels_.equals(other.cardLabels_)) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -1236,94 +1073,89 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.FraudSignals.CardSignals prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1333,41 +1165,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Signals describing the payment card used in this transaction.
      * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals) com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.class, - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder.class); + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.class, com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1378,14 +1208,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDefaultInstance(); } @@ -1400,18 +1229,14 @@ public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals build() { @java.lang.Override public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals buildPartial() { - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals result = - new com.google.recaptchaenterprise.v1.FraudSignals.CardSignals(this); + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals result = new com.google.recaptchaenterprise.v1.FraudSignals.CardSignals(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals result) { + private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.FraudSignals.CardSignals result) { if (((bitField0_ & 0x00000001) != 0)) { cardLabels_ = java.util.Collections.unmodifiableList(cardLabels_); bitField0_ = (bitField0_ & ~0x00000001); @@ -1419,8 +1244,7 @@ private void buildPartialRepeatedFields( result.cardLabels_ = cardLabels_; } - private void buildPartial0( - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals result) { + private void buildPartial0(com.google.recaptchaenterprise.v1.FraudSignals.CardSignals result) { int from_bitField0_ = bitField0_; } @@ -1428,41 +1252,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.FraudSignals.CardSignals) { - return mergeFrom((com.google.recaptchaenterprise.v1.FraudSignals.CardSignals) other); + return mergeFrom((com.google.recaptchaenterprise.v1.FraudSignals.CardSignals)other); } else { super.mergeFrom(other); return this; @@ -1470,9 +1291,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.FraudSignals.CardSignals other) { - if (other - == com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDefaultInstance()) return this; if (!other.cardLabels_.isEmpty()) { if (cardLabels_.isEmpty()) { cardLabels_ = other.cardLabels_; @@ -1509,32 +1328,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { + case 8: { + int tmpRaw = input.readEnum(); + ensureCardLabelsIsMutable(); + cardLabels_.add(tmpRaw); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureCardLabelsIsMutable(); cardLabels_.add(tmpRaw); - break; - } // case 8 - case 10: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureCardLabelsIsMutable(); - cardLabels_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + } + input.popLimit(oldLimit); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1544,11 +1360,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List cardLabels_ = java.util.Collections.emptyList(); - + private java.util.List cardLabels_ = + java.util.Collections.emptyList(); private void ensureCardLabelsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { cardLabels_ = new java.util.ArrayList(cardLabels_); @@ -1556,70 +1371,46 @@ private void ensureCardLabelsIsMutable() { } } /** - * - * *
        * Output only. The labels for the payment card in this transaction.
        * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the cardLabels. */ - public java.util.List - getCardLabelsList() { + public java.util.List getCardLabelsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel>( - cardLabels_, cardLabels_converter_); + java.lang.Integer, com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel>(cardLabels_, cardLabels_converter_); } /** - * - * *
        * Output only. The labels for the payment card in this transaction.
        * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of cardLabels. */ public int getCardLabelsCount() { return cardLabels_.size(); } /** - * - * *
        * Output only. The labels for the payment card in this transaction.
        * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The cardLabels at the given index. */ - public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel getCardLabels( - int index) { + public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel getCardLabels(int index) { return cardLabels_converter_.convert(cardLabels_.get(index)); } /** - * - * *
        * Output only. The labels for the payment card in this transaction.
        * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The cardLabels to set. * @return This builder for chaining. @@ -1635,21 +1426,15 @@ public Builder setCardLabels( return this; } /** - * - * *
        * Output only. The labels for the payment card in this transaction.
        * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The cardLabels to add. * @return This builder for chaining. */ - public Builder addCardLabels( - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel value) { + public Builder addCardLabels(com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel value) { if (value == null) { throw new NullPointerException(); } @@ -1659,23 +1444,16 @@ public Builder addCardLabels( return this; } /** - * - * *
        * Output only. The labels for the payment card in this transaction.
        * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The cardLabels to add. * @return This builder for chaining. */ public Builder addAllCardLabels( - java.lang.Iterable< - ? extends com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel> - values) { + java.lang.Iterable values) { ensureCardLabelsIsMutable(); for (com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel value : values) { cardLabels_.add(value.getNumber()); @@ -1684,16 +1462,11 @@ public Builder addAllCardLabels( return this; } /** - * - * *
        * Output only. The labels for the payment card in this transaction.
        * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCardLabels() { @@ -1703,32 +1476,23 @@ public Builder clearCardLabels() { return this; } /** - * - * *
        * Output only. The labels for the payment card in this transaction.
        * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the enum numeric values on the wire for cardLabels. */ - public java.util.List getCardLabelsValueList() { + public java.util.List + getCardLabelsValueList() { return java.util.Collections.unmodifiableList(cardLabels_); } /** - * - * *
        * Output only. The labels for the payment card in this transaction.
        * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The enum numeric value on the wire of cardLabels at the given index. */ @@ -1736,37 +1500,28 @@ public int getCardLabelsValue(int index) { return cardLabels_.get(index); } /** - * - * *
        * Output only. The labels for the payment card in this transaction.
        * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The enum numeric value on the wire for cardLabels to set. * @return This builder for chaining. */ - public Builder setCardLabelsValue(int index, int value) { + public Builder setCardLabelsValue( + int index, int value) { ensureCardLabelsIsMutable(); cardLabels_.set(index, value); onChanged(); return this; } /** - * - * *
        * Output only. The labels for the payment card in this transaction.
        * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for cardLabels to add. * @return This builder for chaining. */ @@ -1777,20 +1532,16 @@ public Builder addCardLabelsValue(int value) { return this; } /** - * - * *
        * Output only. The labels for the payment card in this transaction.
        * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The enum numeric values on the wire for cardLabels to add. * @return This builder for chaining. */ - public Builder addAllCardLabelsValue(java.lang.Iterable values) { + public Builder addAllCardLabelsValue( + java.lang.Iterable values) { ensureCardLabelsIsMutable(); for (int value : values) { cardLabels_.add(value); @@ -1798,7 +1549,6 @@ public Builder addAllCardLabelsValue(java.lang.Iterable value onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1811,13 +1561,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals) - private static final com.google.recaptchaenterprise.v1.FraudSignals.CardSignals - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1.FraudSignals.CardSignals DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FraudSignals.CardSignals(); } @@ -1826,28 +1575,27 @@ public static com.google.recaptchaenterprise.v1.FraudSignals.CardSignals getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CardSignals parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CardSignals parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1862,21 +1610,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int USER_SIGNALS_FIELD_NUMBER = 1; private com.google.recaptchaenterprise.v1.FraudSignals.UserSignals userSignals_; /** - * - * *
    * Output only. Signals describing the end user in this transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the userSignals field is set. */ @java.lang.Override @@ -1884,57 +1628,38 @@ public boolean hasUserSignals() { return userSignals_ != null; } /** - * - * *
    * Output only. Signals describing the end user in this transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The userSignals. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FraudSignals.UserSignals getUserSignals() { - return userSignals_ == null - ? com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.getDefaultInstance() - : userSignals_; + return userSignals_ == null ? com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.getDefaultInstance() : userSignals_; } /** - * - * *
    * Output only. Signals describing the end user in this transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder - getUserSignalsOrBuilder() { - return userSignals_ == null - ? com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.getDefaultInstance() - : userSignals_; + public com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder getUserSignalsOrBuilder() { + return userSignals_ == null ? com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.getDefaultInstance() : userSignals_; } public static final int CARD_SIGNALS_FIELD_NUMBER = 2; private com.google.recaptchaenterprise.v1.FraudSignals.CardSignals cardSignals_; /** - * - * *
    * Output only. Signals describing the payment card or cards used in this
    * transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the cardSignals field is set. */ @java.lang.Override @@ -1942,47 +1667,32 @@ public boolean hasCardSignals() { return cardSignals_ != null; } /** - * - * *
    * Output only. Signals describing the payment card or cards used in this
    * transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The cardSignals. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals getCardSignals() { - return cardSignals_ == null - ? com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDefaultInstance() - : cardSignals_; + return cardSignals_ == null ? com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDefaultInstance() : cardSignals_; } /** - * - * *
    * Output only. Signals describing the payment card or cards used in this
    * transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder - getCardSignalsOrBuilder() { - return cardSignals_ == null - ? com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDefaultInstance() - : cardSignals_; + public com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder getCardSignalsOrBuilder() { + return cardSignals_ == null ? com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDefaultInstance() : cardSignals_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1994,7 +1704,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (userSignals_ != null) { output.writeMessage(1, getUserSignals()); } @@ -2011,10 +1722,12 @@ public int getSerializedSize() { size = 0; if (userSignals_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUserSignals()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUserSignals()); } if (cardSignals_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCardSignals()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCardSignals()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2024,21 +1737,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.FraudSignals)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.FraudSignals other = - (com.google.recaptchaenterprise.v1.FraudSignals) obj; + com.google.recaptchaenterprise.v1.FraudSignals other = (com.google.recaptchaenterprise.v1.FraudSignals) obj; if (hasUserSignals() != other.hasUserSignals()) return false; if (hasUserSignals()) { - if (!getUserSignals().equals(other.getUserSignals())) return false; + if (!getUserSignals() + .equals(other.getUserSignals())) return false; } if (hasCardSignals() != other.hasCardSignals()) return false; if (hasCardSignals()) { - if (!getCardSignals().equals(other.getCardSignals())) return false; + if (!getCardSignals() + .equals(other.getCardSignals())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2064,136 +1778,132 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.FraudSignals parseFrom(java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.FraudSignals parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FraudSignals parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudSignals parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FraudSignals parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudSignals parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.FraudSignals parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudSignals parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FraudSignals parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudSignals parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.FraudSignals parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.FraudSignals parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.FraudSignals parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.FraudSignals parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.FraudSignals prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Fraud signals describing users and cards involved in the transaction.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.FraudSignals} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FraudSignals) com.google.recaptchaenterprise.v1.FraudSignalsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.FraudSignals.class, - com.google.recaptchaenterprise.v1.FraudSignals.Builder.class); + com.google.recaptchaenterprise.v1.FraudSignals.class, com.google.recaptchaenterprise.v1.FraudSignals.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.FraudSignals.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2212,9 +1922,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor; } @java.lang.Override @@ -2233,11 +1943,8 @@ public com.google.recaptchaenterprise.v1.FraudSignals build() { @java.lang.Override public com.google.recaptchaenterprise.v1.FraudSignals buildPartial() { - com.google.recaptchaenterprise.v1.FraudSignals result = - new com.google.recaptchaenterprise.v1.FraudSignals(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.FraudSignals result = new com.google.recaptchaenterprise.v1.FraudSignals(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -2245,12 +1952,14 @@ public com.google.recaptchaenterprise.v1.FraudSignals buildPartial() { private void buildPartial0(com.google.recaptchaenterprise.v1.FraudSignals result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.userSignals_ = - userSignalsBuilder_ == null ? userSignals_ : userSignalsBuilder_.build(); + result.userSignals_ = userSignalsBuilder_ == null + ? userSignals_ + : userSignalsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.cardSignals_ = - cardSignalsBuilder_ == null ? cardSignals_ : cardSignalsBuilder_.build(); + result.cardSignals_ = cardSignalsBuilder_ == null + ? cardSignals_ + : cardSignalsBuilder_.build(); } } @@ -2258,39 +1967,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.FraudSignals result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.FraudSignals) { - return mergeFrom((com.google.recaptchaenterprise.v1.FraudSignals) other); + return mergeFrom((com.google.recaptchaenterprise.v1.FraudSignals)other); } else { super.mergeFrom(other); return this; @@ -2331,25 +2039,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUserSignalsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getCardSignalsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getUserSignalsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getCardSignalsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2359,66 +2068,45 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.recaptchaenterprise.v1.FraudSignals.UserSignals userSignals_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals, - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder, - com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder> - userSignalsBuilder_; + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals, com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder, com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder> userSignalsBuilder_; /** - * - * *
      * Output only. Signals describing the end user in this transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the userSignals field is set. */ public boolean hasUserSignals() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Output only. Signals describing the end user in this transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The userSignals. */ public com.google.recaptchaenterprise.v1.FraudSignals.UserSignals getUserSignals() { if (userSignalsBuilder_ == null) { - return userSignals_ == null - ? com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.getDefaultInstance() - : userSignals_; + return userSignals_ == null ? com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.getDefaultInstance() : userSignals_; } else { return userSignalsBuilder_.getMessage(); } } /** - * - * *
      * Output only. Signals describing the end user in this transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUserSignals( - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals value) { + public Builder setUserSignals(com.google.recaptchaenterprise.v1.FraudSignals.UserSignals value) { if (userSignalsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2432,15 +2120,11 @@ public Builder setUserSignals( return this; } /** - * - * *
      * Output only. Signals describing the end user in this transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUserSignals( com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder builderForValue) { @@ -2454,24 +2138,17 @@ public Builder setUserSignals( return this; } /** - * - * *
      * Output only. Signals describing the end user in this transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeUserSignals( - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals value) { + public Builder mergeUserSignals(com.google.recaptchaenterprise.v1.FraudSignals.UserSignals value) { if (userSignalsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && userSignals_ != null - && userSignals_ - != com.google.recaptchaenterprise.v1.FraudSignals.UserSignals - .getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + userSignals_ != null && + userSignals_ != com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.getDefaultInstance()) { getUserSignalsBuilder().mergeFrom(value); } else { userSignals_ = value; @@ -2484,15 +2161,11 @@ public Builder mergeUserSignals( return this; } /** - * - * *
      * Output only. Signals describing the end user in this transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUserSignals() { bitField0_ = (bitField0_ & ~0x00000001); @@ -2505,66 +2178,48 @@ public Builder clearUserSignals() { return this; } /** - * - * *
      * Output only. Signals describing the end user in this transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder - getUserSignalsBuilder() { + public com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder getUserSignalsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getUserSignalsFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Signals describing the end user in this transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder - getUserSignalsOrBuilder() { + public com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder getUserSignalsOrBuilder() { if (userSignalsBuilder_ != null) { return userSignalsBuilder_.getMessageOrBuilder(); } else { - return userSignals_ == null - ? com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.getDefaultInstance() - : userSignals_; + return userSignals_ == null ? + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.getDefaultInstance() : userSignals_; } } /** - * - * *
      * Output only. Signals describing the end user in this transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals, - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder, - com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder> + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals, com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder, com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder> getUserSignalsFieldBuilder() { if (userSignalsBuilder_ == null) { - userSignalsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals, - com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder, - com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder>( - getUserSignals(), getParentForChildren(), isClean()); + userSignalsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals, com.google.recaptchaenterprise.v1.FraudSignals.UserSignals.Builder, com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder>( + getUserSignals(), + getParentForChildren(), + isClean()); userSignals_ = null; } return userSignalsBuilder_; @@ -2572,64 +2227,44 @@ public Builder clearUserSignals() { private com.google.recaptchaenterprise.v1.FraudSignals.CardSignals cardSignals_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals, - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder, - com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder> - cardSignalsBuilder_; + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals, com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder, com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder> cardSignalsBuilder_; /** - * - * *
      * Output only. Signals describing the payment card or cards used in this
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the cardSignals field is set. */ public boolean hasCardSignals() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. Signals describing the payment card or cards used in this
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The cardSignals. */ public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals getCardSignals() { if (cardSignalsBuilder_ == null) { - return cardSignals_ == null - ? com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDefaultInstance() - : cardSignals_; + return cardSignals_ == null ? com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDefaultInstance() : cardSignals_; } else { return cardSignalsBuilder_.getMessage(); } } /** - * - * *
      * Output only. Signals describing the payment card or cards used in this
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCardSignals( - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals value) { + public Builder setCardSignals(com.google.recaptchaenterprise.v1.FraudSignals.CardSignals value) { if (cardSignalsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2643,16 +2278,12 @@ public Builder setCardSignals( return this; } /** - * - * *
      * Output only. Signals describing the payment card or cards used in this
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCardSignals( com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder builderForValue) { @@ -2666,25 +2297,18 @@ public Builder setCardSignals( return this; } /** - * - * *
      * Output only. Signals describing the payment card or cards used in this
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeCardSignals( - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals value) { + public Builder mergeCardSignals(com.google.recaptchaenterprise.v1.FraudSignals.CardSignals value) { if (cardSignalsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && cardSignals_ != null - && cardSignals_ - != com.google.recaptchaenterprise.v1.FraudSignals.CardSignals - .getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + cardSignals_ != null && + cardSignals_ != com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDefaultInstance()) { getCardSignalsBuilder().mergeFrom(value); } else { cardSignals_ = value; @@ -2697,16 +2321,12 @@ public Builder mergeCardSignals( return this; } /** - * - * *
      * Output only. Signals describing the payment card or cards used in this
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCardSignals() { bitField0_ = (bitField0_ & ~0x00000002); @@ -2719,76 +2339,58 @@ public Builder clearCardSignals() { return this; } /** - * - * *
      * Output only. Signals describing the payment card or cards used in this
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder - getCardSignalsBuilder() { + public com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder getCardSignalsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCardSignalsFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Signals describing the payment card or cards used in this
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder - getCardSignalsOrBuilder() { + public com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder getCardSignalsOrBuilder() { if (cardSignalsBuilder_ != null) { return cardSignalsBuilder_.getMessageOrBuilder(); } else { - return cardSignals_ == null - ? com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDefaultInstance() - : cardSignals_; + return cardSignals_ == null ? + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.getDefaultInstance() : cardSignals_; } } /** - * - * *
      * Output only. Signals describing the payment card or cards used in this
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals, - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder, - com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder> + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals, com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder, com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder> getCardSignalsFieldBuilder() { if (cardSignalsBuilder_ == null) { - cardSignalsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals, - com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder, - com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder>( - getCardSignals(), getParentForChildren(), isClean()); + cardSignalsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals, com.google.recaptchaenterprise.v1.FraudSignals.CardSignals.Builder, com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder>( + getCardSignals(), + getParentForChildren(), + isClean()); cardSignals_ = null; } return cardSignalsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2798,12 +2400,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.FraudSignals) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FraudSignals) private static final com.google.recaptchaenterprise.v1.FraudSignals DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.FraudSignals(); } @@ -2812,27 +2414,27 @@ public static com.google.recaptchaenterprise.v1.FraudSignals getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FraudSignals parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FraudSignals parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2847,4 +2449,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.FraudSignals getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignalsOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignalsOrBuilder.java new file mode 100644 index 000000000000..a8caeb3c9635 --- /dev/null +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FraudSignalsOrBuilder.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface FraudSignalsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FraudSignals) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. Signals describing the end user in this transaction.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the userSignals field is set. + */ + boolean hasUserSignals(); + /** + *
+   * Output only. Signals describing the end user in this transaction.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The userSignals. + */ + com.google.recaptchaenterprise.v1.FraudSignals.UserSignals getUserSignals(); + /** + *
+   * Output only. Signals describing the end user in this transaction.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.UserSignals user_signals = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.recaptchaenterprise.v1.FraudSignals.UserSignalsOrBuilder getUserSignalsOrBuilder(); + + /** + *
+   * Output only. Signals describing the payment card or cards used in this
+   * transaction.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the cardSignals field is set. + */ + boolean hasCardSignals(); + /** + *
+   * Output only. Signals describing the payment card or cards used in this
+   * transaction.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The cardSignals. + */ + com.google.recaptchaenterprise.v1.FraudSignals.CardSignals getCardSignals(); + /** + *
+   * Output only. Signals describing the payment card or cards used in this
+   * transaction.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals card_signals = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.recaptchaenterprise.v1.FraudSignals.CardSignalsOrBuilder getCardSignalsOrBuilder(); +} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequest.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequest.java similarity index 63% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequest.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequest.java index 107f01d78f9d..b1869df8c5ba 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequest.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * The get firewall policy request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.GetFirewallPolicyRequest} */ -public final class GetFirewallPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetFirewallPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.GetFirewallPolicyRequest) GetFirewallPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetFirewallPolicyRequest.newBuilder() to construct. private GetFirewallPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetFirewallPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetFirewallPolicyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.class, - com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.Builder.class); + com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.class, com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the requested policy, in the format
    * `projects/{project}/firewallpolicies/{firewallpolicy}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -86,32 +61,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the requested policy, in the format
    * `projects/{project}/firewallpolicies/{firewallpolicy}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -156,15 +129,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest other = - (com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest) obj; + com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest other = (com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,136 +157,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The get firewall policy request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.GetFirewallPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.GetFirewallPolicyRequest) com.google.recaptchaenterprise.v1.GetFirewallPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.class, - com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.Builder.class); + com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.class, com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,9 +291,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor; } @java.lang.Override @@ -344,11 +312,8 @@ public com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest buildPartial() { - com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest result = - new com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest result = new com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -364,39 +329,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.GetFirewallPolicyRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest) other); + return mergeFrom((com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -404,8 +368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest other) { - if (other == com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -437,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -459,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the requested policy, in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -489,24 +445,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the requested policy, in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -514,41 +467,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the requested policy, in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the requested policy, in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -558,33 +500,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the requested policy, in the format
      * `projects/{project}/firewallpolicies/{firewallpolicy}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -594,12 +530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.GetFirewallPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.GetFirewallPolicyRequest) private static final com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest(); } @@ -608,27 +544,27 @@ public static com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFirewallPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFirewallPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -643,4 +579,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.GetFirewallPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..61fb82078c4e --- /dev/null +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetFirewallPolicyRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface GetFirewallPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.GetFirewallPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the requested policy, in the format
+   * `projects/{project}/firewallpolicies/{firewallpolicy}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the requested policy, in the format
+   * `projects/{project}/firewallpolicies/{firewallpolicy}`.
+   * 
+ * + * 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/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequest.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequest.java similarity index 63% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequest.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequest.java index 6a4b34a22ec2..676fa3704c73 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequest.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * The get key request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.GetKeyRequest} */ -public final class GetKeyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetKeyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.GetKeyRequest) GetKeyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetKeyRequest.newBuilder() to construct. private GetKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetKeyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetKeyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.GetKeyRequest.class, - com.google.recaptchaenterprise.v1.GetKeyRequest.Builder.class); + com.google.recaptchaenterprise.v1.GetKeyRequest.class, com.google.recaptchaenterprise.v1.GetKeyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the requested key, in the format
    * `projects/{project}/keys/{key}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -86,32 +61,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the requested key, in the format
    * `projects/{project}/keys/{key}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -156,15 +129,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.GetKeyRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.GetKeyRequest other = - (com.google.recaptchaenterprise.v1.GetKeyRequest) obj; + com.google.recaptchaenterprise.v1.GetKeyRequest other = (com.google.recaptchaenterprise.v1.GetKeyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -183,136 +156,132 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.GetKeyRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.GetKeyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.GetKeyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.GetKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.GetKeyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.GetKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.GetKeyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.GetKeyRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.GetKeyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.GetKeyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.GetKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.GetKeyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.GetKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.GetKeyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.GetKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The get key request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.GetKeyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.GetKeyRequest) com.google.recaptchaenterprise.v1.GetKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.GetKeyRequest.class, - com.google.recaptchaenterprise.v1.GetKeyRequest.Builder.class); + com.google.recaptchaenterprise.v1.GetKeyRequest.class, com.google.recaptchaenterprise.v1.GetKeyRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.GetKeyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -322,9 +291,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor; } @java.lang.Override @@ -343,11 +312,8 @@ public com.google.recaptchaenterprise.v1.GetKeyRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.GetKeyRequest buildPartial() { - com.google.recaptchaenterprise.v1.GetKeyRequest result = - new com.google.recaptchaenterprise.v1.GetKeyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.GetKeyRequest result = new com.google.recaptchaenterprise.v1.GetKeyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -363,39 +329,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.GetKeyRequest resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.GetKeyRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.GetKeyRequest) other); + return mergeFrom((com.google.recaptchaenterprise.v1.GetKeyRequest)other); } else { super.mergeFrom(other); return this; @@ -403,8 +368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.GetKeyRequest other) { - if (other == com.google.recaptchaenterprise.v1.GetKeyRequest.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.GetKeyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -436,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -458,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the requested key, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -488,24 +445,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the requested key, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -513,41 +467,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the requested key, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the requested key, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -557,33 +500,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the requested key, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -593,12 +530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.GetKeyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.GetKeyRequest) private static final com.google.recaptchaenterprise.v1.GetKeyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.GetKeyRequest(); } @@ -607,27 +544,27 @@ public static com.google.recaptchaenterprise.v1.GetKeyRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -642,4 +579,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.GetKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequestOrBuilder.java new file mode 100644 index 000000000000..7aaddfb4590d --- /dev/null +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetKeyRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface GetKeyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.GetKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the requested key, in the format
+   * `projects/{project}/keys/{key}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the requested key, in the format
+   * `projects/{project}/keys/{key}`.
+   * 
+ * + * 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/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequest.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequest.java similarity index 63% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequest.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequest.java index aeab65a6f1c5..215212ccd9c2 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequest.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * The get metrics request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.GetMetricsRequest} */ -public final class GetMetricsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetMetricsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.GetMetricsRequest) GetMetricsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetMetricsRequest.newBuilder() to construct. private GetMetricsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetMetricsRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetMetricsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.GetMetricsRequest.class, - com.google.recaptchaenterprise.v1.GetMetricsRequest.Builder.class); + com.google.recaptchaenterprise.v1.GetMetricsRequest.class, com.google.recaptchaenterprise.v1.GetMetricsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the requested metrics, in the format
    * `projects/{project}/keys/{key}/metrics`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -86,32 +61,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the requested metrics, in the format
    * `projects/{project}/keys/{key}/metrics`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -156,15 +129,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.GetMetricsRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.GetMetricsRequest other = - (com.google.recaptchaenterprise.v1.GetMetricsRequest) obj; + com.google.recaptchaenterprise.v1.GetMetricsRequest other = (com.google.recaptchaenterprise.v1.GetMetricsRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,135 +157,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.GetMetricsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.GetMetricsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The get metrics request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.GetMetricsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.GetMetricsRequest) com.google.recaptchaenterprise.v1.GetMetricsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.GetMetricsRequest.class, - com.google.recaptchaenterprise.v1.GetMetricsRequest.Builder.class); + com.google.recaptchaenterprise.v1.GetMetricsRequest.class, com.google.recaptchaenterprise.v1.GetMetricsRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.GetMetricsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -322,9 +291,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor; } @java.lang.Override @@ -343,11 +312,8 @@ public com.google.recaptchaenterprise.v1.GetMetricsRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.GetMetricsRequest buildPartial() { - com.google.recaptchaenterprise.v1.GetMetricsRequest result = - new com.google.recaptchaenterprise.v1.GetMetricsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.GetMetricsRequest result = new com.google.recaptchaenterprise.v1.GetMetricsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -363,39 +329,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.GetMetricsRequest r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.GetMetricsRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.GetMetricsRequest) other); + return mergeFrom((com.google.recaptchaenterprise.v1.GetMetricsRequest)other); } else { super.mergeFrom(other); return this; @@ -403,8 +368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.GetMetricsRequest other) { - if (other == com.google.recaptchaenterprise.v1.GetMetricsRequest.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.GetMetricsRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -436,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -458,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the requested metrics, in the format
      * `projects/{project}/keys/{key}/metrics`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -488,24 +445,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the requested metrics, in the format
      * `projects/{project}/keys/{key}/metrics`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -513,41 +467,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the requested metrics, in the format
      * `projects/{project}/keys/{key}/metrics`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the requested metrics, in the format
      * `projects/{project}/keys/{key}/metrics`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -557,33 +500,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the requested metrics, in the format
      * `projects/{project}/keys/{key}/metrics`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -593,12 +530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.GetMetricsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.GetMetricsRequest) private static final com.google.recaptchaenterprise.v1.GetMetricsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.GetMetricsRequest(); } @@ -607,27 +544,27 @@ public static com.google.recaptchaenterprise.v1.GetMetricsRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetMetricsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMetricsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -642,4 +579,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.GetMetricsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequestOrBuilder.java new file mode 100644 index 000000000000..db7e14ae14c3 --- /dev/null +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/GetMetricsRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface GetMetricsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.GetMetricsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the requested metrics, in the format
+   * `projects/{project}/keys/{key}/metrics`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the requested metrics, in the format
+   * `projects/{project}/keys/{key}/metrics`.
+   * 
+ * + * 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/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettings.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettings.java similarity index 69% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettings.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettings.java index 6be6fd1ba1f8..b81cf8860605 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettings.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettings.java @@ -1,78 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * Settings specific to keys that can be used by iOS apps.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.IOSKeySettings} */ -public final class IOSKeySettings extends com.google.protobuf.GeneratedMessageV3 - implements +public final class IOSKeySettings extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.IOSKeySettings) IOSKeySettingsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use IOSKeySettings.newBuilder() to construct. private IOSKeySettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IOSKeySettings() { - allowedBundleIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + allowedBundleIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IOSKeySettings(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.IOSKeySettings.class, - com.google.recaptchaenterprise.v1.IOSKeySettings.Builder.class); + com.google.recaptchaenterprise.v1.IOSKeySettings.class, com.google.recaptchaenterprise.v1.IOSKeySettings.Builder.class); } public static final int ALLOW_ALL_BUNDLE_IDS_FIELD_NUMBER = 2; private boolean allowAllBundleIds_ = false; /** - * - * *
    * Optional. If set to true, allowed_bundle_ids are not enforced.
    * 
* * bool allow_all_bundle_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowAllBundleIds. */ @java.lang.Override @@ -81,50 +60,41 @@ public boolean getAllowAllBundleIds() { } public static final int ALLOWED_BUNDLE_IDS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList allowedBundleIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. iOS bundle ids of apps allowed to use the key.
    * Example: 'com.companyname.productname.appname'
    * 
* * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the allowedBundleIds. */ - public com.google.protobuf.ProtocolStringList getAllowedBundleIdsList() { + public com.google.protobuf.ProtocolStringList + getAllowedBundleIdsList() { return allowedBundleIds_; } /** - * - * *
    * Optional. iOS bundle ids of apps allowed to use the key.
    * Example: 'com.companyname.productname.appname'
    * 
* * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of allowedBundleIds. */ public int getAllowedBundleIdsCount() { return allowedBundleIds_.size(); } /** - * - * *
    * Optional. iOS bundle ids of apps allowed to use the key.
    * Example: 'com.companyname.productname.appname'
    * 
* * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The allowedBundleIds at the given index. */ @@ -132,27 +102,23 @@ public java.lang.String getAllowedBundleIds(int index) { return allowedBundleIds_.get(index); } /** - * - * *
    * Optional. iOS bundle ids of apps allowed to use the key.
    * Example: 'com.companyname.productname.appname'
    * 
* * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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) { + public com.google.protobuf.ByteString + getAllowedBundleIdsBytes(int index) { return allowedBundleIds_.getByteString(index); } public static final int APPLE_DEVELOPER_ID_FIELD_NUMBER = 3; private com.google.recaptchaenterprise.v1.AppleDeveloperId appleDeveloperId_; /** - * - * *
    * Optional. Apple Developer account details for the app that is protected by
    * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -161,10 +127,7 @@ public com.google.protobuf.ByteString getAllowedBundleIdsBytes(int index) {
    * assessment of the integrity of your app.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the appleDeveloperId field is set. */ @java.lang.Override @@ -172,8 +135,6 @@ public boolean hasAppleDeveloperId() { return appleDeveloperId_ != null; } /** - * - * *
    * Optional. Apple Developer account details for the app that is protected by
    * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -182,21 +143,14 @@ public boolean hasAppleDeveloperId() {
    * assessment of the integrity of your app.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The appleDeveloperId. */ @java.lang.Override public com.google.recaptchaenterprise.v1.AppleDeveloperId getAppleDeveloperId() { - return appleDeveloperId_ == null - ? com.google.recaptchaenterprise.v1.AppleDeveloperId.getDefaultInstance() - : appleDeveloperId_; + return appleDeveloperId_ == null ? com.google.recaptchaenterprise.v1.AppleDeveloperId.getDefaultInstance() : appleDeveloperId_; } /** - * - * *
    * Optional. Apple Developer account details for the app that is protected by
    * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -205,20 +159,14 @@ public com.google.recaptchaenterprise.v1.AppleDeveloperId getAppleDeveloperId()
    * assessment of the integrity of your app.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.AppleDeveloperIdOrBuilder - getAppleDeveloperIdOrBuilder() { - return appleDeveloperId_ == null - ? com.google.recaptchaenterprise.v1.AppleDeveloperId.getDefaultInstance() - : appleDeveloperId_; + public com.google.recaptchaenterprise.v1.AppleDeveloperIdOrBuilder getAppleDeveloperIdOrBuilder() { + return appleDeveloperId_ == null ? com.google.recaptchaenterprise.v1.AppleDeveloperId.getDefaultInstance() : appleDeveloperId_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,7 +178,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < allowedBundleIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, allowedBundleIds_.getRaw(i)); } @@ -258,10 +207,12 @@ public int getSerializedSize() { size += 1 * getAllowedBundleIdsList().size(); } if (allowAllBundleIds_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, allowAllBundleIds_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, allowAllBundleIds_); } if (appleDeveloperId_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAppleDeveloperId()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAppleDeveloperId()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -271,19 +222,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.IOSKeySettings)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.IOSKeySettings other = - (com.google.recaptchaenterprise.v1.IOSKeySettings) obj; + com.google.recaptchaenterprise.v1.IOSKeySettings other = (com.google.recaptchaenterprise.v1.IOSKeySettings) obj; - if (getAllowAllBundleIds() != other.getAllowAllBundleIds()) return false; - if (!getAllowedBundleIdsList().equals(other.getAllowedBundleIdsList())) return false; + if (getAllowAllBundleIds() + != other.getAllowAllBundleIds()) return false; + if (!getAllowedBundleIdsList() + .equals(other.getAllowedBundleIdsList())) return false; if (hasAppleDeveloperId() != other.hasAppleDeveloperId()) return false; if (hasAppleDeveloperId()) { - if (!getAppleDeveloperId().equals(other.getAppleDeveloperId())) return false; + if (!getAppleDeveloperId() + .equals(other.getAppleDeveloperId())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -297,7 +250,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ALLOW_ALL_BUNDLE_IDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowAllBundleIds()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowAllBundleIds()); if (getAllowedBundleIdsCount() > 0) { hash = (37 * hash) + ALLOWED_BUNDLE_IDS_FIELD_NUMBER; hash = (53 * hash) + getAllowedBundleIdsList().hashCode(); @@ -311,142 +265,139 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.IOSKeySettings parseFrom(java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.IOSKeySettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.IOSKeySettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.IOSKeySettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.IOSKeySettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.IOSKeySettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.IOSKeySettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.IOSKeySettings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.IOSKeySettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.IOSKeySettings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.IOSKeySettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.IOSKeySettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.IOSKeySettings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.IOSKeySettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.IOSKeySettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.IOSKeySettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Settings specific to keys that can be used by iOS apps.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.IOSKeySettings} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.IOSKeySettings) com.google.recaptchaenterprise.v1.IOSKeySettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.IOSKeySettings.class, - com.google.recaptchaenterprise.v1.IOSKeySettings.Builder.class); + com.google.recaptchaenterprise.v1.IOSKeySettings.class, com.google.recaptchaenterprise.v1.IOSKeySettings.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.IOSKeySettings.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; allowAllBundleIds_ = false; - allowedBundleIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + allowedBundleIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); appleDeveloperId_ = null; if (appleDeveloperIdBuilder_ != null) { appleDeveloperIdBuilder_.dispose(); @@ -456,9 +407,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor; } @java.lang.Override @@ -477,11 +428,8 @@ public com.google.recaptchaenterprise.v1.IOSKeySettings build() { @java.lang.Override public com.google.recaptchaenterprise.v1.IOSKeySettings buildPartial() { - com.google.recaptchaenterprise.v1.IOSKeySettings result = - new com.google.recaptchaenterprise.v1.IOSKeySettings(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.IOSKeySettings result = new com.google.recaptchaenterprise.v1.IOSKeySettings(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -496,8 +444,9 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.IOSKeySettings resu result.allowedBundleIds_ = allowedBundleIds_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.appleDeveloperId_ = - appleDeveloperIdBuilder_ == null ? appleDeveloperId_ : appleDeveloperIdBuilder_.build(); + result.appleDeveloperId_ = appleDeveloperIdBuilder_ == null + ? appleDeveloperId_ + : appleDeveloperIdBuilder_.build(); } } @@ -505,39 +454,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.IOSKeySettings resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.IOSKeySettings) { - return mergeFrom((com.google.recaptchaenterprise.v1.IOSKeySettings) other); + return mergeFrom((com.google.recaptchaenterprise.v1.IOSKeySettings)other); } else { super.mergeFrom(other); return this; @@ -545,8 +493,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.IOSKeySettings other) { - if (other == com.google.recaptchaenterprise.v1.IOSKeySettings.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.IOSKeySettings.getDefaultInstance()) return this; if (other.getAllowAllBundleIds() != false) { setAllowAllBundleIds(other.getAllowAllBundleIds()); } @@ -589,33 +536,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureAllowedBundleIdsIsMutable(); - allowedBundleIds_.add(s); - break; - } // case 10 - case 16: - { - allowAllBundleIds_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 16 - case 26: - { - input.readMessage( - getAppleDeveloperIdFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedBundleIdsIsMutable(); + allowedBundleIds_.add(s); + break; + } // case 10 + case 16: { + allowAllBundleIds_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 16 + case 26: { + input.readMessage( + getAppleDeveloperIdFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -625,19 +569,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean allowAllBundleIds_; + private boolean allowAllBundleIds_ ; /** - * - * *
      * Optional. If set to true, allowed_bundle_ids are not enforced.
      * 
* * bool allow_all_bundle_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowAllBundleIds. */ @java.lang.Override @@ -645,14 +585,11 @@ public boolean getAllowAllBundleIds() { return allowAllBundleIds_; } /** - * - * *
      * Optional. If set to true, allowed_bundle_ids are not enforced.
      * 
* * bool allow_all_bundle_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The allowAllBundleIds to set. * @return This builder for chaining. */ @@ -664,14 +601,11 @@ public Builder setAllowAllBundleIds(boolean value) { return this; } /** - * - * *
      * Optional. If set to true, allowed_bundle_ids are not enforced.
      * 
* * bool allow_all_bundle_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAllowAllBundleIds() { @@ -683,7 +617,6 @@ public Builder clearAllowAllBundleIds() { private com.google.protobuf.LazyStringArrayList allowedBundleIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureAllowedBundleIdsIsMutable() { if (!allowedBundleIds_.isModifiable()) { allowedBundleIds_ = new com.google.protobuf.LazyStringArrayList(allowedBundleIds_); @@ -691,49 +624,38 @@ private void ensureAllowedBundleIdsIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
      * Optional. iOS bundle ids of apps allowed to use the key.
      * Example: 'com.companyname.productname.appname'
      * 
* - * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the allowedBundleIds. */ - public com.google.protobuf.ProtocolStringList getAllowedBundleIdsList() { + public com.google.protobuf.ProtocolStringList + getAllowedBundleIdsList() { allowedBundleIds_.makeImmutable(); return allowedBundleIds_; } /** - * - * *
      * Optional. iOS bundle ids of apps allowed to use the key.
      * Example: 'com.companyname.productname.appname'
      * 
* - * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of allowedBundleIds. */ public int getAllowedBundleIdsCount() { return allowedBundleIds_.size(); } /** - * - * *
      * Optional. iOS bundle ids of apps allowed to use the key.
      * Example: 'com.companyname.productname.appname'
      * 
* - * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The allowedBundleIds at the given index. */ @@ -741,41 +663,33 @@ public java.lang.String getAllowedBundleIds(int index) { return allowedBundleIds_.get(index); } /** - * - * *
      * Optional. iOS bundle ids of apps allowed to use the key.
      * Example: 'com.companyname.productname.appname'
      * 
* - * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * @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) { + public com.google.protobuf.ByteString + getAllowedBundleIdsBytes(int index) { return allowedBundleIds_.getByteString(index); } /** - * - * *
      * Optional. iOS bundle ids of apps allowed to use the key.
      * Example: 'com.companyname.productname.appname'
      * 
* - * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * @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) { - throw new NullPointerException(); - } + public Builder setAllowedBundleIds( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAllowedBundleIdsIsMutable(); allowedBundleIds_.set(index, value); bitField0_ |= 0x00000002; @@ -783,23 +697,18 @@ public Builder setAllowedBundleIds(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. iOS bundle ids of apps allowed to use the key.
      * Example: 'com.companyname.productname.appname'
      * 
* - * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param value The allowedBundleIds to add. * @return This builder for chaining. */ - public Builder addAllowedBundleIds(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAllowedBundleIds( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAllowedBundleIdsIsMutable(); allowedBundleIds_.add(value); bitField0_ |= 0x00000002; @@ -807,64 +716,53 @@ public Builder addAllowedBundleIds(java.lang.String value) { return this; } /** - * - * *
      * Optional. iOS bundle ids of apps allowed to use the key.
      * Example: 'com.companyname.productname.appname'
      * 
* - * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param values The allowedBundleIds to add. * @return This builder for chaining. */ - public Builder addAllAllowedBundleIds(java.lang.Iterable values) { + public Builder addAllAllowedBundleIds( + java.lang.Iterable values) { ensureAllowedBundleIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedBundleIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowedBundleIds_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. iOS bundle ids of apps allowed to use the key.
      * Example: 'com.companyname.productname.appname'
      * 
* - * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearAllowedBundleIds() { - allowedBundleIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + allowedBundleIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
      * Optional. iOS bundle ids of apps allowed to use the key.
      * Example: 'com.companyname.productname.appname'
      * 
* - * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * @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) { - throw new NullPointerException(); - } + public Builder addAllowedBundleIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAllowedBundleIdsIsMutable(); allowedBundleIds_.add(value); @@ -875,13 +773,8 @@ public Builder addAllowedBundleIdsBytes(com.google.protobuf.ByteString value) { private com.google.recaptchaenterprise.v1.AppleDeveloperId appleDeveloperId_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.AppleDeveloperId, - com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder, - com.google.recaptchaenterprise.v1.AppleDeveloperIdOrBuilder> - appleDeveloperIdBuilder_; + com.google.recaptchaenterprise.v1.AppleDeveloperId, com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder, com.google.recaptchaenterprise.v1.AppleDeveloperIdOrBuilder> appleDeveloperIdBuilder_; /** - * - * *
      * Optional. Apple Developer account details for the app that is protected by
      * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -890,18 +783,13 @@ public Builder addAllowedBundleIdsBytes(com.google.protobuf.ByteString value) {
      * assessment of the integrity of your app.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the appleDeveloperId field is set. */ public boolean hasAppleDeveloperId() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Optional. Apple Developer account details for the app that is protected by
      * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -910,24 +798,17 @@ public boolean hasAppleDeveloperId() {
      * assessment of the integrity of your app.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The appleDeveloperId. */ public com.google.recaptchaenterprise.v1.AppleDeveloperId getAppleDeveloperId() { if (appleDeveloperIdBuilder_ == null) { - return appleDeveloperId_ == null - ? com.google.recaptchaenterprise.v1.AppleDeveloperId.getDefaultInstance() - : appleDeveloperId_; + return appleDeveloperId_ == null ? com.google.recaptchaenterprise.v1.AppleDeveloperId.getDefaultInstance() : appleDeveloperId_; } else { return appleDeveloperIdBuilder_.getMessage(); } } /** - * - * *
      * Optional. Apple Developer account details for the app that is protected by
      * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -936,9 +817,7 @@ public com.google.recaptchaenterprise.v1.AppleDeveloperId getAppleDeveloperId()
      * assessment of the integrity of your app.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAppleDeveloperId(com.google.recaptchaenterprise.v1.AppleDeveloperId value) { if (appleDeveloperIdBuilder_ == null) { @@ -954,8 +833,6 @@ public Builder setAppleDeveloperId(com.google.recaptchaenterprise.v1.AppleDevelo return this; } /** - * - * *
      * Optional. Apple Developer account details for the app that is protected by
      * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -964,9 +841,7 @@ public Builder setAppleDeveloperId(com.google.recaptchaenterprise.v1.AppleDevelo
      * assessment of the integrity of your app.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAppleDeveloperId( com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder builderForValue) { @@ -980,8 +855,6 @@ public Builder setAppleDeveloperId( return this; } /** - * - * *
      * Optional. Apple Developer account details for the app that is protected by
      * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -990,16 +863,13 @@ public Builder setAppleDeveloperId(
      * assessment of the integrity of your app.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeAppleDeveloperId(com.google.recaptchaenterprise.v1.AppleDeveloperId value) { if (appleDeveloperIdBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && appleDeveloperId_ != null - && appleDeveloperId_ - != com.google.recaptchaenterprise.v1.AppleDeveloperId.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + appleDeveloperId_ != null && + appleDeveloperId_ != com.google.recaptchaenterprise.v1.AppleDeveloperId.getDefaultInstance()) { getAppleDeveloperIdBuilder().mergeFrom(value); } else { appleDeveloperId_ = value; @@ -1012,8 +882,6 @@ public Builder mergeAppleDeveloperId(com.google.recaptchaenterprise.v1.AppleDeve return this; } /** - * - * *
      * Optional. Apple Developer account details for the app that is protected by
      * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -1022,9 +890,7 @@ public Builder mergeAppleDeveloperId(com.google.recaptchaenterprise.v1.AppleDeve
      * assessment of the integrity of your app.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAppleDeveloperId() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1037,8 +903,6 @@ public Builder clearAppleDeveloperId() { return this; } /** - * - * *
      * Optional. Apple Developer account details for the app that is protected by
      * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -1047,9 +911,7 @@ public Builder clearAppleDeveloperId() {
      * assessment of the integrity of your app.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder getAppleDeveloperIdBuilder() { bitField0_ |= 0x00000004; @@ -1057,8 +919,6 @@ public com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder getAppleDevelo return getAppleDeveloperIdFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Apple Developer account details for the app that is protected by
      * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -1067,23 +927,17 @@ public com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder getAppleDevelo
      * assessment of the integrity of your app.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.recaptchaenterprise.v1.AppleDeveloperIdOrBuilder - getAppleDeveloperIdOrBuilder() { + public com.google.recaptchaenterprise.v1.AppleDeveloperIdOrBuilder getAppleDeveloperIdOrBuilder() { if (appleDeveloperIdBuilder_ != null) { return appleDeveloperIdBuilder_.getMessageOrBuilder(); } else { - return appleDeveloperId_ == null - ? com.google.recaptchaenterprise.v1.AppleDeveloperId.getDefaultInstance() - : appleDeveloperId_; + return appleDeveloperId_ == null ? + com.google.recaptchaenterprise.v1.AppleDeveloperId.getDefaultInstance() : appleDeveloperId_; } } /** - * - * *
      * Optional. Apple Developer account details for the app that is protected by
      * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -1092,29 +946,24 @@ public com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder getAppleDevelo
      * assessment of the integrity of your app.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.AppleDeveloperId, - com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder, - com.google.recaptchaenterprise.v1.AppleDeveloperIdOrBuilder> + com.google.recaptchaenterprise.v1.AppleDeveloperId, com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder, com.google.recaptchaenterprise.v1.AppleDeveloperIdOrBuilder> getAppleDeveloperIdFieldBuilder() { if (appleDeveloperIdBuilder_ == null) { - appleDeveloperIdBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.AppleDeveloperId, - com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder, - com.google.recaptchaenterprise.v1.AppleDeveloperIdOrBuilder>( - getAppleDeveloperId(), getParentForChildren(), isClean()); + appleDeveloperIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.AppleDeveloperId, com.google.recaptchaenterprise.v1.AppleDeveloperId.Builder, com.google.recaptchaenterprise.v1.AppleDeveloperIdOrBuilder>( + getAppleDeveloperId(), + getParentForChildren(), + isClean()); appleDeveloperId_ = null; } return appleDeveloperIdBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1124,12 +973,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.IOSKeySettings) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.IOSKeySettings) private static final com.google.recaptchaenterprise.v1.IOSKeySettings DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.IOSKeySettings(); } @@ -1138,27 +987,27 @@ public static com.google.recaptchaenterprise.v1.IOSKeySettings getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IOSKeySettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IOSKeySettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1173,4 +1022,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.IOSKeySettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettingsOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettingsOrBuilder.java similarity index 72% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettingsOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettingsOrBuilder.java index 5428d5f5ae6d..de2aedf919d4 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettingsOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/IOSKeySettingsOrBuilder.java @@ -1,99 +1,68 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface IOSKeySettingsOrBuilder - extends +public interface IOSKeySettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.IOSKeySettings) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. If set to true, allowed_bundle_ids are not enforced.
    * 
* * bool allow_all_bundle_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowAllBundleIds. */ boolean getAllowAllBundleIds(); /** - * - * *
    * Optional. iOS bundle ids of apps allowed to use the key.
    * Example: 'com.companyname.productname.appname'
    * 
* * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the allowedBundleIds. */ - java.util.List getAllowedBundleIdsList(); + java.util.List + getAllowedBundleIdsList(); /** - * - * *
    * Optional. iOS bundle ids of apps allowed to use the key.
    * Example: 'com.companyname.productname.appname'
    * 
* * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of allowedBundleIds. */ int getAllowedBundleIdsCount(); /** - * - * *
    * Optional. iOS bundle ids of apps allowed to use the key.
    * Example: 'com.companyname.productname.appname'
    * 
* * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The allowedBundleIds at the given index. */ java.lang.String getAllowedBundleIds(int index); /** - * - * *
    * Optional. iOS bundle ids of apps allowed to use the key.
    * Example: 'com.companyname.productname.appname'
    * 
* * repeated string allowed_bundle_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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); + com.google.protobuf.ByteString + getAllowedBundleIdsBytes(int index); /** - * - * *
    * Optional. Apple Developer account details for the app that is protected by
    * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -102,16 +71,11 @@ public interface IOSKeySettingsOrBuilder
    * assessment of the integrity of your app.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the appleDeveloperId field is set. */ boolean hasAppleDeveloperId(); /** - * - * *
    * Optional. Apple Developer account details for the app that is protected by
    * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -120,16 +84,11 @@ public interface IOSKeySettingsOrBuilder
    * assessment of the integrity of your app.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The appleDeveloperId. */ com.google.recaptchaenterprise.v1.AppleDeveloperId getAppleDeveloperId(); /** - * - * *
    * Optional. Apple Developer account details for the app that is protected by
    * the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
@@ -138,9 +97,7 @@ public interface IOSKeySettingsOrBuilder
    * assessment of the integrity of your app.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.AppleDeveloperId apple_developer_id = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.recaptchaenterprise.v1.AppleDeveloperIdOrBuilder getAppleDeveloperIdOrBuilder(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Key.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Key.java similarity index 66% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Key.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Key.java index 0b2be6e83061..3ada204a7a77 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Key.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Key.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * A key used to identify and configure applications (web and/or mobile) that
  * use reCAPTCHA Enterprise.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.recaptchaenterprise.v1.Key}
  */
-public final class Key extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Key extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.Key)
     KeyOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Key.newBuilder() to construct.
   private Key(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Key() {
     name_ = "";
     displayName_ = "";
@@ -45,51 +27,47 @@ private Key() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Key();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-        .internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 6:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-        .internal_static_google_cloud_recaptchaenterprise_v1_Key_fieldAccessorTable
+    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Key_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.recaptchaenterprise.v1.Key.class,
-            com.google.recaptchaenterprise.v1.Key.Builder.class);
+            com.google.recaptchaenterprise.v1.Key.class, com.google.recaptchaenterprise.v1.Key.Builder.class);
   }
 
   private int platformSettingsCase_ = 0;
-
   @SuppressWarnings("serial")
   private java.lang.Object platformSettings_;
-
   public enum PlatformSettingsCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     WEB_SETTINGS(3),
     ANDROID_SETTINGS(4),
     IOS_SETTINGS(5),
     PLATFORMSETTINGS_NOT_SET(0);
     private final int value;
-
     private PlatformSettingsCase(int value) {
       this.value = value;
     }
@@ -105,42 +83,34 @@ public static PlatformSettingsCase valueOf(int value) {
 
     public static PlatformSettingsCase forNumber(int value) {
       switch (value) {
-        case 3:
-          return WEB_SETTINGS;
-        case 4:
-          return ANDROID_SETTINGS;
-        case 5:
-          return IOS_SETTINGS;
-        case 0:
-          return PLATFORMSETTINGS_NOT_SET;
-        default:
-          return null;
+        case 3: return WEB_SETTINGS;
+        case 4: return ANDROID_SETTINGS;
+        case 5: return IOS_SETTINGS;
+        case 0: return PLATFORMSETTINGS_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public PlatformSettingsCase getPlatformSettingsCase() {
-    return PlatformSettingsCase.forNumber(platformSettingsCase_);
+  public PlatformSettingsCase
+  getPlatformSettingsCase() {
+    return PlatformSettingsCase.forNumber(
+        platformSettingsCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * The resource name for the Key in the format
    * `projects/{project}/keys/{key}`.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -149,30 +119,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name for the Key in the format
    * `projects/{project}/keys/{key}`.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -181,18 +151,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Required. Human-readable display name of this key. Modifiable by user.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -201,29 +167,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Required. Human-readable display name of this key. Modifiable by user.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -233,14 +199,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int WEB_SETTINGS_FIELD_NUMBER = 3; /** - * - * *
    * Settings for keys that can be used by websites.
    * 
* * .google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3; - * * @return Whether the webSettings field is set. */ @java.lang.Override @@ -248,26 +211,21 @@ public boolean hasWebSettings() { return platformSettingsCase_ == 3; } /** - * - * *
    * Settings for keys that can be used by websites.
    * 
* * .google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3; - * * @return The webSettings. */ @java.lang.Override public com.google.recaptchaenterprise.v1.WebKeySettings getWebSettings() { if (platformSettingsCase_ == 3) { - return (com.google.recaptchaenterprise.v1.WebKeySettings) platformSettings_; + return (com.google.recaptchaenterprise.v1.WebKeySettings) platformSettings_; } return com.google.recaptchaenterprise.v1.WebKeySettings.getDefaultInstance(); } /** - * - * *
    * Settings for keys that can be used by websites.
    * 
@@ -277,21 +235,18 @@ public com.google.recaptchaenterprise.v1.WebKeySettings getWebSettings() { @java.lang.Override public com.google.recaptchaenterprise.v1.WebKeySettingsOrBuilder getWebSettingsOrBuilder() { if (platformSettingsCase_ == 3) { - return (com.google.recaptchaenterprise.v1.WebKeySettings) platformSettings_; + return (com.google.recaptchaenterprise.v1.WebKeySettings) platformSettings_; } return com.google.recaptchaenterprise.v1.WebKeySettings.getDefaultInstance(); } public static final int ANDROID_SETTINGS_FIELD_NUMBER = 4; /** - * - * *
    * Settings for keys that can be used by Android apps.
    * 
* * .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4; - * * @return Whether the androidSettings field is set. */ @java.lang.Override @@ -299,26 +254,21 @@ public boolean hasAndroidSettings() { return platformSettingsCase_ == 4; } /** - * - * *
    * Settings for keys that can be used by Android apps.
    * 
* * .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4; - * * @return The androidSettings. */ @java.lang.Override public com.google.recaptchaenterprise.v1.AndroidKeySettings getAndroidSettings() { if (platformSettingsCase_ == 4) { - return (com.google.recaptchaenterprise.v1.AndroidKeySettings) platformSettings_; + return (com.google.recaptchaenterprise.v1.AndroidKeySettings) platformSettings_; } return com.google.recaptchaenterprise.v1.AndroidKeySettings.getDefaultInstance(); } /** - * - * *
    * Settings for keys that can be used by Android apps.
    * 
@@ -326,24 +276,20 @@ public com.google.recaptchaenterprise.v1.AndroidKeySettings getAndroidSettings() * .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder - getAndroidSettingsOrBuilder() { + public com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder getAndroidSettingsOrBuilder() { if (platformSettingsCase_ == 4) { - return (com.google.recaptchaenterprise.v1.AndroidKeySettings) platformSettings_; + return (com.google.recaptchaenterprise.v1.AndroidKeySettings) platformSettings_; } return com.google.recaptchaenterprise.v1.AndroidKeySettings.getDefaultInstance(); } public static final int IOS_SETTINGS_FIELD_NUMBER = 5; /** - * - * *
    * Settings for keys that can be used by iOS apps.
    * 
* * .google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5; - * * @return Whether the iosSettings field is set. */ @java.lang.Override @@ -351,26 +297,21 @@ public boolean hasIosSettings() { return platformSettingsCase_ == 5; } /** - * - * *
    * Settings for keys that can be used by iOS apps.
    * 
* * .google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5; - * * @return The iosSettings. */ @java.lang.Override public com.google.recaptchaenterprise.v1.IOSKeySettings getIosSettings() { if (platformSettingsCase_ == 5) { - return (com.google.recaptchaenterprise.v1.IOSKeySettings) platformSettings_; + return (com.google.recaptchaenterprise.v1.IOSKeySettings) platformSettings_; } return com.google.recaptchaenterprise.v1.IOSKeySettings.getDefaultInstance(); } /** - * - * *
    * Settings for keys that can be used by iOS apps.
    * 
@@ -380,40 +321,38 @@ public com.google.recaptchaenterprise.v1.IOSKeySettings getIosSettings() { @java.lang.Override public com.google.recaptchaenterprise.v1.IOSKeySettingsOrBuilder getIosSettingsOrBuilder() { if (platformSettingsCase_ == 5) { - return (com.google.recaptchaenterprise.v1.IOSKeySettings) platformSettings_; + return (com.google.recaptchaenterprise.v1.IOSKeySettings) platformSettings_; } return com.google.recaptchaenterprise.v1.IOSKeySettings.getDefaultInstance(); } public static final int LABELS_FIELD_NUMBER = 6; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_Key_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Key_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -422,21 +361,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -449,8 +387,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -459,19 +395,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -480,11 +414,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -494,15 +428,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int CREATE_TIME_FIELD_NUMBER = 7;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * Output only. The timestamp corresponding to the creation of this key.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -510,15 +440,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The timestamp corresponding to the creation of this key.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -526,14 +452,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The timestamp corresponding to the creation of this key.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -543,16 +466,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int TESTING_OPTIONS_FIELD_NUMBER = 9; private com.google.recaptchaenterprise.v1.TestingOptions testingOptions_; /** - * - * *
    * Optional. Options for user acceptance testing.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the testingOptions field is set. */ @java.lang.Override @@ -560,55 +478,37 @@ public boolean hasTestingOptions() { return testingOptions_ != null; } /** - * - * *
    * Optional. Options for user acceptance testing.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The testingOptions. */ @java.lang.Override public com.google.recaptchaenterprise.v1.TestingOptions getTestingOptions() { - return testingOptions_ == null - ? com.google.recaptchaenterprise.v1.TestingOptions.getDefaultInstance() - : testingOptions_; + return testingOptions_ == null ? com.google.recaptchaenterprise.v1.TestingOptions.getDefaultInstance() : testingOptions_; } /** - * - * *
    * Optional. Options for user acceptance testing.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.recaptchaenterprise.v1.TestingOptionsOrBuilder getTestingOptionsOrBuilder() { - return testingOptions_ == null - ? com.google.recaptchaenterprise.v1.TestingOptions.getDefaultInstance() - : testingOptions_; + return testingOptions_ == null ? com.google.recaptchaenterprise.v1.TestingOptions.getDefaultInstance() : testingOptions_; } public static final int WAF_SETTINGS_FIELD_NUMBER = 10; private com.google.recaptchaenterprise.v1.WafSettings wafSettings_; /** - * - * *
    * Optional. Settings for WAF
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the wafSettings field is set. */ @java.lang.Override @@ -616,44 +516,30 @@ public boolean hasWafSettings() { return wafSettings_ != null; } /** - * - * *
    * Optional. Settings for WAF
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The wafSettings. */ @java.lang.Override public com.google.recaptchaenterprise.v1.WafSettings getWafSettings() { - return wafSettings_ == null - ? com.google.recaptchaenterprise.v1.WafSettings.getDefaultInstance() - : wafSettings_; + return wafSettings_ == null ? com.google.recaptchaenterprise.v1.WafSettings.getDefaultInstance() : wafSettings_; } /** - * - * *
    * Optional. Settings for WAF
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.recaptchaenterprise.v1.WafSettingsOrBuilder getWafSettingsOrBuilder() { - return wafSettings_ == null - ? com.google.recaptchaenterprise.v1.WafSettings.getDefaultInstance() - : wafSettings_; + return wafSettings_ == null ? com.google.recaptchaenterprise.v1.WafSettings.getDefaultInstance() : wafSettings_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -665,7 +551,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -676,14 +563,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(3, (com.google.recaptchaenterprise.v1.WebKeySettings) platformSettings_); } if (platformSettingsCase_ == 4) { - output.writeMessage( - 4, (com.google.recaptchaenterprise.v1.AndroidKeySettings) platformSettings_); + output.writeMessage(4, (com.google.recaptchaenterprise.v1.AndroidKeySettings) platformSettings_); } if (platformSettingsCase_ == 5) { output.writeMessage(5, (com.google.recaptchaenterprise.v1.IOSKeySettings) platformSettings_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 6); if (createTime_ != null) { output.writeMessage(7, getCreateTime()); } @@ -709,38 +599,38 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (platformSettingsCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.recaptchaenterprise.v1.WebKeySettings) platformSettings_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.recaptchaenterprise.v1.WebKeySettings) platformSettings_); } if (platformSettingsCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.recaptchaenterprise.v1.AndroidKeySettings) platformSettings_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.recaptchaenterprise.v1.AndroidKeySettings) platformSettings_); } if (platformSettingsCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.recaptchaenterprise.v1.IOSKeySettings) platformSettings_); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.recaptchaenterprise.v1.IOSKeySettings) platformSettings_); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, labels__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreateTime()); } if (testingOptions_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getTestingOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getTestingOptions()); } if (wafSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getWafSettings()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getWafSettings()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -750,38 +640,47 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.Key)) { return super.equals(obj); } com.google.recaptchaenterprise.v1.Key other = (com.google.recaptchaenterprise.v1.Key) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasTestingOptions() != other.hasTestingOptions()) return false; if (hasTestingOptions()) { - if (!getTestingOptions().equals(other.getTestingOptions())) return false; + if (!getTestingOptions() + .equals(other.getTestingOptions())) return false; } if (hasWafSettings() != other.hasWafSettings()) return false; if (hasWafSettings()) { - if (!getWafSettings().equals(other.getWafSettings())) return false; + if (!getWafSettings() + .equals(other.getWafSettings())) return false; } if (!getPlatformSettingsCase().equals(other.getPlatformSettingsCase())) return false; switch (platformSettingsCase_) { case 3: - if (!getWebSettings().equals(other.getWebSettings())) return false; + if (!getWebSettings() + .equals(other.getWebSettings())) return false; break; case 4: - if (!getAndroidSettings().equals(other.getAndroidSettings())) return false; + if (!getAndroidSettings() + .equals(other.getAndroidSettings())) return false; break; case 5: - if (!getIosSettings().equals(other.getIosSettings())) return false; + if (!getIosSettings() + .equals(other.getIosSettings())) return false; break; case 0: default: @@ -838,103 +737,99 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.Key parseFrom(java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.Key parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.Key parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.Key parseFrom(com.google.protobuf.ByteString data) + public static com.google.recaptchaenterprise.v1.Key parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.Key parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.Key parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.Key parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.Key parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.Key parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.recaptchaenterprise.v1.Key parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.Key parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.Key parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.Key parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.Key prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A key used to identify and configure applications (web and/or mobile) that
    * use reCAPTCHA Enterprise.
@@ -942,52 +837,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.recaptchaenterprise.v1.Key}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.Key)
       com.google.recaptchaenterprise.v1.KeyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-          .internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 6:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 6:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-          .internal_static_google_cloud_recaptchaenterprise_v1_Key_fieldAccessorTable
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Key_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.recaptchaenterprise.v1.Key.class,
-              com.google.recaptchaenterprise.v1.Key.Builder.class);
+              com.google.recaptchaenterprise.v1.Key.class, com.google.recaptchaenterprise.v1.Key.Builder.class);
     }
 
     // Construct using com.google.recaptchaenterprise.v1.Key.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1025,9 +923,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-          .internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor;
     }
 
     @java.lang.Override
@@ -1046,11 +944,8 @@ public com.google.recaptchaenterprise.v1.Key build() {
 
     @java.lang.Override
     public com.google.recaptchaenterprise.v1.Key buildPartial() {
-      com.google.recaptchaenterprise.v1.Key result =
-          new com.google.recaptchaenterprise.v1.Key(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.recaptchaenterprise.v1.Key result = new com.google.recaptchaenterprise.v1.Key(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -1069,28 +964,35 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.Key result) {
         result.labels_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.testingOptions_ =
-            testingOptionsBuilder_ == null ? testingOptions_ : testingOptionsBuilder_.build();
+        result.testingOptions_ = testingOptionsBuilder_ == null
+            ? testingOptions_
+            : testingOptionsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.wafSettings_ =
-            wafSettingsBuilder_ == null ? wafSettings_ : wafSettingsBuilder_.build();
+        result.wafSettings_ = wafSettingsBuilder_ == null
+            ? wafSettings_
+            : wafSettingsBuilder_.build();
       }
     }
 
     private void buildPartialOneofs(com.google.recaptchaenterprise.v1.Key result) {
       result.platformSettingsCase_ = platformSettingsCase_;
       result.platformSettings_ = this.platformSettings_;
-      if (platformSettingsCase_ == 3 && webSettingsBuilder_ != null) {
+      if (platformSettingsCase_ == 3 &&
+          webSettingsBuilder_ != null) {
         result.platformSettings_ = webSettingsBuilder_.build();
       }
-      if (platformSettingsCase_ == 4 && androidSettingsBuilder_ != null) {
+      if (platformSettingsCase_ == 4 &&
+          androidSettingsBuilder_ != null) {
         result.platformSettings_ = androidSettingsBuilder_.build();
       }
-      if (platformSettingsCase_ == 5 && iosSettingsBuilder_ != null) {
+      if (platformSettingsCase_ == 5 &&
+          iosSettingsBuilder_ != null) {
         result.platformSettings_ = iosSettingsBuilder_.build();
       }
     }
@@ -1099,39 +1001,38 @@ private void buildPartialOneofs(com.google.recaptchaenterprise.v1.Key result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.recaptchaenterprise.v1.Key) {
-        return mergeFrom((com.google.recaptchaenterprise.v1.Key) other);
+        return mergeFrom((com.google.recaptchaenterprise.v1.Key)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1150,7 +1051,8 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.Key other) {
         bitField0_ |= 0x00000002;
         onChanged();
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       bitField0_ |= 0x00000020;
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
@@ -1162,25 +1064,21 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.Key other) {
         mergeWafSettings(other.getWafSettings());
       }
       switch (other.getPlatformSettingsCase()) {
-        case WEB_SETTINGS:
-          {
-            mergeWebSettings(other.getWebSettings());
-            break;
-          }
-        case ANDROID_SETTINGS:
-          {
-            mergeAndroidSettings(other.getAndroidSettings());
-            break;
-          }
-        case IOS_SETTINGS:
-          {
-            mergeIosSettings(other.getIosSettings());
-            break;
-          }
-        case PLATFORMSETTINGS_NOT_SET:
-          {
-            break;
-          }
+        case WEB_SETTINGS: {
+          mergeWebSettings(other.getWebSettings());
+          break;
+        }
+        case ANDROID_SETTINGS: {
+          mergeAndroidSettings(other.getAndroidSettings());
+          break;
+        }
+        case IOS_SETTINGS: {
+          mergeIosSettings(other.getIosSettings());
+          break;
+        }
+        case PLATFORMSETTINGS_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1208,73 +1106,73 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getWebSettingsFieldBuilder().getBuilder(), extensionRegistry);
-                platformSettingsCase_ = 3;
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getAndroidSettingsFieldBuilder().getBuilder(), extensionRegistry);
-                platformSettingsCase_ = 4;
-                break;
-              } // case 34
-            case 42:
-              {
-                input.readMessage(getIosSettingsFieldBuilder().getBuilder(), extensionRegistry);
-                platformSettingsCase_ = 5;
-                break;
-              } // case 42
-            case 50:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 58
-            case 74:
-              {
-                input.readMessage(getTestingOptionsFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 74
-            case 82:
-              {
-                input.readMessage(getWafSettingsFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 82
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getWebSettingsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              platformSettingsCase_ = 3;
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getAndroidSettingsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              platformSettingsCase_ = 4;
+              break;
+            } // case 34
+            case 42: {
+              input.readMessage(
+                  getIosSettingsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              platformSettingsCase_ = 5;
+              break;
+            } // case 42
+            case 50: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 58
+            case 74: {
+              input.readMessage(
+                  getTestingOptionsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 74
+            case 82: {
+              input.readMessage(
+                  getWafSettingsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 82
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1284,12 +1182,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int platformSettingsCase_ = 0;
     private java.lang.Object platformSettings_;
-
-    public PlatformSettingsCase getPlatformSettingsCase() {
-      return PlatformSettingsCase.forNumber(platformSettingsCase_);
+    public PlatformSettingsCase
+        getPlatformSettingsCase() {
+      return PlatformSettingsCase.forNumber(
+          platformSettingsCase_);
     }
 
     public Builder clearPlatformSettings() {
@@ -1303,21 +1201,19 @@ public Builder clearPlatformSettings() {
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name for the Key in the format
      * `projects/{project}/keys/{key}`.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1326,22 +1222,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name for the Key in the format
      * `projects/{project}/keys/{key}`.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1349,37 +1244,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name for the Key in the format
      * `projects/{project}/keys/{key}`.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name for the Key in the format
      * `projects/{project}/keys/{key}`.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1389,22 +1277,18 @@ public Builder clearName() { return this; } /** - * - * *
      * The resource name for the Key in the format
      * `projects/{project}/keys/{key}`.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1414,20 +1298,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. Human-readable display name of this key. Modifiable by user.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1436,21 +1318,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. Human-readable display name of this key. Modifiable by user.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1458,35 +1339,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. Human-readable display name of this key. Modifiable by user.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. Human-readable display name of this key. Modifiable by user.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1496,21 +1370,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Required. Human-readable display name of this key. Modifiable by user.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1519,19 +1389,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.WebKeySettings, - com.google.recaptchaenterprise.v1.WebKeySettings.Builder, - com.google.recaptchaenterprise.v1.WebKeySettingsOrBuilder> - webSettingsBuilder_; + com.google.recaptchaenterprise.v1.WebKeySettings, com.google.recaptchaenterprise.v1.WebKeySettings.Builder, com.google.recaptchaenterprise.v1.WebKeySettingsOrBuilder> webSettingsBuilder_; /** - * - * *
      * Settings for keys that can be used by websites.
      * 
* * .google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3; - * * @return Whether the webSettings field is set. */ @java.lang.Override @@ -1539,14 +1403,11 @@ public boolean hasWebSettings() { return platformSettingsCase_ == 3; } /** - * - * *
      * Settings for keys that can be used by websites.
      * 
* * .google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3; - * * @return The webSettings. */ @java.lang.Override @@ -1564,8 +1425,6 @@ public com.google.recaptchaenterprise.v1.WebKeySettings getWebSettings() { } } /** - * - * *
      * Settings for keys that can be used by websites.
      * 
@@ -1586,8 +1445,6 @@ public Builder setWebSettings(com.google.recaptchaenterprise.v1.WebKeySettings v return this; } /** - * - * *
      * Settings for keys that can be used by websites.
      * 
@@ -1606,8 +1463,6 @@ public Builder setWebSettings( return this; } /** - * - * *
      * Settings for keys that can be used by websites.
      * 
@@ -1616,14 +1471,10 @@ public Builder setWebSettings( */ public Builder mergeWebSettings(com.google.recaptchaenterprise.v1.WebKeySettings value) { if (webSettingsBuilder_ == null) { - if (platformSettingsCase_ == 3 - && platformSettings_ - != com.google.recaptchaenterprise.v1.WebKeySettings.getDefaultInstance()) { - platformSettings_ = - com.google.recaptchaenterprise.v1.WebKeySettings.newBuilder( - (com.google.recaptchaenterprise.v1.WebKeySettings) platformSettings_) - .mergeFrom(value) - .buildPartial(); + if (platformSettingsCase_ == 3 && + platformSettings_ != com.google.recaptchaenterprise.v1.WebKeySettings.getDefaultInstance()) { + platformSettings_ = com.google.recaptchaenterprise.v1.WebKeySettings.newBuilder((com.google.recaptchaenterprise.v1.WebKeySettings) platformSettings_) + .mergeFrom(value).buildPartial(); } else { platformSettings_ = value; } @@ -1639,8 +1490,6 @@ public Builder mergeWebSettings(com.google.recaptchaenterprise.v1.WebKeySettings return this; } /** - * - * *
      * Settings for keys that can be used by websites.
      * 
@@ -1664,8 +1513,6 @@ public Builder clearWebSettings() { return this; } /** - * - * *
      * Settings for keys that can be used by websites.
      * 
@@ -1676,8 +1523,6 @@ public com.google.recaptchaenterprise.v1.WebKeySettings.Builder getWebSettingsBu return getWebSettingsFieldBuilder().getBuilder(); } /** - * - * *
      * Settings for keys that can be used by websites.
      * 
@@ -1696,8 +1541,6 @@ public com.google.recaptchaenterprise.v1.WebKeySettingsOrBuilder getWebSettingsO } } /** - * - * *
      * Settings for keys that can be used by websites.
      * 
@@ -1705,19 +1548,14 @@ public com.google.recaptchaenterprise.v1.WebKeySettingsOrBuilder getWebSettingsO * .google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.WebKeySettings, - com.google.recaptchaenterprise.v1.WebKeySettings.Builder, - com.google.recaptchaenterprise.v1.WebKeySettingsOrBuilder> + com.google.recaptchaenterprise.v1.WebKeySettings, com.google.recaptchaenterprise.v1.WebKeySettings.Builder, com.google.recaptchaenterprise.v1.WebKeySettingsOrBuilder> getWebSettingsFieldBuilder() { if (webSettingsBuilder_ == null) { if (!(platformSettingsCase_ == 3)) { platformSettings_ = com.google.recaptchaenterprise.v1.WebKeySettings.getDefaultInstance(); } - webSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.WebKeySettings, - com.google.recaptchaenterprise.v1.WebKeySettings.Builder, - com.google.recaptchaenterprise.v1.WebKeySettingsOrBuilder>( + webSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.WebKeySettings, com.google.recaptchaenterprise.v1.WebKeySettings.Builder, com.google.recaptchaenterprise.v1.WebKeySettingsOrBuilder>( (com.google.recaptchaenterprise.v1.WebKeySettings) platformSettings_, getParentForChildren(), isClean()); @@ -1729,19 +1567,13 @@ public com.google.recaptchaenterprise.v1.WebKeySettingsOrBuilder getWebSettingsO } private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.AndroidKeySettings, - com.google.recaptchaenterprise.v1.AndroidKeySettings.Builder, - com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder> - androidSettingsBuilder_; + com.google.recaptchaenterprise.v1.AndroidKeySettings, com.google.recaptchaenterprise.v1.AndroidKeySettings.Builder, com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder> androidSettingsBuilder_; /** - * - * *
      * Settings for keys that can be used by Android apps.
      * 
* * .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4; - * * @return Whether the androidSettings field is set. */ @java.lang.Override @@ -1749,14 +1581,11 @@ public boolean hasAndroidSettings() { return platformSettingsCase_ == 4; } /** - * - * *
      * Settings for keys that can be used by Android apps.
      * 
* * .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4; - * * @return The androidSettings. */ @java.lang.Override @@ -1774,8 +1603,6 @@ public com.google.recaptchaenterprise.v1.AndroidKeySettings getAndroidSettings() } } /** - * - * *
      * Settings for keys that can be used by Android apps.
      * 
@@ -1796,8 +1623,6 @@ public Builder setAndroidSettings(com.google.recaptchaenterprise.v1.AndroidKeySe return this; } /** - * - * *
      * Settings for keys that can be used by Android apps.
      * 
@@ -1816,25 +1641,18 @@ public Builder setAndroidSettings( return this; } /** - * - * *
      * Settings for keys that can be used by Android apps.
      * 
* * .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4; */ - public Builder mergeAndroidSettings( - com.google.recaptchaenterprise.v1.AndroidKeySettings value) { + public Builder mergeAndroidSettings(com.google.recaptchaenterprise.v1.AndroidKeySettings value) { if (androidSettingsBuilder_ == null) { - if (platformSettingsCase_ == 4 - && platformSettings_ - != com.google.recaptchaenterprise.v1.AndroidKeySettings.getDefaultInstance()) { - platformSettings_ = - com.google.recaptchaenterprise.v1.AndroidKeySettings.newBuilder( - (com.google.recaptchaenterprise.v1.AndroidKeySettings) platformSettings_) - .mergeFrom(value) - .buildPartial(); + if (platformSettingsCase_ == 4 && + platformSettings_ != com.google.recaptchaenterprise.v1.AndroidKeySettings.getDefaultInstance()) { + platformSettings_ = com.google.recaptchaenterprise.v1.AndroidKeySettings.newBuilder((com.google.recaptchaenterprise.v1.AndroidKeySettings) platformSettings_) + .mergeFrom(value).buildPartial(); } else { platformSettings_ = value; } @@ -1850,8 +1668,6 @@ public Builder mergeAndroidSettings( return this; } /** - * - * *
      * Settings for keys that can be used by Android apps.
      * 
@@ -1875,21 +1691,16 @@ public Builder clearAndroidSettings() { return this; } /** - * - * *
      * Settings for keys that can be used by Android apps.
      * 
* * .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4; */ - public com.google.recaptchaenterprise.v1.AndroidKeySettings.Builder - getAndroidSettingsBuilder() { + public com.google.recaptchaenterprise.v1.AndroidKeySettings.Builder getAndroidSettingsBuilder() { return getAndroidSettingsFieldBuilder().getBuilder(); } /** - * - * *
      * Settings for keys that can be used by Android apps.
      * 
@@ -1897,8 +1708,7 @@ public Builder clearAndroidSettings() { * .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder - getAndroidSettingsOrBuilder() { + public com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder getAndroidSettingsOrBuilder() { if ((platformSettingsCase_ == 4) && (androidSettingsBuilder_ != null)) { return androidSettingsBuilder_.getMessageOrBuilder(); } else { @@ -1909,8 +1719,6 @@ public Builder clearAndroidSettings() { } } /** - * - * *
      * Settings for keys that can be used by Android apps.
      * 
@@ -1918,20 +1726,14 @@ public Builder clearAndroidSettings() { * .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.AndroidKeySettings, - com.google.recaptchaenterprise.v1.AndroidKeySettings.Builder, - com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder> + com.google.recaptchaenterprise.v1.AndroidKeySettings, com.google.recaptchaenterprise.v1.AndroidKeySettings.Builder, com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder> getAndroidSettingsFieldBuilder() { if (androidSettingsBuilder_ == null) { if (!(platformSettingsCase_ == 4)) { - platformSettings_ = - com.google.recaptchaenterprise.v1.AndroidKeySettings.getDefaultInstance(); + platformSettings_ = com.google.recaptchaenterprise.v1.AndroidKeySettings.getDefaultInstance(); } - androidSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.AndroidKeySettings, - com.google.recaptchaenterprise.v1.AndroidKeySettings.Builder, - com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder>( + androidSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.AndroidKeySettings, com.google.recaptchaenterprise.v1.AndroidKeySettings.Builder, com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder>( (com.google.recaptchaenterprise.v1.AndroidKeySettings) platformSettings_, getParentForChildren(), isClean()); @@ -1943,19 +1745,13 @@ public Builder clearAndroidSettings() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.IOSKeySettings, - com.google.recaptchaenterprise.v1.IOSKeySettings.Builder, - com.google.recaptchaenterprise.v1.IOSKeySettingsOrBuilder> - iosSettingsBuilder_; + com.google.recaptchaenterprise.v1.IOSKeySettings, com.google.recaptchaenterprise.v1.IOSKeySettings.Builder, com.google.recaptchaenterprise.v1.IOSKeySettingsOrBuilder> iosSettingsBuilder_; /** - * - * *
      * Settings for keys that can be used by iOS apps.
      * 
* * .google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5; - * * @return Whether the iosSettings field is set. */ @java.lang.Override @@ -1963,14 +1759,11 @@ public boolean hasIosSettings() { return platformSettingsCase_ == 5; } /** - * - * *
      * Settings for keys that can be used by iOS apps.
      * 
* * .google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5; - * * @return The iosSettings. */ @java.lang.Override @@ -1988,8 +1781,6 @@ public com.google.recaptchaenterprise.v1.IOSKeySettings getIosSettings() { } } /** - * - * *
      * Settings for keys that can be used by iOS apps.
      * 
@@ -2010,8 +1801,6 @@ public Builder setIosSettings(com.google.recaptchaenterprise.v1.IOSKeySettings v return this; } /** - * - * *
      * Settings for keys that can be used by iOS apps.
      * 
@@ -2030,8 +1819,6 @@ public Builder setIosSettings( return this; } /** - * - * *
      * Settings for keys that can be used by iOS apps.
      * 
@@ -2040,14 +1827,10 @@ public Builder setIosSettings( */ public Builder mergeIosSettings(com.google.recaptchaenterprise.v1.IOSKeySettings value) { if (iosSettingsBuilder_ == null) { - if (platformSettingsCase_ == 5 - && platformSettings_ - != com.google.recaptchaenterprise.v1.IOSKeySettings.getDefaultInstance()) { - platformSettings_ = - com.google.recaptchaenterprise.v1.IOSKeySettings.newBuilder( - (com.google.recaptchaenterprise.v1.IOSKeySettings) platformSettings_) - .mergeFrom(value) - .buildPartial(); + if (platformSettingsCase_ == 5 && + platformSettings_ != com.google.recaptchaenterprise.v1.IOSKeySettings.getDefaultInstance()) { + platformSettings_ = com.google.recaptchaenterprise.v1.IOSKeySettings.newBuilder((com.google.recaptchaenterprise.v1.IOSKeySettings) platformSettings_) + .mergeFrom(value).buildPartial(); } else { platformSettings_ = value; } @@ -2063,8 +1846,6 @@ public Builder mergeIosSettings(com.google.recaptchaenterprise.v1.IOSKeySettings return this; } /** - * - * *
      * Settings for keys that can be used by iOS apps.
      * 
@@ -2088,8 +1869,6 @@ public Builder clearIosSettings() { return this; } /** - * - * *
      * Settings for keys that can be used by iOS apps.
      * 
@@ -2100,8 +1879,6 @@ public com.google.recaptchaenterprise.v1.IOSKeySettings.Builder getIosSettingsBu return getIosSettingsFieldBuilder().getBuilder(); } /** - * - * *
      * Settings for keys that can be used by iOS apps.
      * 
@@ -2120,8 +1897,6 @@ public com.google.recaptchaenterprise.v1.IOSKeySettingsOrBuilder getIosSettingsO } } /** - * - * *
      * Settings for keys that can be used by iOS apps.
      * 
@@ -2129,19 +1904,14 @@ public com.google.recaptchaenterprise.v1.IOSKeySettingsOrBuilder getIosSettingsO * .google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.IOSKeySettings, - com.google.recaptchaenterprise.v1.IOSKeySettings.Builder, - com.google.recaptchaenterprise.v1.IOSKeySettingsOrBuilder> + com.google.recaptchaenterprise.v1.IOSKeySettings, com.google.recaptchaenterprise.v1.IOSKeySettings.Builder, com.google.recaptchaenterprise.v1.IOSKeySettingsOrBuilder> getIosSettingsFieldBuilder() { if (iosSettingsBuilder_ == null) { if (!(platformSettingsCase_ == 5)) { platformSettings_ = com.google.recaptchaenterprise.v1.IOSKeySettings.getDefaultInstance(); } - iosSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.IOSKeySettings, - com.google.recaptchaenterprise.v1.IOSKeySettings.Builder, - com.google.recaptchaenterprise.v1.IOSKeySettingsOrBuilder>( + iosSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.IOSKeySettings, com.google.recaptchaenterprise.v1.IOSKeySettings.Builder, com.google.recaptchaenterprise.v1.IOSKeySettingsOrBuilder>( (com.google.recaptchaenterprise.v1.IOSKeySettings) platformSettings_, getParentForChildren(), isClean()); @@ -2152,19 +1922,21 @@ public com.google.recaptchaenterprise.v1.IOSKeySettingsOrBuilder getIosSettingsO return iosSettingsBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2173,13 +1945,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -2188,21 +1957,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -2215,8 +1983,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -2225,19 +1991,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -2246,25 +2010,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -2272,22 +2034,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -2295,20 +2058,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -2316,66 +2076,49 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        createTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
     /**
-     *
-     *
      * 
      * Output only. The timestamp corresponding to the creation of this key.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. The timestamp corresponding to the creation of this key.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp corresponding to the creation of this key.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2391,17 +2134,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp corresponding to the creation of this key.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -2412,21 +2152,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp corresponding to the creation of this key.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2439,15 +2175,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp corresponding to the creation of this key.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2460,15 +2192,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The timestamp corresponding to the creation of this key.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -2476,48 +2204,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp corresponding to the creation of this key.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The timestamp corresponding to the creation of this key.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2525,58 +2241,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.recaptchaenterprise.v1.TestingOptions testingOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TestingOptions, - com.google.recaptchaenterprise.v1.TestingOptions.Builder, - com.google.recaptchaenterprise.v1.TestingOptionsOrBuilder> - testingOptionsBuilder_; + com.google.recaptchaenterprise.v1.TestingOptions, com.google.recaptchaenterprise.v1.TestingOptions.Builder, com.google.recaptchaenterprise.v1.TestingOptionsOrBuilder> testingOptionsBuilder_; /** - * - * *
      * Optional. Options for user acceptance testing.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the testingOptions field is set. */ public boolean hasTestingOptions() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Optional. Options for user acceptance testing.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The testingOptions. */ public com.google.recaptchaenterprise.v1.TestingOptions getTestingOptions() { if (testingOptionsBuilder_ == null) { - return testingOptions_ == null - ? com.google.recaptchaenterprise.v1.TestingOptions.getDefaultInstance() - : testingOptions_; + return testingOptions_ == null ? com.google.recaptchaenterprise.v1.TestingOptions.getDefaultInstance() : testingOptions_; } else { return testingOptionsBuilder_.getMessage(); } } /** - * - * *
      * Optional. Options for user acceptance testing.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTestingOptions(com.google.recaptchaenterprise.v1.TestingOptions value) { if (testingOptionsBuilder_ == null) { @@ -2592,15 +2289,11 @@ public Builder setTestingOptions(com.google.recaptchaenterprise.v1.TestingOption return this; } /** - * - * *
      * Optional. Options for user acceptance testing.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTestingOptions( com.google.recaptchaenterprise.v1.TestingOptions.Builder builderForValue) { @@ -2614,22 +2307,17 @@ public Builder setTestingOptions( return this; } /** - * - * *
      * Optional. Options for user acceptance testing.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeTestingOptions(com.google.recaptchaenterprise.v1.TestingOptions value) { if (testingOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && testingOptions_ != null - && testingOptions_ - != com.google.recaptchaenterprise.v1.TestingOptions.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + testingOptions_ != null && + testingOptions_ != com.google.recaptchaenterprise.v1.TestingOptions.getDefaultInstance()) { getTestingOptionsBuilder().mergeFrom(value); } else { testingOptions_ = value; @@ -2642,15 +2330,11 @@ public Builder mergeTestingOptions(com.google.recaptchaenterprise.v1.TestingOpti return this; } /** - * - * *
      * Optional. Options for user acceptance testing.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearTestingOptions() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2663,15 +2347,11 @@ public Builder clearTestingOptions() { return this; } /** - * - * *
      * Optional. Options for user acceptance testing.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.TestingOptions.Builder getTestingOptionsBuilder() { bitField0_ |= 0x00000080; @@ -2679,48 +2359,36 @@ public com.google.recaptchaenterprise.v1.TestingOptions.Builder getTestingOption return getTestingOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Options for user acceptance testing.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.TestingOptionsOrBuilder getTestingOptionsOrBuilder() { if (testingOptionsBuilder_ != null) { return testingOptionsBuilder_.getMessageOrBuilder(); } else { - return testingOptions_ == null - ? com.google.recaptchaenterprise.v1.TestingOptions.getDefaultInstance() - : testingOptions_; + return testingOptions_ == null ? + com.google.recaptchaenterprise.v1.TestingOptions.getDefaultInstance() : testingOptions_; } } /** - * - * *
      * Optional. Options for user acceptance testing.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TestingOptions, - com.google.recaptchaenterprise.v1.TestingOptions.Builder, - com.google.recaptchaenterprise.v1.TestingOptionsOrBuilder> + com.google.recaptchaenterprise.v1.TestingOptions, com.google.recaptchaenterprise.v1.TestingOptions.Builder, com.google.recaptchaenterprise.v1.TestingOptionsOrBuilder> getTestingOptionsFieldBuilder() { if (testingOptionsBuilder_ == null) { - testingOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TestingOptions, - com.google.recaptchaenterprise.v1.TestingOptions.Builder, - com.google.recaptchaenterprise.v1.TestingOptionsOrBuilder>( - getTestingOptions(), getParentForChildren(), isClean()); + testingOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.TestingOptions, com.google.recaptchaenterprise.v1.TestingOptions.Builder, com.google.recaptchaenterprise.v1.TestingOptionsOrBuilder>( + getTestingOptions(), + getParentForChildren(), + isClean()); testingOptions_ = null; } return testingOptionsBuilder_; @@ -2728,58 +2396,39 @@ public com.google.recaptchaenterprise.v1.TestingOptionsOrBuilder getTestingOptio private com.google.recaptchaenterprise.v1.WafSettings wafSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.WafSettings, - com.google.recaptchaenterprise.v1.WafSettings.Builder, - com.google.recaptchaenterprise.v1.WafSettingsOrBuilder> - wafSettingsBuilder_; + com.google.recaptchaenterprise.v1.WafSettings, com.google.recaptchaenterprise.v1.WafSettings.Builder, com.google.recaptchaenterprise.v1.WafSettingsOrBuilder> wafSettingsBuilder_; /** - * - * *
      * Optional. Settings for WAF
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the wafSettings field is set. */ public boolean hasWafSettings() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Optional. Settings for WAF
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The wafSettings. */ public com.google.recaptchaenterprise.v1.WafSettings getWafSettings() { if (wafSettingsBuilder_ == null) { - return wafSettings_ == null - ? com.google.recaptchaenterprise.v1.WafSettings.getDefaultInstance() - : wafSettings_; + return wafSettings_ == null ? com.google.recaptchaenterprise.v1.WafSettings.getDefaultInstance() : wafSettings_; } else { return wafSettingsBuilder_.getMessage(); } } /** - * - * *
      * Optional. Settings for WAF
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setWafSettings(com.google.recaptchaenterprise.v1.WafSettings value) { if (wafSettingsBuilder_ == null) { @@ -2795,15 +2444,11 @@ public Builder setWafSettings(com.google.recaptchaenterprise.v1.WafSettings valu return this; } /** - * - * *
      * Optional. Settings for WAF
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setWafSettings( com.google.recaptchaenterprise.v1.WafSettings.Builder builderForValue) { @@ -2817,21 +2462,17 @@ public Builder setWafSettings( return this; } /** - * - * *
      * Optional. Settings for WAF
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeWafSettings(com.google.recaptchaenterprise.v1.WafSettings value) { if (wafSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && wafSettings_ != null - && wafSettings_ != com.google.recaptchaenterprise.v1.WafSettings.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + wafSettings_ != null && + wafSettings_ != com.google.recaptchaenterprise.v1.WafSettings.getDefaultInstance()) { getWafSettingsBuilder().mergeFrom(value); } else { wafSettings_ = value; @@ -2844,15 +2485,11 @@ public Builder mergeWafSettings(com.google.recaptchaenterprise.v1.WafSettings va return this; } /** - * - * *
      * Optional. Settings for WAF
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearWafSettings() { bitField0_ = (bitField0_ & ~0x00000100); @@ -2865,15 +2502,11 @@ public Builder clearWafSettings() { return this; } /** - * - * *
      * Optional. Settings for WAF
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.WafSettings.Builder getWafSettingsBuilder() { bitField0_ |= 0x00000100; @@ -2881,55 +2514,43 @@ public com.google.recaptchaenterprise.v1.WafSettings.Builder getWafSettingsBuild return getWafSettingsFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Settings for WAF
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.WafSettingsOrBuilder getWafSettingsOrBuilder() { if (wafSettingsBuilder_ != null) { return wafSettingsBuilder_.getMessageOrBuilder(); } else { - return wafSettings_ == null - ? com.google.recaptchaenterprise.v1.WafSettings.getDefaultInstance() - : wafSettings_; + return wafSettings_ == null ? + com.google.recaptchaenterprise.v1.WafSettings.getDefaultInstance() : wafSettings_; } } /** - * - * *
      * Optional. Settings for WAF
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.WafSettings, - com.google.recaptchaenterprise.v1.WafSettings.Builder, - com.google.recaptchaenterprise.v1.WafSettingsOrBuilder> + com.google.recaptchaenterprise.v1.WafSettings, com.google.recaptchaenterprise.v1.WafSettings.Builder, com.google.recaptchaenterprise.v1.WafSettingsOrBuilder> getWafSettingsFieldBuilder() { if (wafSettingsBuilder_ == null) { - wafSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.WafSettings, - com.google.recaptchaenterprise.v1.WafSettings.Builder, - com.google.recaptchaenterprise.v1.WafSettingsOrBuilder>( - getWafSettings(), getParentForChildren(), isClean()); + wafSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.WafSettings, com.google.recaptchaenterprise.v1.WafSettings.Builder, com.google.recaptchaenterprise.v1.WafSettingsOrBuilder>( + getWafSettings(), + getParentForChildren(), + isClean()); wafSettings_ = null; } return wafSettingsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2939,12 +2560,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.Key) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.Key) private static final com.google.recaptchaenterprise.v1.Key DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.Key(); } @@ -2953,27 +2574,27 @@ public static com.google.recaptchaenterprise.v1.Key getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Key parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Key parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2988,4 +2609,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.Key getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyName.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyName.java similarity index 100% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyName.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyName.java diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyOrBuilder.java similarity index 74% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyOrBuilder.java index fad973e48430..30253a0e6ade 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyOrBuilder.java @@ -1,107 +1,73 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface KeyOrBuilder - extends +public interface KeyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.Key) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name for the Key in the format
    * `projects/{project}/keys/{key}`.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name for the Key in the format
    * `projects/{project}/keys/{key}`.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. Human-readable display name of this key. Modifiable by user.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. Human-readable display name of this key. Modifiable by user.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Settings for keys that can be used by websites.
    * 
* * .google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3; - * * @return Whether the webSettings field is set. */ boolean hasWebSettings(); /** - * - * *
    * Settings for keys that can be used by websites.
    * 
* * .google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3; - * * @return The webSettings. */ com.google.recaptchaenterprise.v1.WebKeySettings getWebSettings(); /** - * - * *
    * Settings for keys that can be used by websites.
    * 
@@ -111,32 +77,24 @@ public interface KeyOrBuilder com.google.recaptchaenterprise.v1.WebKeySettingsOrBuilder getWebSettingsOrBuilder(); /** - * - * *
    * Settings for keys that can be used by Android apps.
    * 
* * .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4; - * * @return Whether the androidSettings field is set. */ boolean hasAndroidSettings(); /** - * - * *
    * Settings for keys that can be used by Android apps.
    * 
* * .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4; - * * @return The androidSettings. */ com.google.recaptchaenterprise.v1.AndroidKeySettings getAndroidSettings(); /** - * - * *
    * Settings for keys that can be used by Android apps.
    * 
@@ -146,32 +104,24 @@ public interface KeyOrBuilder com.google.recaptchaenterprise.v1.AndroidKeySettingsOrBuilder getAndroidSettingsOrBuilder(); /** - * - * *
    * Settings for keys that can be used by iOS apps.
    * 
* * .google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5; - * * @return Whether the iosSettings field is set. */ boolean hasIosSettings(); /** - * - * *
    * Settings for keys that can be used by iOS apps.
    * 
* * .google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5; - * * @return The iosSettings. */ com.google.recaptchaenterprise.v1.IOSKeySettings getIosSettings(); /** - * - * *
    * Settings for keys that can be used by iOS apps.
    * 
@@ -181,8 +131,6 @@ public interface KeyOrBuilder com.google.recaptchaenterprise.v1.IOSKeySettingsOrBuilder getIosSettingsOrBuilder(); /** - * - * *
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -192,8 +140,6 @@ public interface KeyOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -201,13 +147,15 @@ public interface KeyOrBuilder
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -215,10 +163,9 @@ public interface KeyOrBuilder
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -227,13 +174,11 @@ public interface KeyOrBuilder
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/recaptcha-enterprise/docs/labels).
@@ -241,125 +186,87 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Output only. The timestamp corresponding to the creation of this key.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The timestamp corresponding to the creation of this key.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The timestamp corresponding to the creation of this key.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Optional. Options for user acceptance testing.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the testingOptions field is set. */ boolean hasTestingOptions(); /** - * - * *
    * Optional. Options for user acceptance testing.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The testingOptions. */ com.google.recaptchaenterprise.v1.TestingOptions getTestingOptions(); /** - * - * *
    * Optional. Options for user acceptance testing.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.recaptchaenterprise.v1.TestingOptionsOrBuilder getTestingOptionsOrBuilder(); /** - * - * *
    * Optional. Settings for WAF
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the wafSettings field is set. */ boolean hasWafSettings(); /** - * - * *
    * Optional. Settings for WAF
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The wafSettings. */ com.google.recaptchaenterprise.v1.WafSettings getWafSettings(); /** - * - * *
    * Optional. Settings for WAF
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.recaptchaenterprise.v1.WafSettingsOrBuilder getWafSettingsOrBuilder(); diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequest.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequest.java similarity index 67% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequest.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequest.java index 8df356cbb677..b1a7df8ff453 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequest.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * The list firewall policies request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesRequest} */ -public final class ListFirewallPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFirewallPoliciesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesRequest) ListFirewallPoliciesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFirewallPoliciesRequest.newBuilder() to construct. private ListFirewallPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFirewallPoliciesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,41 +26,34 @@ private ListFirewallPoliciesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFirewallPoliciesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.class, - com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.Builder.class); + com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.class, com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The name of the project to list the policies for, in the format
    * `projects/{project}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -87,32 +62,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The name of the project to list the policies for, in the format
    * `projects/{project}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -123,15 +96,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of policies to return. Default is 10. Max
    * limit is 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -140,19 +110,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. The next_page_token value returned from a previous.
    * ListFirewallPoliciesRequest, if any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -161,30 +127,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. The next_page_token value returned from a previous.
    * ListFirewallPoliciesRequest, if any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -193,7 +159,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +170,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -228,7 +194,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -241,17 +208,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest other = - (com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest) obj; + com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest other = (com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -275,136 +244,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The list firewall policies request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesRequest) com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.class, - com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.Builder.class); + com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.class, com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -416,14 +380,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.getDefaultInstance(); } @@ -438,17 +401,13 @@ public com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest buildPartial() { - com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest result = - new com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest result = new com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest result) { + private void buildPartial0(com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -465,39 +424,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest) other); + return mergeFrom((com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest)other); } else { super.mergeFrom(other); return this; @@ -505,9 +463,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest other) { - if (other - == com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -547,31 +503,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -581,28 +533,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the project to list the policies for, in the format
      * `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -611,24 +558,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the project to list the policies for, in the format
      * `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -636,41 +580,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the project to list the policies for, in the format
      * `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the project to list the policies for, in the format
      * `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -680,24 +613,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The name of the project to list the policies for, in the format
      * `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -705,17 +632,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of policies to return. Default is 10. Max
      * limit is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -723,15 +647,12 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of policies to return. Default is 10. Max
      * limit is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -743,15 +664,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of policies to return. Default is 10. Max
      * limit is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -763,21 +681,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. The next_page_token value returned from a previous.
      * ListFirewallPoliciesRequest, if any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -786,22 +702,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. The next_page_token value returned from a previous.
      * ListFirewallPoliciesRequest, if any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -809,37 +724,30 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. The next_page_token value returned from a previous.
      * ListFirewallPoliciesRequest, if any.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. The next_page_token value returned from a previous.
      * ListFirewallPoliciesRequest, if any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -849,31 +757,27 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. The next_page_token value returned from a previous.
      * ListFirewallPoliciesRequest, if any.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -883,13 +787,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesRequest) - private static final com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest(); } @@ -898,27 +801,27 @@ public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFirewallPoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFirewallPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -933,4 +836,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.recaptchaenterprise.v1.ListFirewallPoliciesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequestOrBuilder.java similarity index 58% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequestOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequestOrBuilder.java index 81d66fc228a8..572d6ff86ebf 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequestOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesRequestOrBuilder.java @@ -1,97 +1,64 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface ListFirewallPoliciesRequestOrBuilder - extends +public interface ListFirewallPoliciesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the project to list the policies for, in the format
    * `projects/{project}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The name of the project to list the policies for, in the format
    * `projects/{project}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The maximum number of policies to return. Default is 10. Max
    * limit is 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. The next_page_token value returned from a previous.
    * ListFirewallPoliciesRequest, if any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. The next_page_token value returned from a previous.
    * ListFirewallPoliciesRequest, if any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponse.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponse.java similarity index 69% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponse.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponse.java index 6352a59cf145..f1e9d2733dcc 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponse.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * Response to request to list firewall policies belonging to a key.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesResponse} */ -public final class ListFirewallPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFirewallPoliciesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesResponse) ListFirewallPoliciesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFirewallPoliciesResponse.newBuilder() to construct. private ListFirewallPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFirewallPoliciesResponse() { firewallPolicies_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,96 +26,78 @@ private ListFirewallPoliciesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFirewallPoliciesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.class, - com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.Builder.class); + com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.class, com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.Builder.class); } public static final int FIREWALL_POLICIES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List firewallPolicies_; /** - * - * *
    * Policy details.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ @java.lang.Override - public java.util.List - getFirewallPoliciesList() { + public java.util.List getFirewallPoliciesList() { return firewallPolicies_; } /** - * - * *
    * Policy details.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFirewallPoliciesOrBuilderList() { return firewallPolicies_; } /** - * - * *
    * Policy details.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ @java.lang.Override public int getFirewallPoliciesCount() { return firewallPolicies_.size(); } /** - * - * *
    * Policy details.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicies(int index) { return firewallPolicies_.get(index); } /** - * - * *
    * Policy details.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPoliciesOrBuilder( @@ -142,19 +106,15 @@ public com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPoli } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * Token to retrieve the next page of results. It is set to empty if no
    * policies remain in results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -163,30 +123,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results. It is set to empty if no
    * policies remain in results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -195,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,7 +166,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < firewallPolicies_.size(); i++) { output.writeMessage(1, firewallPolicies_.get(i)); } @@ -224,7 +184,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < firewallPolicies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, firewallPolicies_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, firewallPolicies_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -237,16 +198,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse other = - (com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse) obj; + com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse other = (com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse) obj; - if (!getFirewallPoliciesList().equals(other.getFirewallPoliciesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getFirewallPoliciesList() + .equals(other.getFirewallPoliciesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -270,136 +232,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response to request to list firewall policies belonging to a key.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesResponse) com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.class, - com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.Builder.class); + com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.class, com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -416,14 +373,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.getDefaultInstance(); } @@ -438,18 +394,14 @@ public com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse build() { @java.lang.Override public com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse buildPartial() { - com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse result = - new com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse(this); + com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse result = new com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse result) { + private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse result) { if (firewallPoliciesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { firewallPolicies_ = java.util.Collections.unmodifiableList(firewallPolicies_); @@ -461,8 +413,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse result) { + private void buildPartial0(com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -473,39 +424,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse) { - return mergeFrom((com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse) other); + return mergeFrom((com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse)other); } else { super.mergeFrom(other); return this; @@ -513,9 +463,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse other) { - if (other - == com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse.getDefaultInstance()) return this; if (firewallPoliciesBuilder_ == null) { if (!other.firewallPolicies_.isEmpty()) { if (firewallPolicies_.isEmpty()) { @@ -534,10 +482,9 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.ListFirewallPoliciesR firewallPoliciesBuilder_ = null; firewallPolicies_ = other.firewallPolicies_; bitField0_ = (bitField0_ & ~0x00000001); - firewallPoliciesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFirewallPoliciesFieldBuilder() - : null; + firewallPoliciesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFirewallPoliciesFieldBuilder() : null; } else { firewallPoliciesBuilder_.addAllMessages(other.firewallPolicies_); } @@ -574,33 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.recaptchaenterprise.v1.FirewallPolicy m = - input.readMessage( - com.google.recaptchaenterprise.v1.FirewallPolicy.parser(), - extensionRegistry); - if (firewallPoliciesBuilder_ == null) { - ensureFirewallPoliciesIsMutable(); - firewallPolicies_.add(m); - } else { - firewallPoliciesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.recaptchaenterprise.v1.FirewallPolicy m = + input.readMessage( + com.google.recaptchaenterprise.v1.FirewallPolicy.parser(), + extensionRegistry); + if (firewallPoliciesBuilder_ == null) { + ensureFirewallPoliciesIsMutable(); + firewallPolicies_.add(m); + } else { + firewallPoliciesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -610,39 +554,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List firewallPolicies_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFirewallPoliciesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - firewallPolicies_ = - new java.util.ArrayList( - firewallPolicies_); + firewallPolicies_ = new java.util.ArrayList(firewallPolicies_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicy, - com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, - com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> - firewallPoliciesBuilder_; + com.google.recaptchaenterprise.v1.FirewallPolicy, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> firewallPoliciesBuilder_; /** - * - * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ - public java.util.List - getFirewallPoliciesList() { + public java.util.List getFirewallPoliciesList() { if (firewallPoliciesBuilder_ == null) { return java.util.Collections.unmodifiableList(firewallPolicies_); } else { @@ -650,14 +583,11 @@ private void ensureFirewallPoliciesIsMutable() { } } /** - * - * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ public int getFirewallPoliciesCount() { if (firewallPoliciesBuilder_ == null) { @@ -667,14 +597,11 @@ public int getFirewallPoliciesCount() { } } /** - * - * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ public com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicies(int index) { if (firewallPoliciesBuilder_ == null) { @@ -684,14 +611,11 @@ public com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicies(int } } /** - * - * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ public Builder setFirewallPolicies( int index, com.google.recaptchaenterprise.v1.FirewallPolicy value) { @@ -708,14 +632,11 @@ public Builder setFirewallPolicies( return this; } /** - * - * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ public Builder setFirewallPolicies( int index, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder builderForValue) { @@ -729,14 +650,11 @@ public Builder setFirewallPolicies( return this; } /** - * - * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ public Builder addFirewallPolicies(com.google.recaptchaenterprise.v1.FirewallPolicy value) { if (firewallPoliciesBuilder_ == null) { @@ -752,14 +670,11 @@ public Builder addFirewallPolicies(com.google.recaptchaenterprise.v1.FirewallPol return this; } /** - * - * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ public Builder addFirewallPolicies( int index, com.google.recaptchaenterprise.v1.FirewallPolicy value) { @@ -776,14 +691,11 @@ public Builder addFirewallPolicies( return this; } /** - * - * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ public Builder addFirewallPolicies( com.google.recaptchaenterprise.v1.FirewallPolicy.Builder builderForValue) { @@ -797,14 +709,11 @@ public Builder addFirewallPolicies( return this; } /** - * - * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ public Builder addFirewallPolicies( int index, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder builderForValue) { @@ -818,20 +727,18 @@ public Builder addFirewallPolicies( return this; } /** - * - * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ public Builder addAllFirewallPolicies( java.lang.Iterable values) { if (firewallPoliciesBuilder_ == null) { ensureFirewallPoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, firewallPolicies_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, firewallPolicies_); onChanged(); } else { firewallPoliciesBuilder_.addAllMessages(values); @@ -839,14 +746,11 @@ public Builder addAllFirewallPolicies( return this; } /** - * - * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ public Builder clearFirewallPolicies() { if (firewallPoliciesBuilder_ == null) { @@ -859,14 +763,11 @@ public Builder clearFirewallPolicies() { return this; } /** - * - * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ public Builder removeFirewallPolicies(int index) { if (firewallPoliciesBuilder_ == null) { @@ -879,49 +780,39 @@ public Builder removeFirewallPolicies(int index) { return this; } /** - * - * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ public com.google.recaptchaenterprise.v1.FirewallPolicy.Builder getFirewallPoliciesBuilder( int index) { return getFirewallPoliciesFieldBuilder().getBuilder(index); } /** - * - * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ public com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPoliciesOrBuilder( int index) { if (firewallPoliciesBuilder_ == null) { - return firewallPolicies_.get(index); - } else { + return firewallPolicies_.get(index); } else { return firewallPoliciesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ - public java.util.List - getFirewallPoliciesOrBuilderList() { + public java.util.List + getFirewallPoliciesOrBuilderList() { if (firewallPoliciesBuilder_ != null) { return firewallPoliciesBuilder_.getMessageOrBuilderList(); } else { @@ -929,60 +820,45 @@ public com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPoli } } /** - * - * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ public com.google.recaptchaenterprise.v1.FirewallPolicy.Builder addFirewallPoliciesBuilder() { - return getFirewallPoliciesFieldBuilder() - .addBuilder(com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance()); + return getFirewallPoliciesFieldBuilder().addBuilder( + com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance()); } /** - * - * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ public com.google.recaptchaenterprise.v1.FirewallPolicy.Builder addFirewallPoliciesBuilder( int index) { - return getFirewallPoliciesFieldBuilder() - .addBuilder(index, com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance()); + return getFirewallPoliciesFieldBuilder().addBuilder( + index, com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance()); } /** - * - * *
      * Policy details.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ - public java.util.List - getFirewallPoliciesBuilderList() { + public java.util.List + getFirewallPoliciesBuilderList() { return getFirewallPoliciesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicy, - com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, - com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> + com.google.recaptchaenterprise.v1.FirewallPolicy, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> getFirewallPoliciesFieldBuilder() { if (firewallPoliciesBuilder_ == null) { - firewallPoliciesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicy, - com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, - com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder>( + firewallPoliciesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1.FirewallPolicy, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder>( firewallPolicies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -994,21 +870,19 @@ public com.google.recaptchaenterprise.v1.FirewallPolicy.Builder addFirewallPolic private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results. It is set to empty if no
      * policies remain in results.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1017,22 +891,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results. It is set to empty if no
      * policies remain in results.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1040,37 +913,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results. It is set to empty if no
      * policies remain in results.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results. It is set to empty if no
      * policies remain in results.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1080,31 +946,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * Token to retrieve the next page of results. It is set to empty if no
      * policies remain in results.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1114,43 +976,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesResponse) - private static final com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse(); } - public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFirewallPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFirewallPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1162,8 +1022,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.ListFirewallPoliciesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponseOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponseOrBuilder.java similarity index 62% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponseOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponseOrBuilder.java index c2e7b089f8a1..7ca25e8dd98d 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponseOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListFirewallPoliciesResponseOrBuilder.java @@ -1,109 +1,75 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface ListFirewallPoliciesResponseOrBuilder - extends +public interface ListFirewallPoliciesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Policy details.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ - java.util.List getFirewallPoliciesList(); + java.util.List + getFirewallPoliciesList(); /** - * - * *
    * Policy details.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicies(int index); /** - * - * *
    * Policy details.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ int getFirewallPoliciesCount(); /** - * - * *
    * Policy details.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ - java.util.List + java.util.List getFirewallPoliciesOrBuilderList(); /** - * - * *
    * Policy details.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policies = 1; */ - com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPoliciesOrBuilder(int index); + com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPoliciesOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results. It is set to empty if no
    * policies remain in results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results. It is set to empty if no
    * policies remain in results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequest.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequest.java similarity index 68% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequest.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequest.java index 9bfe19764cc9..dcbbae12fcd3 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequest.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * The list keys request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListKeysRequest} */ -public final class ListKeysRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListKeysRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.ListKeysRequest) ListKeysRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListKeysRequest.newBuilder() to construct. private ListKeysRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListKeysRequest() { parent_ = ""; pageToken_ = ""; @@ -44,41 +26,34 @@ private ListKeysRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListKeysRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListKeysRequest.class, - com.google.recaptchaenterprise.v1.ListKeysRequest.Builder.class); + com.google.recaptchaenterprise.v1.ListKeysRequest.class, com.google.recaptchaenterprise.v1.ListKeysRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The name of the project that contains the keys that will be
    * listed, in the format `projects/{project}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -87,32 +62,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The name of the project that contains the keys that will be
    * listed, in the format `projects/{project}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -123,15 +96,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of keys to return. Default is 10. Max limit is
    * 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -140,19 +110,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. The next_page_token value returned from a previous.
    * ListKeysRequest, if any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -161,30 +127,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. The next_page_token value returned from a previous.
    * ListKeysRequest, if any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -193,7 +159,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +170,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -228,7 +194,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -241,17 +208,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.ListKeysRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.ListKeysRequest other = - (com.google.recaptchaenterprise.v1.ListKeysRequest) obj; + com.google.recaptchaenterprise.v1.ListKeysRequest other = (com.google.recaptchaenterprise.v1.ListKeysRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -275,135 +244,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.ListKeysRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ListKeysRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListKeysRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ListKeysRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListKeysRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ListKeysRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.ListKeysRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListKeysRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ListKeysRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListKeysRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListKeysRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.ListKeysRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListKeysRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ListKeysRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.ListKeysRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The list keys request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListKeysRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.ListKeysRequest) com.google.recaptchaenterprise.v1.ListKeysRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListKeysRequest.class, - com.google.recaptchaenterprise.v1.ListKeysRequest.Builder.class); + com.google.recaptchaenterprise.v1.ListKeysRequest.class, com.google.recaptchaenterprise.v1.ListKeysRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.ListKeysRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -415,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor; } @java.lang.Override @@ -436,11 +401,8 @@ public com.google.recaptchaenterprise.v1.ListKeysRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.ListKeysRequest buildPartial() { - com.google.recaptchaenterprise.v1.ListKeysRequest result = - new com.google.recaptchaenterprise.v1.ListKeysRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.ListKeysRequest result = new com.google.recaptchaenterprise.v1.ListKeysRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -462,39 +424,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.ListKeysRequest res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.ListKeysRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.ListKeysRequest) other); + return mergeFrom((com.google.recaptchaenterprise.v1.ListKeysRequest)other); } else { super.mergeFrom(other); return this; @@ -502,8 +463,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.ListKeysRequest other) { - if (other == com.google.recaptchaenterprise.v1.ListKeysRequest.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.ListKeysRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -543,31 +503,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -577,28 +533,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the project that contains the keys that will be
      * listed, in the format `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -607,24 +558,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the project that contains the keys that will be
      * listed, in the format `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -632,41 +580,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the project that contains the keys that will be
      * listed, in the format `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the project that contains the keys that will be
      * listed, in the format `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -676,24 +613,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The name of the project that contains the keys that will be
      * listed, in the format `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -701,17 +632,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of keys to return. Default is 10. Max limit is
      * 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -719,15 +647,12 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of keys to return. Default is 10. Max limit is
      * 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -739,15 +664,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of keys to return. Default is 10. Max limit is
      * 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -759,21 +681,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. The next_page_token value returned from a previous.
      * ListKeysRequest, if any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -782,22 +702,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. The next_page_token value returned from a previous.
      * ListKeysRequest, if any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -805,37 +724,30 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. The next_page_token value returned from a previous.
      * ListKeysRequest, if any.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. The next_page_token value returned from a previous.
      * ListKeysRequest, if any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -845,31 +757,27 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. The next_page_token value returned from a previous.
      * ListKeysRequest, if any.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -879,12 +787,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.ListKeysRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.ListKeysRequest) private static final com.google.recaptchaenterprise.v1.ListKeysRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.ListKeysRequest(); } @@ -893,27 +801,27 @@ public static com.google.recaptchaenterprise.v1.ListKeysRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListKeysRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListKeysRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -928,4 +836,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.ListKeysRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequestOrBuilder.java similarity index 58% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequestOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequestOrBuilder.java index 30aab33fee78..55bb9ed081bc 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequestOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysRequestOrBuilder.java @@ -1,97 +1,64 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface ListKeysRequestOrBuilder - extends +public interface ListKeysRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.ListKeysRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the project that contains the keys that will be
    * listed, in the format `projects/{project}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The name of the project that contains the keys that will be
    * listed, in the format `projects/{project}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The maximum number of keys to return. Default is 10. Max limit is
    * 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. The next_page_token value returned from a previous.
    * ListKeysRequest, if any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. The next_page_token value returned from a previous.
    * ListKeysRequest, if any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponse.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponse.java similarity index 71% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponse.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponse.java index 4bcd01099962..9c4e32352abb 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponse.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * Response to request to list keys in a project.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListKeysResponse} */ -public final class ListKeysResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListKeysResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.ListKeysResponse) ListKeysResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListKeysResponse.newBuilder() to construct. private ListKeysResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListKeysResponse() { keys_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListKeysResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListKeysResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListKeysResponse.class, - com.google.recaptchaenterprise.v1.ListKeysResponse.Builder.class); + com.google.recaptchaenterprise.v1.ListKeysResponse.class, com.google.recaptchaenterprise.v1.ListKeysResponse.Builder.class); } public static final int KEYS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List keys_; /** - * - * *
    * Key details.
    * 
@@ -81,8 +59,6 @@ public java.util.List getKeysList() { return keys_; } /** - * - * *
    * Key details.
    * 
@@ -90,13 +66,11 @@ public java.util.List getKeysList() { * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ @java.lang.Override - public java.util.List + public java.util.List getKeysOrBuilderList() { return keys_; } /** - * - * *
    * Key details.
    * 
@@ -108,8 +82,6 @@ public int getKeysCount() { return keys_.size(); } /** - * - * *
    * Key details.
    * 
@@ -121,8 +93,6 @@ public com.google.recaptchaenterprise.v1.Key getKeys(int index) { return keys_.get(index); } /** - * - * *
    * Key details.
    * 
@@ -130,24 +100,21 @@ public com.google.recaptchaenterprise.v1.Key getKeys(int index) { * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeysOrBuilder(int index) { + public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeysOrBuilder( + int index) { return keys_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * Token to retrieve the next page of results. It is set to empty if no keys
    * remain in results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -156,30 +123,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results. It is set to empty if no keys
    * remain in results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -188,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +166,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < keys_.size(); i++) { output.writeMessage(1, keys_.get(i)); } @@ -217,7 +184,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < keys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, keys_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, keys_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -230,16 +198,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.ListKeysResponse)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.ListKeysResponse other = - (com.google.recaptchaenterprise.v1.ListKeysResponse) obj; + com.google.recaptchaenterprise.v1.ListKeysResponse other = (com.google.recaptchaenterprise.v1.ListKeysResponse) obj; - if (!getKeysList().equals(other.getKeysList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getKeysList() + .equals(other.getKeysList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,135 +232,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.ListKeysResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ListKeysResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListKeysResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ListKeysResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListKeysResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ListKeysResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.ListKeysResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListKeysResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ListKeysResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListKeysResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListKeysResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.ListKeysResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListKeysResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ListKeysResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.ListKeysResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response to request to list keys in a project.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListKeysResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.ListKeysResponse) com.google.recaptchaenterprise.v1.ListKeysResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListKeysResponse.class, - com.google.recaptchaenterprise.v1.ListKeysResponse.Builder.class); + com.google.recaptchaenterprise.v1.ListKeysResponse.class, com.google.recaptchaenterprise.v1.ListKeysResponse.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.ListKeysResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -408,9 +373,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor; } @java.lang.Override @@ -429,18 +394,14 @@ public com.google.recaptchaenterprise.v1.ListKeysResponse build() { @java.lang.Override public com.google.recaptchaenterprise.v1.ListKeysResponse buildPartial() { - com.google.recaptchaenterprise.v1.ListKeysResponse result = - new com.google.recaptchaenterprise.v1.ListKeysResponse(this); + com.google.recaptchaenterprise.v1.ListKeysResponse result = new com.google.recaptchaenterprise.v1.ListKeysResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.recaptchaenterprise.v1.ListKeysResponse result) { + private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.ListKeysResponse result) { if (keysBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { keys_ = java.util.Collections.unmodifiableList(keys_); @@ -463,39 +424,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.ListKeysResponse re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.ListKeysResponse) { - return mergeFrom((com.google.recaptchaenterprise.v1.ListKeysResponse) other); + return mergeFrom((com.google.recaptchaenterprise.v1.ListKeysResponse)other); } else { super.mergeFrom(other); return this; @@ -503,8 +463,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.ListKeysResponse other) { - if (other == com.google.recaptchaenterprise.v1.ListKeysResponse.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.ListKeysResponse.getDefaultInstance()) return this; if (keysBuilder_ == null) { if (!other.keys_.isEmpty()) { if (keys_.isEmpty()) { @@ -523,10 +482,9 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.ListKeysResponse othe keysBuilder_ = null; keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000001); - keysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getKeysFieldBuilder() - : null; + keysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getKeysFieldBuilder() : null; } else { keysBuilder_.addAllMessages(other.keys_); } @@ -563,32 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.recaptchaenterprise.v1.Key m = - input.readMessage( - com.google.recaptchaenterprise.v1.Key.parser(), extensionRegistry); - if (keysBuilder_ == null) { - ensureKeysIsMutable(); - keys_.add(m); - } else { - keysBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.recaptchaenterprise.v1.Key m = + input.readMessage( + com.google.recaptchaenterprise.v1.Key.parser(), + extensionRegistry); + if (keysBuilder_ == null) { + ensureKeysIsMutable(); + keys_.add(m); + } else { + keysBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -598,28 +554,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List keys_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureKeysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { keys_ = new java.util.ArrayList(keys_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.Key, - com.google.recaptchaenterprise.v1.Key.Builder, - com.google.recaptchaenterprise.v1.KeyOrBuilder> - keysBuilder_; + com.google.recaptchaenterprise.v1.Key, com.google.recaptchaenterprise.v1.Key.Builder, com.google.recaptchaenterprise.v1.KeyOrBuilder> keysBuilder_; /** - * - * *
      * Key details.
      * 
@@ -634,8 +583,6 @@ public java.util.List getKeysList() { } } /** - * - * *
      * Key details.
      * 
@@ -650,8 +597,6 @@ public int getKeysCount() { } } /** - * - * *
      * Key details.
      * 
@@ -666,15 +611,14 @@ public com.google.recaptchaenterprise.v1.Key getKeys(int index) { } } /** - * - * *
      * Key details.
      * 
* * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ - public Builder setKeys(int index, com.google.recaptchaenterprise.v1.Key value) { + public Builder setKeys( + int index, com.google.recaptchaenterprise.v1.Key value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -688,8 +632,6 @@ public Builder setKeys(int index, com.google.recaptchaenterprise.v1.Key value) { return this; } /** - * - * *
      * Key details.
      * 
@@ -708,8 +650,6 @@ public Builder setKeys( return this; } /** - * - * *
      * Key details.
      * 
@@ -730,15 +670,14 @@ public Builder addKeys(com.google.recaptchaenterprise.v1.Key value) { return this; } /** - * - * *
      * Key details.
      * 
* * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ - public Builder addKeys(int index, com.google.recaptchaenterprise.v1.Key value) { + public Builder addKeys( + int index, com.google.recaptchaenterprise.v1.Key value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -752,15 +691,14 @@ public Builder addKeys(int index, com.google.recaptchaenterprise.v1.Key value) { return this; } /** - * - * *
      * Key details.
      * 
* * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ - public Builder addKeys(com.google.recaptchaenterprise.v1.Key.Builder builderForValue) { + public Builder addKeys( + com.google.recaptchaenterprise.v1.Key.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.add(builderForValue.build()); @@ -771,8 +709,6 @@ public Builder addKeys(com.google.recaptchaenterprise.v1.Key.Builder builderForV return this; } /** - * - * *
      * Key details.
      * 
@@ -791,8 +727,6 @@ public Builder addKeys( return this; } /** - * - * *
      * Key details.
      * 
@@ -803,7 +737,8 @@ public Builder addAllKeys( java.lang.Iterable values) { if (keysBuilder_ == null) { ensureKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, keys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, keys_); onChanged(); } else { keysBuilder_.addAllMessages(values); @@ -811,8 +746,6 @@ public Builder addAllKeys( return this; } /** - * - * *
      * Key details.
      * 
@@ -830,8 +763,6 @@ public Builder clearKeys() { return this; } /** - * - * *
      * Key details.
      * 
@@ -849,44 +780,39 @@ public Builder removeKeys(int index) { return this; } /** - * - * *
      * Key details.
      * 
* * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ - public com.google.recaptchaenterprise.v1.Key.Builder getKeysBuilder(int index) { + public com.google.recaptchaenterprise.v1.Key.Builder getKeysBuilder( + int index) { return getKeysFieldBuilder().getBuilder(index); } /** - * - * *
      * Key details.
      * 
* * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ - public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeysOrBuilder(int index) { + public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeysOrBuilder( + int index) { if (keysBuilder_ == null) { - return keys_.get(index); - } else { + return keys_.get(index); } else { return keysBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Key details.
      * 
* * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ - public java.util.List - getKeysOrBuilderList() { + public java.util.List + getKeysOrBuilderList() { if (keysBuilder_ != null) { return keysBuilder_.getMessageOrBuilderList(); } else { @@ -894,8 +820,6 @@ public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeysOrBuilder(int index } } /** - * - * *
      * Key details.
      * 
@@ -903,47 +827,42 @@ public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeysOrBuilder(int index * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ public com.google.recaptchaenterprise.v1.Key.Builder addKeysBuilder() { - return getKeysFieldBuilder() - .addBuilder(com.google.recaptchaenterprise.v1.Key.getDefaultInstance()); + return getKeysFieldBuilder().addBuilder( + com.google.recaptchaenterprise.v1.Key.getDefaultInstance()); } /** - * - * *
      * Key details.
      * 
* * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ - public com.google.recaptchaenterprise.v1.Key.Builder addKeysBuilder(int index) { - return getKeysFieldBuilder() - .addBuilder(index, com.google.recaptchaenterprise.v1.Key.getDefaultInstance()); + public com.google.recaptchaenterprise.v1.Key.Builder addKeysBuilder( + int index) { + return getKeysFieldBuilder().addBuilder( + index, com.google.recaptchaenterprise.v1.Key.getDefaultInstance()); } /** - * - * *
      * Key details.
      * 
* * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ - public java.util.List getKeysBuilderList() { + public java.util.List + getKeysBuilderList() { return getKeysFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.Key, - com.google.recaptchaenterprise.v1.Key.Builder, - com.google.recaptchaenterprise.v1.KeyOrBuilder> + com.google.recaptchaenterprise.v1.Key, com.google.recaptchaenterprise.v1.Key.Builder, com.google.recaptchaenterprise.v1.KeyOrBuilder> getKeysFieldBuilder() { if (keysBuilder_ == null) { - keysBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.Key, - com.google.recaptchaenterprise.v1.Key.Builder, - com.google.recaptchaenterprise.v1.KeyOrBuilder>( - keys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + keysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1.Key, com.google.recaptchaenterprise.v1.Key.Builder, com.google.recaptchaenterprise.v1.KeyOrBuilder>( + keys_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); keys_ = null; } return keysBuilder_; @@ -951,21 +870,19 @@ public java.util.List getKeysBuil private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results. It is set to empty if no keys
      * remain in results.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -974,22 +891,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results. It is set to empty if no keys
      * remain in results.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -997,37 +913,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results. It is set to empty if no keys
      * remain in results.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results. It is set to empty if no keys
      * remain in results.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1037,31 +946,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * Token to retrieve the next page of results. It is set to empty if no keys
      * remain in results.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1071,12 +976,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.ListKeysResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.ListKeysResponse) private static final com.google.recaptchaenterprise.v1.ListKeysResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.ListKeysResponse(); } @@ -1085,27 +990,27 @@ public static com.google.recaptchaenterprise.v1.ListKeysResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListKeysResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListKeysResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1120,4 +1025,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.ListKeysResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponseOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponseOrBuilder.java similarity index 65% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponseOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponseOrBuilder.java index 6d404811d00f..a4f8952c8f3d 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponseOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListKeysResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface ListKeysResponseOrBuilder - extends +public interface ListKeysResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.ListKeysResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Key details.
    * 
* * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ - java.util.List getKeysList(); + java.util.List + getKeysList(); /** - * - * *
    * Key details.
    * 
@@ -44,8 +25,6 @@ public interface ListKeysResponseOrBuilder */ com.google.recaptchaenterprise.v1.Key getKeys(int index); /** - * - * *
    * Key details.
    * 
@@ -54,50 +33,43 @@ public interface ListKeysResponseOrBuilder */ int getKeysCount(); /** - * - * *
    * Key details.
    * 
* * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ - java.util.List getKeysOrBuilderList(); + java.util.List + getKeysOrBuilderList(); /** - * - * *
    * Key details.
    * 
* * repeated .google.cloud.recaptchaenterprise.v1.Key keys = 1; */ - com.google.recaptchaenterprise.v1.KeyOrBuilder getKeysOrBuilder(int index); + com.google.recaptchaenterprise.v1.KeyOrBuilder getKeysOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results. It is set to empty if no keys
    * remain in results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results. It is set to empty if no keys
    * remain in results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequest.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequest.java similarity index 61% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequest.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequest.java index a9c462c412ad..a8ceab13a308 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequest.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequest.java @@ -1,45 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * The request message to list memberships in a related account group.
  * 
* - * Protobuf type {@code - * google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest} + * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest} */ -public final class ListRelatedAccountGroupMembershipsRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListRelatedAccountGroupMembershipsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest) ListRelatedAccountGroupMembershipsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListRelatedAccountGroupMembershipsRequest.newBuilder() to construct. - private ListRelatedAccountGroupMembershipsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListRelatedAccountGroupMembershipsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListRelatedAccountGroupMembershipsRequest() { parent_ = ""; pageToken_ = ""; @@ -47,42 +26,34 @@ private ListRelatedAccountGroupMembershipsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListRelatedAccountGroupMembershipsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.class, - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.Builder - .class); + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.class, com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The resource name for the related account group in the format
    * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -91,32 +62,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The resource name for the related account group in the format
    * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -127,8 +96,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of accounts to return. The service might
    * return fewer than this value. If unspecified, at most 50 accounts are
@@ -136,7 +103,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -145,12 +111,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. A page token, received from a previous
    * `ListRelatedAccountGroupMemberships` call.
@@ -161,7 +124,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -170,15 +132,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. A page token, received from a previous
    * `ListRelatedAccountGroupMemberships` call.
@@ -189,15 +150,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -206,7 +168,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,7 +179,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -241,7 +203,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -254,18 +217,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest)) { + if (!(obj instanceof com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest other = - (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest) obj; + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest other = (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -288,146 +252,132 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message to list memberships in a related account group.
    * 
* - * Protobuf type {@code - * google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest} + * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest) com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.class, - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.Builder - .class); + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.class, com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.Builder.class); } - // Construct using - // com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.newBuilder() - private Builder() {} + // Construct using com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -439,22 +389,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest - getDefaultInstanceForType() { - return com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest - .getDefaultInstance(); + public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.getDefaultInstance(); } @java.lang.Override public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest build() { - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest result = - buildPartial(); + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -462,19 +409,14 @@ public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsReque } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest - buildPartial() { - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest result = - new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest buildPartial() { + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest result = new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest result) { + private void buildPartial0(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -491,52 +433,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest) { - return mergeFrom( - (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest) other); + if (other instanceof com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest) { + return mergeFrom((com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest other) { - if (other - == com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest other) { + if (other == com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -576,31 +512,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -610,28 +542,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name for the related account group in the format
      * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -640,24 +567,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name for the related account group in the format
      * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -665,41 +589,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name for the related account group in the format
      * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name for the related account group in the format
      * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -709,24 +622,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The resource name for the related account group in the format
      * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -734,10 +641,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of accounts to return. The service might
      * return fewer than this value. If unspecified, at most 50 accounts are
@@ -745,7 +650,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -753,8 +657,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of accounts to return. The service might
      * return fewer than this value. If unspecified, at most 50 accounts are
@@ -762,7 +664,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -774,8 +675,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of accounts to return. The service might
      * return fewer than this value. If unspecified, at most 50 accounts are
@@ -783,7 +682,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -795,8 +693,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A page token, received from a previous
      * `ListRelatedAccountGroupMemberships` call.
@@ -807,13 +703,13 @@ 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_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -822,8 +718,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A page token, received from a previous
      * `ListRelatedAccountGroupMemberships` call.
@@ -834,14 +728,15 @@ 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() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -849,8 +744,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A page token, received from a previous
      * `ListRelatedAccountGroupMemberships` call.
@@ -861,22 +754,18 @@ 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) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. A page token, received from a previous
      * `ListRelatedAccountGroupMemberships` call.
@@ -887,7 +776,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -897,8 +785,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. A page token, received from a previous
      * `ListRelatedAccountGroupMemberships` call.
@@ -909,23 +795,21 @@ 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) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -935,46 +819,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest) - private static final com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest(); + DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest(); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRelatedAccountGroupMembershipsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRelatedAccountGroupMembershipsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -986,8 +865,9 @@ public com.google.protobuf.Parser get } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequestOrBuilder.java similarity index 67% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequestOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequestOrBuilder.java index 49338194631c..5f9528109c43 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequestOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface ListRelatedAccountGroupMembershipsRequestOrBuilder - extends +public interface ListRelatedAccountGroupMembershipsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name for the related account group in the format
    * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The resource name for the related account group in the format
    * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The maximum number of accounts to return. The service might
    * return fewer than this value. If unspecified, at most 50 accounts are
@@ -64,14 +37,11 @@ public interface ListRelatedAccountGroupMembershipsRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A page token, received from a previous
    * `ListRelatedAccountGroupMemberships` call.
@@ -82,13 +52,10 @@ public interface ListRelatedAccountGroupMembershipsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A page token, received from a previous
    * `ListRelatedAccountGroupMemberships` call.
@@ -99,8 +66,8 @@ public interface ListRelatedAccountGroupMembershipsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponse.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponse.java similarity index 57% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponse.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponse.java index c15c9d0a398f..fd94f6da6c8a 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponse.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponse.java @@ -1,45 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * The response to a `ListRelatedAccountGroupMemberships` call.
  * 
* - * Protobuf type {@code - * google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse} + * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse} */ -public final class ListRelatedAccountGroupMembershipsResponse - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListRelatedAccountGroupMembershipsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse) ListRelatedAccountGroupMembershipsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListRelatedAccountGroupMembershipsResponse.newBuilder() to construct. - private ListRelatedAccountGroupMembershipsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListRelatedAccountGroupMembershipsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListRelatedAccountGroupMembershipsResponse() { relatedAccountGroupMemberships_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -47,126 +26,95 @@ private ListRelatedAccountGroupMembershipsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListRelatedAccountGroupMembershipsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.class, - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.Builder - .class); + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.class, com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.Builder.class); } public static final int RELATED_ACCOUNT_GROUP_MEMBERSHIPS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List - relatedAccountGroupMemberships_; + private java.util.List relatedAccountGroupMemberships_; /** - * - * *
    * The memberships listed by the query.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ @java.lang.Override - public java.util.List - getRelatedAccountGroupMembershipsList() { + public java.util.List getRelatedAccountGroupMembershipsList() { return relatedAccountGroupMemberships_; } /** - * - * *
    * The memberships listed by the query.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder> + public java.util.List getRelatedAccountGroupMembershipsOrBuilderList() { return relatedAccountGroupMemberships_; } /** - * - * *
    * The memberships listed by the query.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ @java.lang.Override public int getRelatedAccountGroupMembershipsCount() { return relatedAccountGroupMemberships_.size(); } /** - * - * *
    * The memberships listed by the query.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership - getRelatedAccountGroupMemberships(int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership getRelatedAccountGroupMemberships(int index) { return relatedAccountGroupMemberships_.get(index); } /** - * - * *
    * The memberships listed by the query.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder - getRelatedAccountGroupMembershipsOrBuilder(int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder getRelatedAccountGroupMembershipsOrBuilder( + int index) { return relatedAccountGroupMemberships_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -175,30 +123,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -207,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,7 +166,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < relatedAccountGroupMemberships_.size(); i++) { output.writeMessage(1, relatedAccountGroupMemberships_.get(i)); } @@ -236,9 +184,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < relatedAccountGroupMemberships_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, relatedAccountGroupMemberships_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, relatedAccountGroupMemberships_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -251,18 +198,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse)) { + if (!(obj instanceof com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse other = - (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse) obj; + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse other = (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse) obj; if (!getRelatedAccountGroupMembershipsList() .equals(other.getRelatedAccountGroupMembershipsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,146 +231,132 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response to a `ListRelatedAccountGroupMemberships` call.
    * 
* - * Protobuf type {@code - * google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse} + * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse) com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.class, - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.Builder - .class); + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.class, com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.Builder.class); } - // Construct using - // com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.newBuilder() - private Builder() {} + // Construct using com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -441,22 +373,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse - getDefaultInstanceForType() { - return com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse - .getDefaultInstance(); + public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.getDefaultInstance(); } @java.lang.Override public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse build() { - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse result = - buildPartial(); + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -464,24 +393,18 @@ public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsRespo } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse - buildPartial() { - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse result = - new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse(this); + public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse buildPartial() { + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse result = new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse result) { + private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse result) { if (relatedAccountGroupMembershipsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - relatedAccountGroupMemberships_ = - java.util.Collections.unmodifiableList(relatedAccountGroupMemberships_); + relatedAccountGroupMemberships_ = java.util.Collections.unmodifiableList(relatedAccountGroupMemberships_); bitField0_ = (bitField0_ & ~0x00000001); } result.relatedAccountGroupMemberships_ = relatedAccountGroupMemberships_; @@ -490,8 +413,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse result) { + private void buildPartial0(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -502,52 +424,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse) { - return mergeFrom( - (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse) other); + if (other instanceof com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse) { + return mergeFrom((com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse other) { - if (other - == com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse other) { + if (other == com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse.getDefaultInstance()) return this; if (relatedAccountGroupMembershipsBuilder_ == null) { if (!other.relatedAccountGroupMemberships_.isEmpty()) { if (relatedAccountGroupMemberships_.isEmpty()) { @@ -566,13 +482,11 @@ public Builder mergeFrom( relatedAccountGroupMembershipsBuilder_ = null; relatedAccountGroupMemberships_ = other.relatedAccountGroupMemberships_; bitField0_ = (bitField0_ & ~0x00000001); - relatedAccountGroupMembershipsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRelatedAccountGroupMembershipsFieldBuilder() - : null; + relatedAccountGroupMembershipsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRelatedAccountGroupMembershipsFieldBuilder() : null; } else { - relatedAccountGroupMembershipsBuilder_.addAllMessages( - other.relatedAccountGroupMemberships_); + relatedAccountGroupMembershipsBuilder_.addAllMessages(other.relatedAccountGroupMemberships_); } } } @@ -607,33 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership m = - input.readMessage( - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.parser(), - extensionRegistry); - if (relatedAccountGroupMembershipsBuilder_ == null) { - ensureRelatedAccountGroupMembershipsIsMutable(); - relatedAccountGroupMemberships_.add(m); - } else { - relatedAccountGroupMembershipsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership m = + input.readMessage( + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.parser(), + extensionRegistry); + if (relatedAccountGroupMembershipsBuilder_ == null) { + ensureRelatedAccountGroupMembershipsIsMutable(); + relatedAccountGroupMemberships_.add(m); + } else { + relatedAccountGroupMembershipsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -643,41 +554,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List - relatedAccountGroupMemberships_ = java.util.Collections.emptyList(); - + private java.util.List relatedAccountGroupMemberships_ = + java.util.Collections.emptyList(); private void ensureRelatedAccountGroupMembershipsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - relatedAccountGroupMemberships_ = - new java.util.ArrayList< - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership>( - relatedAccountGroupMemberships_); + relatedAccountGroupMemberships_ = new java.util.ArrayList(relatedAccountGroupMemberships_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership, - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder, - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder> - relatedAccountGroupMembershipsBuilder_; + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder> relatedAccountGroupMembershipsBuilder_; /** - * - * *
      * The memberships listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - public java.util.List - getRelatedAccountGroupMembershipsList() { + public java.util.List getRelatedAccountGroupMembershipsList() { if (relatedAccountGroupMembershipsBuilder_ == null) { return java.util.Collections.unmodifiableList(relatedAccountGroupMemberships_); } else { @@ -685,15 +583,11 @@ private void ensureRelatedAccountGroupMembershipsIsMutable() { } } /** - * - * *
      * The memberships listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ public int getRelatedAccountGroupMembershipsCount() { if (relatedAccountGroupMembershipsBuilder_ == null) { @@ -703,18 +597,13 @@ public int getRelatedAccountGroupMembershipsCount() { } } /** - * - * *
      * The memberships listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership - getRelatedAccountGroupMemberships(int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership getRelatedAccountGroupMemberships(int index) { if (relatedAccountGroupMembershipsBuilder_ == null) { return relatedAccountGroupMemberships_.get(index); } else { @@ -722,15 +611,11 @@ public int getRelatedAccountGroupMembershipsCount() { } } /** - * - * *
      * The memberships listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ public Builder setRelatedAccountGroupMemberships( int index, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership value) { @@ -747,19 +632,14 @@ public Builder setRelatedAccountGroupMemberships( return this; } /** - * - * *
      * The memberships listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ public Builder setRelatedAccountGroupMemberships( - int index, - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder builderForValue) { + int index, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder builderForValue) { if (relatedAccountGroupMembershipsBuilder_ == null) { ensureRelatedAccountGroupMembershipsIsMutable(); relatedAccountGroupMemberships_.set(index, builderForValue.build()); @@ -770,18 +650,13 @@ public Builder setRelatedAccountGroupMemberships( return this; } /** - * - * *
      * The memberships listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - public Builder addRelatedAccountGroupMemberships( - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership value) { + public Builder addRelatedAccountGroupMemberships(com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership value) { if (relatedAccountGroupMembershipsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -795,15 +670,11 @@ public Builder addRelatedAccountGroupMemberships( return this; } /** - * - * *
      * The memberships listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ public Builder addRelatedAccountGroupMemberships( int index, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership value) { @@ -820,15 +691,11 @@ public Builder addRelatedAccountGroupMemberships( return this; } /** - * - * *
      * The memberships listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ public Builder addRelatedAccountGroupMemberships( com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder builderForValue) { @@ -842,19 +709,14 @@ public Builder addRelatedAccountGroupMemberships( return this; } /** - * - * *
      * The memberships listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ public Builder addRelatedAccountGroupMemberships( - int index, - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder builderForValue) { + int index, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder builderForValue) { if (relatedAccountGroupMembershipsBuilder_ == null) { ensureRelatedAccountGroupMembershipsIsMutable(); relatedAccountGroupMemberships_.add(index, builderForValue.build()); @@ -865,20 +727,14 @@ public Builder addRelatedAccountGroupMemberships( return this; } /** - * - * *
      * The memberships listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ public Builder addAllRelatedAccountGroupMemberships( - java.lang.Iterable< - ? extends com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership> - values) { + java.lang.Iterable values) { if (relatedAccountGroupMembershipsBuilder_ == null) { ensureRelatedAccountGroupMembershipsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -890,15 +746,11 @@ public Builder addAllRelatedAccountGroupMemberships( return this; } /** - * - * *
      * The memberships listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ public Builder clearRelatedAccountGroupMemberships() { if (relatedAccountGroupMembershipsBuilder_ == null) { @@ -911,15 +763,11 @@ public Builder clearRelatedAccountGroupMemberships() { return this; } /** - * - * *
      * The memberships listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ public Builder removeRelatedAccountGroupMemberships(int index) { if (relatedAccountGroupMembershipsBuilder_ == null) { @@ -932,53 +780,39 @@ public Builder removeRelatedAccountGroupMemberships(int index) { return this; } /** - * - * *
      * The memberships listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder - getRelatedAccountGroupMembershipsBuilder(int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder getRelatedAccountGroupMembershipsBuilder( + int index) { return getRelatedAccountGroupMembershipsFieldBuilder().getBuilder(index); } /** - * - * *
      * The memberships listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder - getRelatedAccountGroupMembershipsOrBuilder(int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder getRelatedAccountGroupMembershipsOrBuilder( + int index) { if (relatedAccountGroupMembershipsBuilder_ == null) { - return relatedAccountGroupMemberships_.get(index); - } else { + return relatedAccountGroupMemberships_.get(index); } else { return relatedAccountGroupMembershipsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The memberships listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - public java.util.List< - ? extends com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder> - getRelatedAccountGroupMembershipsOrBuilderList() { + public java.util.List + getRelatedAccountGroupMembershipsOrBuilderList() { if (relatedAccountGroupMembershipsBuilder_ != null) { return relatedAccountGroupMembershipsBuilder_.getMessageOrBuilderList(); } else { @@ -986,67 +820,45 @@ public Builder removeRelatedAccountGroupMemberships(int index) { } } /** - * - * *
      * The memberships listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder - addRelatedAccountGroupMembershipsBuilder() { - return getRelatedAccountGroupMembershipsFieldBuilder() - .addBuilder( - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.getDefaultInstance()); + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder addRelatedAccountGroupMembershipsBuilder() { + return getRelatedAccountGroupMembershipsFieldBuilder().addBuilder( + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.getDefaultInstance()); } /** - * - * *
      * The memberships listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder - addRelatedAccountGroupMembershipsBuilder(int index) { - return getRelatedAccountGroupMembershipsFieldBuilder() - .addBuilder( - index, - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.getDefaultInstance()); + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder addRelatedAccountGroupMembershipsBuilder( + int index) { + return getRelatedAccountGroupMembershipsFieldBuilder().addBuilder( + index, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.getDefaultInstance()); } /** - * - * *
      * The memberships listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - public java.util.List - getRelatedAccountGroupMembershipsBuilderList() { + public java.util.List + getRelatedAccountGroupMembershipsBuilderList() { return getRelatedAccountGroupMembershipsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership, - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder, - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder> + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder> getRelatedAccountGroupMembershipsFieldBuilder() { if (relatedAccountGroupMembershipsBuilder_ == null) { - relatedAccountGroupMembershipsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership, - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder, - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder>( + relatedAccountGroupMembershipsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder>( relatedAccountGroupMemberships_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1058,21 +870,19 @@ public Builder removeRelatedAccountGroupMemberships(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1081,22 +891,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1104,37 +913,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1144,31 +946,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1178,46 +976,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse) - private static final com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse(); + DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse(); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRelatedAccountGroupMembershipsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRelatedAccountGroupMembershipsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1229,8 +1022,9 @@ public com.google.protobuf.Parser ge } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponseOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponseOrBuilder.java similarity index 52% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponseOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponseOrBuilder.java index 08a1c1e0bf38..bb195ea78f06 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponseOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupMembershipsResponseOrBuilder.java @@ -1,117 +1,75 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface ListRelatedAccountGroupMembershipsResponseOrBuilder - extends +public interface ListRelatedAccountGroupMembershipsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The memberships listed by the query.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - java.util.List + java.util.List getRelatedAccountGroupMembershipsList(); /** - * - * *
    * The memberships listed by the query.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership getRelatedAccountGroupMemberships( - int index); + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership getRelatedAccountGroupMemberships(int index); /** - * - * *
    * The memberships listed by the query.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ int getRelatedAccountGroupMembershipsCount(); /** - * - * *
    * The memberships listed by the query.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - java.util.List + java.util.List getRelatedAccountGroupMembershipsOrBuilderList(); /** - * - * *
    * The memberships listed by the query.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder - getRelatedAccountGroupMembershipsOrBuilder(int index); + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder getRelatedAccountGroupMembershipsOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequest.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequest.java similarity index 67% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequest.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequest.java index 8edacb9bbf68..b4bc41aa2006 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequest.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * The request message to list related account groups.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest} */ -public final class ListRelatedAccountGroupsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListRelatedAccountGroupsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest) ListRelatedAccountGroupsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListRelatedAccountGroupsRequest.newBuilder() to construct. - private ListRelatedAccountGroupsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListRelatedAccountGroupsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListRelatedAccountGroupsRequest() { parent_ = ""; pageToken_ = ""; @@ -45,41 +26,34 @@ private ListRelatedAccountGroupsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListRelatedAccountGroupsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.class, - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.Builder.class); + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.class, com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The name of the project to list related account groups from, in
    * the format `projects/{project}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -88,32 +62,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The name of the project to list related account groups from, in
    * the format `projects/{project}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -124,8 +96,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of groups to return. The service might return
    * fewer than this value. If unspecified, at most 50 groups are returned. The
@@ -133,7 +103,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -142,12 +111,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. A page token, received from a previous `ListRelatedAccountGroups`
    * call. Provide this to retrieve the subsequent page.
@@ -158,7 +124,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -167,15 +132,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. A page token, received from a previous `ListRelatedAccountGroups`
    * call. Provide this to retrieve the subsequent page.
@@ -186,15 +150,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -203,7 +168,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -215,7 +179,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -238,7 +203,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -251,17 +217,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest other = - (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest) obj; + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest other = (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,138 +253,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message to list related account groups.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest) com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.class, - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.Builder.class); + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.class, com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.Builder.class); } - // Construct using - // com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.newBuilder() - private Builder() {} + // Construct using com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -428,14 +389,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.getDefaultInstance(); } @@ -450,17 +410,13 @@ public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest build() @java.lang.Override public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest buildPartial() { - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest result = - new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest result = new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest result) { + private void buildPartial0(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -477,50 +433,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest) other); + return mergeFrom((com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest other) { - if (other - == com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest other) { + if (other == com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -560,31 +512,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -594,28 +542,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the project to list related account groups from, in
      * the format `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -624,24 +567,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the project to list related account groups from, in
      * the format `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -649,41 +589,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the project to list related account groups from, in
      * the format `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the project to list related account groups from, in
      * the format `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -693,24 +622,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The name of the project to list related account groups from, in
      * the format `projects/{project}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -718,10 +641,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of groups to return. The service might return
      * fewer than this value. If unspecified, at most 50 groups are returned. The
@@ -729,7 +650,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -737,8 +657,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of groups to return. The service might return
      * fewer than this value. If unspecified, at most 50 groups are returned. The
@@ -746,7 +664,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -758,8 +675,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of groups to return. The service might return
      * fewer than this value. If unspecified, at most 50 groups are returned. The
@@ -767,7 +682,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -779,8 +693,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A page token, received from a previous `ListRelatedAccountGroups`
      * call. Provide this to retrieve the subsequent page.
@@ -791,13 +703,13 @@ 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_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -806,8 +718,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A page token, received from a previous `ListRelatedAccountGroups`
      * call. Provide this to retrieve the subsequent page.
@@ -818,14 +728,15 @@ 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() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -833,8 +744,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A page token, received from a previous `ListRelatedAccountGroups`
      * call. Provide this to retrieve the subsequent page.
@@ -845,22 +754,18 @@ 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) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. A page token, received from a previous `ListRelatedAccountGroups`
      * call. Provide this to retrieve the subsequent page.
@@ -871,7 +776,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -881,8 +785,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. A page token, received from a previous `ListRelatedAccountGroups`
      * call. Provide this to retrieve the subsequent page.
@@ -893,23 +795,21 @@ 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) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -919,43 +819,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest) - private static final com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest(); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRelatedAccountGroupsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRelatedAccountGroupsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -967,8 +865,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequestOrBuilder.java similarity index 65% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequestOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequestOrBuilder.java index e8b5b670a16c..58f0316694d1 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequestOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface ListRelatedAccountGroupsRequestOrBuilder - extends +public interface ListRelatedAccountGroupsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the project to list related account groups from, in
    * the format `projects/{project}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The name of the project to list related account groups from, in
    * the format `projects/{project}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The maximum number of groups to return. The service might return
    * fewer than this value. If unspecified, at most 50 groups are returned. The
@@ -64,14 +37,11 @@ public interface ListRelatedAccountGroupsRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A page token, received from a previous `ListRelatedAccountGroups`
    * call. Provide this to retrieve the subsequent page.
@@ -82,13 +52,10 @@ public interface ListRelatedAccountGroupsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A page token, received from a previous `ListRelatedAccountGroups`
    * call. Provide this to retrieve the subsequent page.
@@ -99,8 +66,8 @@ public interface ListRelatedAccountGroupsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponse.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponse.java similarity index 63% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponse.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponse.java index f1ce933ccd02..b7d31d1c1519 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponse.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponse.java @@ -1,43 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * The response to a `ListRelatedAccountGroups` call.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse} */ -public final class ListRelatedAccountGroupsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListRelatedAccountGroupsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse) ListRelatedAccountGroupsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListRelatedAccountGroupsResponse.newBuilder() to construct. - private ListRelatedAccountGroupsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListRelatedAccountGroupsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListRelatedAccountGroupsResponse() { relatedAccountGroups_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,123 +26,95 @@ private ListRelatedAccountGroupsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListRelatedAccountGroupsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.class, - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.Builder.class); + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.class, com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.Builder.class); } public static final int RELATED_ACCOUNT_GROUPS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List - relatedAccountGroups_; + private java.util.List relatedAccountGroups_; /** - * - * *
    * The groups of related accounts listed by the query.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ @java.lang.Override - public java.util.List - getRelatedAccountGroupsList() { + public java.util.List getRelatedAccountGroupsList() { return relatedAccountGroups_; } /** - * - * *
    * The groups of related accounts listed by the query.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRelatedAccountGroupsOrBuilderList() { return relatedAccountGroups_; } /** - * - * *
    * The groups of related accounts listed by the query.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ @java.lang.Override public int getRelatedAccountGroupsCount() { return relatedAccountGroups_.size(); } /** - * - * *
    * The groups of related accounts listed by the query.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ @java.lang.Override public com.google.recaptchaenterprise.v1.RelatedAccountGroup getRelatedAccountGroups(int index) { return relatedAccountGroups_.get(index); } /** - * - * *
    * The groups of related accounts listed by the query.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.RelatedAccountGroupOrBuilder - getRelatedAccountGroupsOrBuilder(int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupOrBuilder getRelatedAccountGroupsOrBuilder( + int index) { return relatedAccountGroups_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -170,30 +123,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -202,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,7 +166,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < relatedAccountGroups_.size(); i++) { output.writeMessage(1, relatedAccountGroups_.get(i)); } @@ -231,8 +184,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < relatedAccountGroups_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, relatedAccountGroups_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, relatedAccountGroups_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -245,16 +198,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse other = - (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse) obj; + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse other = (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse) obj; - if (!getRelatedAccountGroupsList().equals(other.getRelatedAccountGroupsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getRelatedAccountGroupsList() + .equals(other.getRelatedAccountGroupsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -278,138 +232,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response to a `ListRelatedAccountGroups` call.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse) com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.class, - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.Builder.class); + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.class, com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.Builder.class); } - // Construct using - // com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.newBuilder() - private Builder() {} + // Construct using com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -426,16 +373,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse - getDefaultInstanceForType() { - return com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse - .getDefaultInstance(); + public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.getDefaultInstance(); } @java.lang.Override @@ -449,18 +394,14 @@ public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse build( @java.lang.Override public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse buildPartial() { - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse result = - new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse(this); + com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse result = new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse result) { + private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse result) { if (relatedAccountGroupsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { relatedAccountGroups_ = java.util.Collections.unmodifiableList(relatedAccountGroups_); @@ -472,8 +413,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse result) { + private void buildPartial0(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -484,51 +424,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse) { - return mergeFrom( - (com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse) other); + return mergeFrom((com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse other) { - if (other - == com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse other) { + if (other == com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse.getDefaultInstance()) return this; if (relatedAccountGroupsBuilder_ == null) { if (!other.relatedAccountGroups_.isEmpty()) { if (relatedAccountGroups_.isEmpty()) { @@ -547,10 +482,9 @@ public Builder mergeFrom( relatedAccountGroupsBuilder_ = null; relatedAccountGroups_ = other.relatedAccountGroups_; bitField0_ = (bitField0_ & ~0x00000001); - relatedAccountGroupsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRelatedAccountGroupsFieldBuilder() - : null; + relatedAccountGroupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRelatedAccountGroupsFieldBuilder() : null; } else { relatedAccountGroupsBuilder_.addAllMessages(other.relatedAccountGroups_); } @@ -587,33 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.recaptchaenterprise.v1.RelatedAccountGroup m = - input.readMessage( - com.google.recaptchaenterprise.v1.RelatedAccountGroup.parser(), - extensionRegistry); - if (relatedAccountGroupsBuilder_ == null) { - ensureRelatedAccountGroupsIsMutable(); - relatedAccountGroups_.add(m); - } else { - relatedAccountGroupsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.recaptchaenterprise.v1.RelatedAccountGroup m = + input.readMessage( + com.google.recaptchaenterprise.v1.RelatedAccountGroup.parser(), + extensionRegistry); + if (relatedAccountGroupsBuilder_ == null) { + ensureRelatedAccountGroupsIsMutable(); + relatedAccountGroups_.add(m); + } else { + relatedAccountGroupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -623,40 +554,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List - relatedAccountGroups_ = java.util.Collections.emptyList(); - + private java.util.List relatedAccountGroups_ = + java.util.Collections.emptyList(); private void ensureRelatedAccountGroupsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - relatedAccountGroups_ = - new java.util.ArrayList( - relatedAccountGroups_); + relatedAccountGroups_ = new java.util.ArrayList(relatedAccountGroups_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.RelatedAccountGroup, - com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder, - com.google.recaptchaenterprise.v1.RelatedAccountGroupOrBuilder> - relatedAccountGroupsBuilder_; + com.google.recaptchaenterprise.v1.RelatedAccountGroup, com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder, com.google.recaptchaenterprise.v1.RelatedAccountGroupOrBuilder> relatedAccountGroupsBuilder_; /** - * - * *
      * The groups of related accounts listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ - public java.util.List - getRelatedAccountGroupsList() { + public java.util.List getRelatedAccountGroupsList() { if (relatedAccountGroupsBuilder_ == null) { return java.util.Collections.unmodifiableList(relatedAccountGroups_); } else { @@ -664,15 +583,11 @@ private void ensureRelatedAccountGroupsIsMutable() { } } /** - * - * *
      * The groups of related accounts listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ public int getRelatedAccountGroupsCount() { if (relatedAccountGroupsBuilder_ == null) { @@ -682,18 +597,13 @@ public int getRelatedAccountGroupsCount() { } } /** - * - * *
      * The groups of related accounts listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroup getRelatedAccountGroups( - int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroup getRelatedAccountGroups(int index) { if (relatedAccountGroupsBuilder_ == null) { return relatedAccountGroups_.get(index); } else { @@ -701,15 +611,11 @@ public com.google.recaptchaenterprise.v1.RelatedAccountGroup getRelatedAccountGr } } /** - * - * *
      * The groups of related accounts listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ public Builder setRelatedAccountGroups( int index, com.google.recaptchaenterprise.v1.RelatedAccountGroup value) { @@ -726,15 +632,11 @@ public Builder setRelatedAccountGroups( return this; } /** - * - * *
      * The groups of related accounts listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ public Builder setRelatedAccountGroups( int index, com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder builderForValue) { @@ -748,18 +650,13 @@ public Builder setRelatedAccountGroups( return this; } /** - * - * *
      * The groups of related accounts listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ - public Builder addRelatedAccountGroups( - com.google.recaptchaenterprise.v1.RelatedAccountGroup value) { + public Builder addRelatedAccountGroups(com.google.recaptchaenterprise.v1.RelatedAccountGroup value) { if (relatedAccountGroupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -773,15 +670,11 @@ public Builder addRelatedAccountGroups( return this; } /** - * - * *
      * The groups of related accounts listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ public Builder addRelatedAccountGroups( int index, com.google.recaptchaenterprise.v1.RelatedAccountGroup value) { @@ -798,15 +691,11 @@ public Builder addRelatedAccountGroups( return this; } /** - * - * *
      * The groups of related accounts listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ public Builder addRelatedAccountGroups( com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder builderForValue) { @@ -820,15 +709,11 @@ public Builder addRelatedAccountGroups( return this; } /** - * - * *
      * The groups of related accounts listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ public Builder addRelatedAccountGroups( int index, com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder builderForValue) { @@ -842,22 +727,18 @@ public Builder addRelatedAccountGroups( return this; } /** - * - * *
      * The groups of related accounts listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ public Builder addAllRelatedAccountGroups( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (relatedAccountGroupsBuilder_ == null) { ensureRelatedAccountGroupsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relatedAccountGroups_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, relatedAccountGroups_); onChanged(); } else { relatedAccountGroupsBuilder_.addAllMessages(values); @@ -865,15 +746,11 @@ public Builder addAllRelatedAccountGroups( return this; } /** - * - * *
      * The groups of related accounts listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ public Builder clearRelatedAccountGroups() { if (relatedAccountGroupsBuilder_ == null) { @@ -886,15 +763,11 @@ public Builder clearRelatedAccountGroups() { return this; } /** - * - * *
      * The groups of related accounts listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ public Builder removeRelatedAccountGroups(int index) { if (relatedAccountGroupsBuilder_ == null) { @@ -907,52 +780,39 @@ public Builder removeRelatedAccountGroups(int index) { return this; } /** - * - * *
      * The groups of related accounts listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder - getRelatedAccountGroupsBuilder(int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder getRelatedAccountGroupsBuilder( + int index) { return getRelatedAccountGroupsFieldBuilder().getBuilder(index); } /** - * - * *
      * The groups of related accounts listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroupOrBuilder - getRelatedAccountGroupsOrBuilder(int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupOrBuilder getRelatedAccountGroupsOrBuilder( + int index) { if (relatedAccountGroupsBuilder_ == null) { - return relatedAccountGroups_.get(index); - } else { + return relatedAccountGroups_.get(index); } else { return relatedAccountGroupsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The groups of related accounts listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ - public java.util.List - getRelatedAccountGroupsOrBuilderList() { + public java.util.List + getRelatedAccountGroupsOrBuilderList() { if (relatedAccountGroupsBuilder_ != null) { return relatedAccountGroupsBuilder_.getMessageOrBuilderList(); } else { @@ -960,65 +820,45 @@ public Builder removeRelatedAccountGroups(int index) { } } /** - * - * *
      * The groups of related accounts listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder - addRelatedAccountGroupsBuilder() { - return getRelatedAccountGroupsFieldBuilder() - .addBuilder(com.google.recaptchaenterprise.v1.RelatedAccountGroup.getDefaultInstance()); + public com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder addRelatedAccountGroupsBuilder() { + return getRelatedAccountGroupsFieldBuilder().addBuilder( + com.google.recaptchaenterprise.v1.RelatedAccountGroup.getDefaultInstance()); } /** - * - * *
      * The groups of related accounts listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder - addRelatedAccountGroupsBuilder(int index) { - return getRelatedAccountGroupsFieldBuilder() - .addBuilder( - index, com.google.recaptchaenterprise.v1.RelatedAccountGroup.getDefaultInstance()); + public com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder addRelatedAccountGroupsBuilder( + int index) { + return getRelatedAccountGroupsFieldBuilder().addBuilder( + index, com.google.recaptchaenterprise.v1.RelatedAccountGroup.getDefaultInstance()); } /** - * - * *
      * The groups of related accounts listed by the query.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ - public java.util.List - getRelatedAccountGroupsBuilderList() { + public java.util.List + getRelatedAccountGroupsBuilderList() { return getRelatedAccountGroupsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.RelatedAccountGroup, - com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder, - com.google.recaptchaenterprise.v1.RelatedAccountGroupOrBuilder> + com.google.recaptchaenterprise.v1.RelatedAccountGroup, com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder, com.google.recaptchaenterprise.v1.RelatedAccountGroupOrBuilder> getRelatedAccountGroupsFieldBuilder() { if (relatedAccountGroupsBuilder_ == null) { - relatedAccountGroupsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.RelatedAccountGroup, - com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder, - com.google.recaptchaenterprise.v1.RelatedAccountGroupOrBuilder>( + relatedAccountGroupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1.RelatedAccountGroup, com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder, com.google.recaptchaenterprise.v1.RelatedAccountGroupOrBuilder>( relatedAccountGroups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1030,21 +870,19 @@ public Builder removeRelatedAccountGroups(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1053,22 +891,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1076,37 +913,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1116,31 +946,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1150,43 +976,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse) - private static final com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse(); } - public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRelatedAccountGroupsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRelatedAccountGroupsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1198,8 +1022,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponseOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponseOrBuilder.java similarity index 55% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponseOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponseOrBuilder.java index c69d3c4a4fbc..0ad0a48373b8 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponseOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ListRelatedAccountGroupsResponseOrBuilder.java @@ -1,116 +1,75 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface ListRelatedAccountGroupsResponseOrBuilder - extends +public interface ListRelatedAccountGroupsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The groups of related accounts listed by the query.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ - java.util.List + java.util.List getRelatedAccountGroupsList(); /** - * - * *
    * The groups of related accounts listed by the query.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ com.google.recaptchaenterprise.v1.RelatedAccountGroup getRelatedAccountGroups(int index); /** - * - * *
    * The groups of related accounts listed by the query.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ int getRelatedAccountGroupsCount(); /** - * - * *
    * The groups of related accounts listed by the query.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ - java.util.List + java.util.List getRelatedAccountGroupsOrBuilderList(); /** - * - * *
    * The groups of related accounts listed by the query.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroup related_account_groups = 1; */ com.google.recaptchaenterprise.v1.RelatedAccountGroupOrBuilder getRelatedAccountGroupsOrBuilder( int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Metrics.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Metrics.java similarity index 76% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Metrics.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Metrics.java index 34aafa4a6b6f..70fc5c125879 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Metrics.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Metrics.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * Metrics for a single Key.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.Metrics} */ -public final class Metrics extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Metrics extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.Metrics) MetricsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Metrics.newBuilder() to construct. private Metrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Metrics() { name_ = ""; scoreMetrics_ = java.util.Collections.emptyList(); @@ -45,39 +27,34 @@ private Metrics() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Metrics(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_Metrics_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Metrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.Metrics.class, - com.google.recaptchaenterprise.v1.Metrics.Builder.class); + com.google.recaptchaenterprise.v1.Metrics.class, com.google.recaptchaenterprise.v1.Metrics.Builder.class); } public static final int NAME_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. The name of the metrics, in the format
    * `projects/{project}/keys/{key}/metrics`.
    * 
* * string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -86,30 +63,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The name of the metrics, in the format
    * `projects/{project}/keys/{key}/metrics`.
    * 
* * string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,14 +97,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * Inclusive start time aligned to a day (UTC).
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -135,14 +109,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Inclusive start time aligned to a day (UTC).
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ @java.lang.Override @@ -150,8 +121,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Inclusive start time aligned to a day (UTC).
    * 
@@ -164,12 +133,9 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { } public static final int SCORE_METRICS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List scoreMetrics_; /** - * - * *
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. All Key types should have score-based data.
@@ -182,8 +148,6 @@ public java.util.List getScoreMe
     return scoreMetrics_;
   }
   /**
-   *
-   *
    * 
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. All Key types should have score-based data.
@@ -192,13 +156,11 @@ public java.util.List getScoreMe
    * repeated .google.cloud.recaptchaenterprise.v1.ScoreMetrics score_metrics = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getScoreMetricsOrBuilderList() {
     return scoreMetrics_;
   }
   /**
-   *
-   *
    * 
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. All Key types should have score-based data.
@@ -211,8 +173,6 @@ public int getScoreMetricsCount() {
     return scoreMetrics_.size();
   }
   /**
-   *
-   *
    * 
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. All Key types should have score-based data.
@@ -225,8 +185,6 @@ public com.google.recaptchaenterprise.v1.ScoreMetrics getScoreMetrics(int index)
     return scoreMetrics_.get(index);
   }
   /**
-   *
-   *
    * 
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. All Key types should have score-based data.
@@ -241,86 +199,69 @@ public com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder getScoreMetricsOr
   }
 
   public static final int CHALLENGE_METRICS_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private java.util.List challengeMetrics_;
   /**
-   *
-   *
    * 
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
    * challenge-based data.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ @java.lang.Override - public java.util.List - getChallengeMetricsList() { + public java.util.List getChallengeMetricsList() { return challengeMetrics_; } /** - * - * *
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
    * challenge-based data.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ @java.lang.Override - public java.util.List + public java.util.List getChallengeMetricsOrBuilderList() { return challengeMetrics_; } /** - * - * *
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
    * challenge-based data.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ @java.lang.Override public int getChallengeMetricsCount() { return challengeMetrics_.size(); } /** - * - * *
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
    * challenge-based data.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ @java.lang.Override public com.google.recaptchaenterprise.v1.ChallengeMetrics getChallengeMetrics(int index) { return challengeMetrics_.get(index); } /** - * - * *
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
    * challenge-based data.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ @java.lang.Override public com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder getChallengeMetricsOrBuilder( @@ -329,7 +270,6 @@ public com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder getChallengeM } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,7 +281,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } @@ -364,13 +305,16 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartTime()); } for (int i = 0; i < scoreMetrics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, scoreMetrics_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, scoreMetrics_.get(i)); } for (int i = 0; i < challengeMetrics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, challengeMetrics_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, challengeMetrics_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); @@ -383,21 +327,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.Metrics)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.Metrics other = - (com.google.recaptchaenterprise.v1.Metrics) obj; + com.google.recaptchaenterprise.v1.Metrics other = (com.google.recaptchaenterprise.v1.Metrics) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } - if (!getScoreMetricsList().equals(other.getScoreMetricsList())) return false; - if (!getChallengeMetricsList().equals(other.getChallengeMetricsList())) return false; + if (!getScoreMetricsList() + .equals(other.getScoreMetricsList())) return false; + if (!getChallengeMetricsList() + .equals(other.getChallengeMetricsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -428,136 +375,132 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.Metrics parseFrom(java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.Metrics parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.Metrics parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.Metrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.Metrics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.Metrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.Metrics parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.Metrics parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.Metrics parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.Metrics parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.Metrics parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.Metrics parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.Metrics parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.Metrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.Metrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Metrics for a single Key.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.Metrics} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.Metrics) com.google.recaptchaenterprise.v1.MetricsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_Metrics_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Metrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.Metrics.class, - com.google.recaptchaenterprise.v1.Metrics.Builder.class); + com.google.recaptchaenterprise.v1.Metrics.class, com.google.recaptchaenterprise.v1.Metrics.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.Metrics.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -586,9 +529,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor; } @java.lang.Override @@ -607,12 +550,9 @@ public com.google.recaptchaenterprise.v1.Metrics build() { @java.lang.Override public com.google.recaptchaenterprise.v1.Metrics buildPartial() { - com.google.recaptchaenterprise.v1.Metrics result = - new com.google.recaptchaenterprise.v1.Metrics(this); + com.google.recaptchaenterprise.v1.Metrics result = new com.google.recaptchaenterprise.v1.Metrics(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -644,7 +584,9 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.Metrics result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); } } @@ -652,39 +594,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.Metrics result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.Metrics) { - return mergeFrom((com.google.recaptchaenterprise.v1.Metrics) other); + return mergeFrom((com.google.recaptchaenterprise.v1.Metrics)other); } else { super.mergeFrom(other); return this; @@ -719,10 +660,9 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.Metrics other) { scoreMetricsBuilder_ = null; scoreMetrics_ = other.scoreMetrics_; bitField0_ = (bitField0_ & ~0x00000004); - scoreMetricsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getScoreMetricsFieldBuilder() - : null; + scoreMetricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getScoreMetricsFieldBuilder() : null; } else { scoreMetricsBuilder_.addAllMessages(other.scoreMetrics_); } @@ -746,10 +686,9 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.Metrics other) { challengeMetricsBuilder_ = null; challengeMetrics_ = other.challengeMetrics_; bitField0_ = (bitField0_ & ~0x00000008); - challengeMetricsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getChallengeMetricsFieldBuilder() - : null; + challengeMetricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getChallengeMetricsFieldBuilder() : null; } else { challengeMetricsBuilder_.addAllMessages(other.challengeMetrics_); } @@ -781,52 +720,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: - { - com.google.recaptchaenterprise.v1.ScoreMetrics m = - input.readMessage( - com.google.recaptchaenterprise.v1.ScoreMetrics.parser(), extensionRegistry); - if (scoreMetricsBuilder_ == null) { - ensureScoreMetricsIsMutable(); - scoreMetrics_.add(m); - } else { - scoreMetricsBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - com.google.recaptchaenterprise.v1.ChallengeMetrics m = - input.readMessage( - com.google.recaptchaenterprise.v1.ChallengeMetrics.parser(), - extensionRegistry); - if (challengeMetricsBuilder_ == null) { - ensureChallengeMetricsIsMutable(); - challengeMetrics_.add(m); - } else { - challengeMetricsBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: { + com.google.recaptchaenterprise.v1.ScoreMetrics m = + input.readMessage( + com.google.recaptchaenterprise.v1.ScoreMetrics.parser(), + extensionRegistry); + if (scoreMetricsBuilder_ == null) { + ensureScoreMetricsIsMutable(); + scoreMetrics_.add(m); + } else { + scoreMetricsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + com.google.recaptchaenterprise.v1.ChallengeMetrics m = + input.readMessage( + com.google.recaptchaenterprise.v1.ChallengeMetrics.parser(), + extensionRegistry); + if (challengeMetricsBuilder_ == null) { + ensureChallengeMetricsIsMutable(); + challengeMetrics_.add(m); + } else { + challengeMetricsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -836,26 +773,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The name of the metrics, in the format
      * `projects/{project}/keys/{key}/metrics`.
      * 
* * string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -864,22 +798,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The name of the metrics, in the format
      * `projects/{project}/keys/{key}/metrics`.
      * 
* * string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -887,37 +820,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The name of the metrics, in the format
      * `projects/{project}/keys/{key}/metrics`.
      * 
* * string name = 4 [(.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) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The name of the metrics, in the format
      * `projects/{project}/keys/{key}/metrics`.
      * 
* * string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -927,22 +853,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The name of the metrics, in the format
      * `projects/{project}/keys/{key}/metrics`.
      * 
* * string name = 4 [(.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) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -952,33 +874,24 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * Inclusive start time aligned to a day (UTC).
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Inclusive start time aligned to a day (UTC).
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -989,8 +902,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Inclusive start time aligned to a day (UTC).
      * 
@@ -1011,15 +922,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Inclusive start time aligned to a day (UTC).
      * 
* * .google.protobuf.Timestamp start_time = 1; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -1030,8 +940,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Inclusive start time aligned to a day (UTC).
      * 
@@ -1040,9 +948,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -1055,8 +963,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Inclusive start time aligned to a day (UTC).
      * 
@@ -1074,8 +980,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Inclusive start time aligned to a day (UTC).
      * 
@@ -1088,8 +992,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Inclusive start time aligned to a day (UTC).
      * 
@@ -1100,12 +1002,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * Inclusive start time aligned to a day (UTC).
      * 
@@ -1113,42 +1014,32 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; } private java.util.List scoreMetrics_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureScoreMetricsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - scoreMetrics_ = - new java.util.ArrayList(scoreMetrics_); + scoreMetrics_ = new java.util.ArrayList(scoreMetrics_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.ScoreMetrics, - com.google.recaptchaenterprise.v1.ScoreMetrics.Builder, - com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder> - scoreMetricsBuilder_; + com.google.recaptchaenterprise.v1.ScoreMetrics, com.google.recaptchaenterprise.v1.ScoreMetrics.Builder, com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder> scoreMetricsBuilder_; /** - * - * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1164,8 +1055,6 @@ public java.util.List getScoreMe
       }
     }
     /**
-     *
-     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1181,8 +1070,6 @@ public int getScoreMetricsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1198,8 +1085,6 @@ public com.google.recaptchaenterprise.v1.ScoreMetrics getScoreMetrics(int index)
       }
     }
     /**
-     *
-     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1222,8 +1107,6 @@ public Builder setScoreMetrics(
       return this;
     }
     /**
-     *
-     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1243,8 +1126,6 @@ public Builder setScoreMetrics(
       return this;
     }
     /**
-     *
-     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1266,8 +1147,6 @@ public Builder addScoreMetrics(com.google.recaptchaenterprise.v1.ScoreMetrics va
       return this;
     }
     /**
-     *
-     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1290,8 +1169,6 @@ public Builder addScoreMetrics(
       return this;
     }
     /**
-     *
-     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1311,8 +1188,6 @@ public Builder addScoreMetrics(
       return this;
     }
     /**
-     *
-     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1332,8 +1207,6 @@ public Builder addScoreMetrics(
       return this;
     }
     /**
-     *
-     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1345,7 +1218,8 @@ public Builder addAllScoreMetrics(
         java.lang.Iterable values) {
       if (scoreMetricsBuilder_ == null) {
         ensureScoreMetricsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scoreMetrics_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, scoreMetrics_);
         onChanged();
       } else {
         scoreMetricsBuilder_.addAllMessages(values);
@@ -1353,8 +1227,6 @@ public Builder addAllScoreMetrics(
       return this;
     }
     /**
-     *
-     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1373,8 +1245,6 @@ public Builder clearScoreMetrics() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1393,8 +1263,6 @@ public Builder removeScoreMetrics(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1407,8 +1275,6 @@ public com.google.recaptchaenterprise.v1.ScoreMetrics.Builder getScoreMetricsBui
       return getScoreMetricsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1419,14 +1285,11 @@ public com.google.recaptchaenterprise.v1.ScoreMetrics.Builder getScoreMetricsBui
     public com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder getScoreMetricsOrBuilder(
         int index) {
       if (scoreMetricsBuilder_ == null) {
-        return scoreMetrics_.get(index);
-      } else {
+        return scoreMetrics_.get(index);  } else {
         return scoreMetricsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1434,8 +1297,8 @@ public com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder getScoreMetricsOr
      *
      * repeated .google.cloud.recaptchaenterprise.v1.ScoreMetrics score_metrics = 2;
      */
-    public java.util.List
-        getScoreMetricsOrBuilderList() {
+    public java.util.List 
+         getScoreMetricsOrBuilderList() {
       if (scoreMetricsBuilder_ != null) {
         return scoreMetricsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1443,8 +1306,6 @@ public com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder getScoreMetricsOr
       }
     }
     /**
-     *
-     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1453,12 +1314,10 @@ public com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder getScoreMetricsOr
      * repeated .google.cloud.recaptchaenterprise.v1.ScoreMetrics score_metrics = 2;
      */
     public com.google.recaptchaenterprise.v1.ScoreMetrics.Builder addScoreMetricsBuilder() {
-      return getScoreMetricsFieldBuilder()
-          .addBuilder(com.google.recaptchaenterprise.v1.ScoreMetrics.getDefaultInstance());
+      return getScoreMetricsFieldBuilder().addBuilder(
+          com.google.recaptchaenterprise.v1.ScoreMetrics.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1468,12 +1327,10 @@ public com.google.recaptchaenterprise.v1.ScoreMetrics.Builder addScoreMetricsBui
      */
     public com.google.recaptchaenterprise.v1.ScoreMetrics.Builder addScoreMetricsBuilder(
         int index) {
-      return getScoreMetricsFieldBuilder()
-          .addBuilder(index, com.google.recaptchaenterprise.v1.ScoreMetrics.getDefaultInstance());
+      return getScoreMetricsFieldBuilder().addBuilder(
+          index, com.google.recaptchaenterprise.v1.ScoreMetrics.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. All Key types should have score-based data.
@@ -1481,60 +1338,47 @@ public com.google.recaptchaenterprise.v1.ScoreMetrics.Builder addScoreMetricsBui
      *
      * repeated .google.cloud.recaptchaenterprise.v1.ScoreMetrics score_metrics = 2;
      */
-    public java.util.List
-        getScoreMetricsBuilderList() {
+    public java.util.List 
+         getScoreMetricsBuilderList() {
       return getScoreMetricsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.recaptchaenterprise.v1.ScoreMetrics,
-            com.google.recaptchaenterprise.v1.ScoreMetrics.Builder,
-            com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder>
+        com.google.recaptchaenterprise.v1.ScoreMetrics, com.google.recaptchaenterprise.v1.ScoreMetrics.Builder, com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder> 
         getScoreMetricsFieldBuilder() {
       if (scoreMetricsBuilder_ == null) {
-        scoreMetricsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.recaptchaenterprise.v1.ScoreMetrics,
-                com.google.recaptchaenterprise.v1.ScoreMetrics.Builder,
-                com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder>(
-                scoreMetrics_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+        scoreMetricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.recaptchaenterprise.v1.ScoreMetrics, com.google.recaptchaenterprise.v1.ScoreMetrics.Builder, com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder>(
+                scoreMetrics_,
+                ((bitField0_ & 0x00000004) != 0),
+                getParentForChildren(),
+                isClean());
         scoreMetrics_ = null;
       }
       return scoreMetricsBuilder_;
     }
 
     private java.util.List challengeMetrics_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureChallengeMetricsIsMutable() {
       if (!((bitField0_ & 0x00000008) != 0)) {
-        challengeMetrics_ =
-            new java.util.ArrayList(
-                challengeMetrics_);
+        challengeMetrics_ = new java.util.ArrayList(challengeMetrics_);
         bitField0_ |= 0x00000008;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.recaptchaenterprise.v1.ChallengeMetrics,
-            com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder,
-            com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder>
-        challengeMetricsBuilder_;
+        com.google.recaptchaenterprise.v1.ChallengeMetrics, com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder, com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder> challengeMetricsBuilder_;
 
     /**
-     *
-     *
      * 
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ - public java.util.List - getChallengeMetricsList() { + public java.util.List getChallengeMetricsList() { if (challengeMetricsBuilder_ == null) { return java.util.Collections.unmodifiableList(challengeMetrics_); } else { @@ -1542,16 +1386,13 @@ private void ensureChallengeMetricsIsMutable() { } } /** - * - * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ public int getChallengeMetricsCount() { if (challengeMetricsBuilder_ == null) { @@ -1561,16 +1402,13 @@ public int getChallengeMetricsCount() { } } /** - * - * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ public com.google.recaptchaenterprise.v1.ChallengeMetrics getChallengeMetrics(int index) { if (challengeMetricsBuilder_ == null) { @@ -1580,16 +1418,13 @@ public com.google.recaptchaenterprise.v1.ChallengeMetrics getChallengeMetrics(in } } /** - * - * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ public Builder setChallengeMetrics( int index, com.google.recaptchaenterprise.v1.ChallengeMetrics value) { @@ -1606,16 +1441,13 @@ public Builder setChallengeMetrics( return this; } /** - * - * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ public Builder setChallengeMetrics( int index, com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder builderForValue) { @@ -1629,16 +1461,13 @@ public Builder setChallengeMetrics( return this; } /** - * - * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ public Builder addChallengeMetrics(com.google.recaptchaenterprise.v1.ChallengeMetrics value) { if (challengeMetricsBuilder_ == null) { @@ -1654,16 +1483,13 @@ public Builder addChallengeMetrics(com.google.recaptchaenterprise.v1.ChallengeMe return this; } /** - * - * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ public Builder addChallengeMetrics( int index, com.google.recaptchaenterprise.v1.ChallengeMetrics value) { @@ -1680,16 +1506,13 @@ public Builder addChallengeMetrics( return this; } /** - * - * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ public Builder addChallengeMetrics( com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder builderForValue) { @@ -1703,16 +1526,13 @@ public Builder addChallengeMetrics( return this; } /** - * - * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ public Builder addChallengeMetrics( int index, com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder builderForValue) { @@ -1726,22 +1546,20 @@ public Builder addChallengeMetrics( return this; } /** - * - * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ public Builder addAllChallengeMetrics( java.lang.Iterable values) { if (challengeMetricsBuilder_ == null) { ensureChallengeMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, challengeMetrics_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, challengeMetrics_); onChanged(); } else { challengeMetricsBuilder_.addAllMessages(values); @@ -1749,16 +1567,13 @@ public Builder addAllChallengeMetrics( return this; } /** - * - * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ public Builder clearChallengeMetrics() { if (challengeMetricsBuilder_ == null) { @@ -1771,16 +1586,13 @@ public Builder clearChallengeMetrics() { return this; } /** - * - * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ public Builder removeChallengeMetrics(int index) { if (challengeMetricsBuilder_ == null) { @@ -1793,55 +1605,45 @@ public Builder removeChallengeMetrics(int index) { return this; } /** - * - * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ public com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder getChallengeMetricsBuilder( int index) { return getChallengeMetricsFieldBuilder().getBuilder(index); } /** - * - * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ public com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder getChallengeMetricsOrBuilder( int index) { if (challengeMetricsBuilder_ == null) { - return challengeMetrics_.get(index); - } else { + return challengeMetrics_.get(index); } else { return challengeMetricsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ - public java.util.List - getChallengeMetricsOrBuilderList() { + public java.util.List + getChallengeMetricsOrBuilderList() { if (challengeMetricsBuilder_ != null) { return challengeMetricsBuilder_.getMessageOrBuilderList(); } else { @@ -1849,67 +1651,51 @@ public com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder getChallengeM } } /** - * - * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ public com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder addChallengeMetricsBuilder() { - return getChallengeMetricsFieldBuilder() - .addBuilder(com.google.recaptchaenterprise.v1.ChallengeMetrics.getDefaultInstance()); + return getChallengeMetricsFieldBuilder().addBuilder( + com.google.recaptchaenterprise.v1.ChallengeMetrics.getDefaultInstance()); } /** - * - * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ public com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder addChallengeMetricsBuilder( int index) { - return getChallengeMetricsFieldBuilder() - .addBuilder( - index, com.google.recaptchaenterprise.v1.ChallengeMetrics.getDefaultInstance()); + return getChallengeMetricsFieldBuilder().addBuilder( + index, com.google.recaptchaenterprise.v1.ChallengeMetrics.getDefaultInstance()); } /** - * - * *
      * Metrics will be continuous and in order by dates, and in the granularity
      * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
      * challenge-based data.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ - public java.util.List - getChallengeMetricsBuilderList() { + public java.util.List + getChallengeMetricsBuilderList() { return getChallengeMetricsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.ChallengeMetrics, - com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder, - com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder> + com.google.recaptchaenterprise.v1.ChallengeMetrics, com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder, com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder> getChallengeMetricsFieldBuilder() { if (challengeMetricsBuilder_ == null) { - challengeMetricsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.ChallengeMetrics, - com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder, - com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder>( + challengeMetricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1.ChallengeMetrics, com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder, com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder>( challengeMetrics_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -1918,9 +1704,9 @@ public com.google.recaptchaenterprise.v1.ChallengeMetrics.Builder addChallengeMe } return challengeMetricsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1930,12 +1716,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.Metrics) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.Metrics) private static final com.google.recaptchaenterprise.v1.Metrics DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.Metrics(); } @@ -1944,27 +1730,27 @@ public static com.google.recaptchaenterprise.v1.Metrics getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Metrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Metrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1979,4 +1765,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.Metrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsName.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsName.java similarity index 100% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsName.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsName.java diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsOrBuilder.java similarity index 80% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsOrBuilder.java index b0a5e59213b8..2e7f130740b9 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsOrBuilder.java @@ -1,82 +1,53 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface MetricsOrBuilder - extends +public interface MetricsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.Metrics) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The name of the metrics, in the format
    * `projects/{project}/keys/{key}/metrics`.
    * 
* * string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The name of the metrics, in the format
    * `projects/{project}/keys/{key}/metrics`.
    * 
* * string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Inclusive start time aligned to a day (UTC).
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Inclusive start time aligned to a day (UTC).
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Inclusive start time aligned to a day (UTC).
    * 
@@ -86,8 +57,6 @@ public interface MetricsOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. All Key types should have score-based data.
@@ -95,10 +64,9 @@ public interface MetricsOrBuilder
    *
    * repeated .google.cloud.recaptchaenterprise.v1.ScoreMetrics score_metrics = 2;
    */
-  java.util.List getScoreMetricsList();
+  java.util.List 
+      getScoreMetricsList();
   /**
-   *
-   *
    * 
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. All Key types should have score-based data.
@@ -108,8 +76,6 @@ public interface MetricsOrBuilder
    */
   com.google.recaptchaenterprise.v1.ScoreMetrics getScoreMetrics(int index);
   /**
-   *
-   *
    * 
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. All Key types should have score-based data.
@@ -119,8 +85,6 @@ public interface MetricsOrBuilder
    */
   int getScoreMetricsCount();
   /**
-   *
-   *
    * 
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. All Key types should have score-based data.
@@ -128,11 +92,9 @@ public interface MetricsOrBuilder
    *
    * repeated .google.cloud.recaptchaenterprise.v1.ScoreMetrics score_metrics = 2;
    */
-  java.util.List
+  java.util.List 
       getScoreMetricsOrBuilderList();
   /**
-   *
-   *
    * 
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. All Key types should have score-based data.
@@ -140,72 +102,59 @@ public interface MetricsOrBuilder
    *
    * repeated .google.cloud.recaptchaenterprise.v1.ScoreMetrics score_metrics = 2;
    */
-  com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder getScoreMetricsOrBuilder(int index);
+  com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder getScoreMetricsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
    * challenge-based data.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ - java.util.List getChallengeMetricsList(); + java.util.List + getChallengeMetricsList(); /** - * - * *
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
    * challenge-based data.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ com.google.recaptchaenterprise.v1.ChallengeMetrics getChallengeMetrics(int index); /** - * - * *
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
    * challenge-based data.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ int getChallengeMetricsCount(); /** - * - * *
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
    * challenge-based data.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ - java.util.List + java.util.List getChallengeMetricsOrBuilderList(); /** - * - * *
    * Metrics will be continuous and in order by dates, and in the granularity
    * of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
    * challenge-based data.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; - * + * repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3; */ com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder getChallengeMetricsOrBuilder( int index); diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequest.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequest.java similarity index 68% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequest.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequest.java index 74e2f010dc01..6ab0aef95d0f 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequest.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * The migrate key request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.MigrateKeyRequest} */ -public final class MigrateKeyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MigrateKeyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.MigrateKeyRequest) MigrateKeyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MigrateKeyRequest.newBuilder() to construct. private MigrateKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MigrateKeyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MigrateKeyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.MigrateKeyRequest.class, - com.google.recaptchaenterprise.v1.MigrateKeyRequest.Builder.class); + com.google.recaptchaenterprise.v1.MigrateKeyRequest.class, com.google.recaptchaenterprise.v1.MigrateKeyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the key to be migrated, in the format
    * `projects/{project}/keys/{key}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -86,32 +61,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the key to be migrated, in the format
    * `projects/{project}/keys/{key}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -122,8 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SKIP_BILLING_CHECK_FIELD_NUMBER = 2; private boolean skipBillingCheck_ = false; /** - * - * *
    * Optional. If true, skips the billing check.
    * A reCAPTCHA Enterprise key or migrated key behaves differently than a
@@ -136,7 +107,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * bool skip_billing_check = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The skipBillingCheck. */ @java.lang.Override @@ -145,7 +115,6 @@ public boolean getSkipBillingCheck() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -157,7 +126,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -177,7 +147,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (skipBillingCheck_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, skipBillingCheck_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, skipBillingCheck_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -187,16 +158,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.MigrateKeyRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.MigrateKeyRequest other = - (com.google.recaptchaenterprise.v1.MigrateKeyRequest) obj; + com.google.recaptchaenterprise.v1.MigrateKeyRequest other = (com.google.recaptchaenterprise.v1.MigrateKeyRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getSkipBillingCheck() != other.getSkipBillingCheck()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getSkipBillingCheck() + != other.getSkipBillingCheck()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -211,142 +183,139 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SKIP_BILLING_CHECK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipBillingCheck()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSkipBillingCheck()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.MigrateKeyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.MigrateKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The migrate key request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.MigrateKeyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.MigrateKeyRequest) com.google.recaptchaenterprise.v1.MigrateKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.MigrateKeyRequest.class, - com.google.recaptchaenterprise.v1.MigrateKeyRequest.Builder.class); + com.google.recaptchaenterprise.v1.MigrateKeyRequest.class, com.google.recaptchaenterprise.v1.MigrateKeyRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.MigrateKeyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -357,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor; } @java.lang.Override @@ -378,11 +347,8 @@ public com.google.recaptchaenterprise.v1.MigrateKeyRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.MigrateKeyRequest buildPartial() { - com.google.recaptchaenterprise.v1.MigrateKeyRequest result = - new com.google.recaptchaenterprise.v1.MigrateKeyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.MigrateKeyRequest result = new com.google.recaptchaenterprise.v1.MigrateKeyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -401,39 +367,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.MigrateKeyRequest r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.MigrateKeyRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.MigrateKeyRequest) other); + return mergeFrom((com.google.recaptchaenterprise.v1.MigrateKeyRequest)other); } else { super.mergeFrom(other); return this; @@ -441,8 +406,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.MigrateKeyRequest other) { - if (other == com.google.recaptchaenterprise.v1.MigrateKeyRequest.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.MigrateKeyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -477,25 +441,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - skipBillingCheck_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + skipBillingCheck_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -505,28 +466,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the key to be migrated, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -535,24 +491,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the key to be migrated, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -560,41 +513,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the key to be migrated, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the key to be migrated, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -604,24 +546,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the key to be migrated, in the format
      * `projects/{project}/keys/{key}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -629,10 +565,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean skipBillingCheck_; + private boolean skipBillingCheck_ ; /** - * - * *
      * Optional. If true, skips the billing check.
      * A reCAPTCHA Enterprise key or migrated key behaves differently than a
@@ -645,7 +579,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * bool skip_billing_check = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The skipBillingCheck. */ @java.lang.Override @@ -653,8 +586,6 @@ public boolean getSkipBillingCheck() { return skipBillingCheck_; } /** - * - * *
      * Optional. If true, skips the billing check.
      * A reCAPTCHA Enterprise key or migrated key behaves differently than a
@@ -667,7 +598,6 @@ public boolean getSkipBillingCheck() {
      * 
* * bool skip_billing_check = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The skipBillingCheck to set. * @return This builder for chaining. */ @@ -679,8 +609,6 @@ public Builder setSkipBillingCheck(boolean value) { return this; } /** - * - * *
      * Optional. If true, skips the billing check.
      * A reCAPTCHA Enterprise key or migrated key behaves differently than a
@@ -693,7 +621,6 @@ public Builder setSkipBillingCheck(boolean value) {
      * 
* * bool skip_billing_check = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSkipBillingCheck() { @@ -702,9 +629,9 @@ public Builder clearSkipBillingCheck() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -714,12 +641,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.MigrateKeyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.MigrateKeyRequest) private static final com.google.recaptchaenterprise.v1.MigrateKeyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.MigrateKeyRequest(); } @@ -728,27 +655,27 @@ public static com.google.recaptchaenterprise.v1.MigrateKeyRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MigrateKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MigrateKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -763,4 +690,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.MigrateKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequestOrBuilder.java similarity index 59% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequestOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequestOrBuilder.java index 219dcff6280a..e0f1af4de8a2 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequestOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MigrateKeyRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface MigrateKeyRequestOrBuilder - extends +public interface MigrateKeyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.MigrateKeyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the key to be migrated, in the format
    * `projects/{project}/keys/{key}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the key to be migrated, in the format
    * `projects/{project}/keys/{key}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. If true, skips the billing check.
    * A reCAPTCHA Enterprise key or migrated key behaves differently than a
@@ -69,7 +42,6 @@ public interface MigrateKeyRequestOrBuilder
    * 
* * bool skip_billing_check = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The skipBillingCheck. */ boolean getSkipBillingCheck(); diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerification.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerification.java similarity index 67% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerification.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerification.java index a8227b21320d..173a6f4bd2fa 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerification.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerification.java @@ -1,43 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * Private password leak verification info.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification} */ -public final class PrivatePasswordLeakVerification extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PrivatePasswordLeakVerification extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification) PrivatePasswordLeakVerificationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PrivatePasswordLeakVerification.newBuilder() to construct. - private PrivatePasswordLeakVerification( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private PrivatePasswordLeakVerification(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PrivatePasswordLeakVerification() { lookupHashPrefix_ = com.google.protobuf.ByteString.EMPTY; encryptedUserCredentialsHash_ = com.google.protobuf.ByteString.EMPTY; @@ -47,30 +28,27 @@ private PrivatePasswordLeakVerification() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PrivatePasswordLeakVerification(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.class, - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder.class); + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.class, com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder.class); } public static final int LOOKUP_HASH_PREFIX_FIELD_NUMBER = 1; private com.google.protobuf.ByteString lookupHashPrefix_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * Required. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized
    * username. It is used to look up password leaks associated with that hash
@@ -78,7 +56,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bytes lookup_hash_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The lookupHashPrefix. */ @java.lang.Override @@ -87,20 +64,15 @@ public com.google.protobuf.ByteString getLookupHashPrefix() { } public static final int ENCRYPTED_USER_CREDENTIALS_HASH_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString encryptedUserCredentialsHash_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString encryptedUserCredentialsHash_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * Optional. Encrypted Scrypt hash of the canonicalized username+password. It
    * is re-encrypted by the server and returned through
    * `reencrypted_user_credentials_hash`.
    * 
* - * bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The encryptedUserCredentialsHash. */ @java.lang.Override @@ -109,59 +81,44 @@ public com.google.protobuf.ByteString getEncryptedUserCredentialsHash() { } public static final int ENCRYPTED_LEAK_MATCH_PREFIXES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List encryptedLeakMatchPrefixes_; /** - * - * *
    * Output only. List of prefixes of the encrypted potential password leaks
    * that matched the given parameters. They must be compared with the
    * client-side decryption prefix of `reencrypted_user_credentials_hash`
    * 
* - * - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the encryptedLeakMatchPrefixes. */ @java.lang.Override - public java.util.List getEncryptedLeakMatchPrefixesList() { + public java.util.List + getEncryptedLeakMatchPrefixesList() { return encryptedLeakMatchPrefixes_; } /** - * - * *
    * Output only. List of prefixes of the encrypted potential password leaks
    * that matched the given parameters. They must be compared with the
    * client-side decryption prefix of `reencrypted_user_credentials_hash`
    * 
* - * - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of encryptedLeakMatchPrefixes. */ public int getEncryptedLeakMatchPrefixesCount() { return encryptedLeakMatchPrefixes_.size(); } /** - * - * *
    * Output only. List of prefixes of the encrypted potential password leaks
    * that matched the given parameters. They must be compared with the
    * client-side decryption prefix of `reencrypted_user_credentials_hash`
    * 
* - * - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The encryptedLeakMatchPrefixes at the given index. */ @@ -170,20 +127,15 @@ public com.google.protobuf.ByteString getEncryptedLeakMatchPrefixes(int index) { } public static final int REENCRYPTED_USER_CREDENTIALS_HASH_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString reencryptedUserCredentialsHash_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString reencryptedUserCredentialsHash_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * Output only. Corresponds to the re-encryption of the
    * `encrypted_user_credentials_hash` field. It is used to match potential
    * password leaks within `encrypted_leak_match_prefixes`.
    * 
* - * bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The reencryptedUserCredentialsHash. */ @java.lang.Override @@ -192,7 +144,6 @@ public com.google.protobuf.ByteString getReencryptedUserCredentialsHash() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!lookupHashPrefix_.isEmpty()) { output.writeBytes(1, lookupHashPrefix_); } @@ -227,26 +179,25 @@ public int getSerializedSize() { size = 0; if (!lookupHashPrefix_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, lookupHashPrefix_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, lookupHashPrefix_); } if (!encryptedUserCredentialsHash_.isEmpty()) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize(2, encryptedUserCredentialsHash_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, encryptedUserCredentialsHash_); } { int dataSize = 0; for (int i = 0; i < encryptedLeakMatchPrefixes_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag( - encryptedLeakMatchPrefixes_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(encryptedLeakMatchPrefixes_.get(i)); } size += dataSize; size += 1 * getEncryptedLeakMatchPrefixesList().size(); } if (!reencryptedUserCredentialsHash_.isEmpty()) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 4, reencryptedUserCredentialsHash_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, reencryptedUserCredentialsHash_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -256,21 +207,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification other = - (com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification) obj; + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification other = (com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification) obj; - if (!getLookupHashPrefix().equals(other.getLookupHashPrefix())) return false; - if (!getEncryptedUserCredentialsHash().equals(other.getEncryptedUserCredentialsHash())) - return false; - if (!getEncryptedLeakMatchPrefixesList().equals(other.getEncryptedLeakMatchPrefixesList())) - return false; - if (!getReencryptedUserCredentialsHash().equals(other.getReencryptedUserCredentialsHash())) - return false; + if (!getLookupHashPrefix() + .equals(other.getLookupHashPrefix())) return false; + if (!getEncryptedUserCredentialsHash() + .equals(other.getEncryptedUserCredentialsHash())) return false; + if (!getEncryptedLeakMatchPrefixesList() + .equals(other.getEncryptedLeakMatchPrefixesList())) return false; + if (!getReencryptedUserCredentialsHash() + .equals(other.getReencryptedUserCredentialsHash())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -298,138 +249,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Private password leak verification info.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification) com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerificationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.class, - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder.class); + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.class, com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.Builder.class); } - // Construct using - // com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.newBuilder() - private Builder() {} + // Construct using com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -442,14 +386,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.getDefaultInstance(); } @@ -464,28 +407,22 @@ public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification build() @java.lang.Override public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification buildPartial() { - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification result = - new com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification(this); + com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification result = new com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification result) { + private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification result) { if (((bitField0_ & 0x00000004) != 0)) { - encryptedLeakMatchPrefixes_ = - java.util.Collections.unmodifiableList(encryptedLeakMatchPrefixes_); + encryptedLeakMatchPrefixes_ = java.util.Collections.unmodifiableList(encryptedLeakMatchPrefixes_); bitField0_ = (bitField0_ & ~0x00000004); } result.encryptedLeakMatchPrefixes_ = encryptedLeakMatchPrefixes_; } - private void buildPartial0( - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification result) { + private void buildPartial0(com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.lookupHashPrefix_ = lookupHashPrefix_; @@ -502,50 +439,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification) { - return mergeFrom((com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification) other); + return mergeFrom((com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification other) { - if (other - == com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification other) { + if (other == com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification.getDefaultInstance()) return this; if (other.getLookupHashPrefix() != com.google.protobuf.ByteString.EMPTY) { setLookupHashPrefix(other.getLookupHashPrefix()); } @@ -591,38 +524,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - lookupHashPrefix_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - encryptedUserCredentialsHash_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - com.google.protobuf.ByteString v = input.readBytes(); - ensureEncryptedLeakMatchPrefixesIsMutable(); - encryptedLeakMatchPrefixes_.add(v); - break; - } // case 26 - case 34: - { - reencryptedUserCredentialsHash_ = input.readBytes(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + lookupHashPrefix_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + encryptedUserCredentialsHash_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + com.google.protobuf.ByteString v = input.readBytes(); + ensureEncryptedLeakMatchPrefixesIsMutable(); + encryptedLeakMatchPrefixes_.add(v); + break; + } // case 26 + case 34: { + reencryptedUserCredentialsHash_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -632,13 +560,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.ByteString lookupHashPrefix_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Required. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized
      * username. It is used to look up password leaks associated with that hash
@@ -646,7 +571,6 @@ public Builder mergeFrom(
      * 
* * bytes lookup_hash_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The lookupHashPrefix. */ @java.lang.Override @@ -654,8 +578,6 @@ public com.google.protobuf.ByteString getLookupHashPrefix() { return lookupHashPrefix_; } /** - * - * *
      * Required. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized
      * username. It is used to look up password leaks associated with that hash
@@ -663,22 +585,17 @@ public com.google.protobuf.ByteString getLookupHashPrefix() {
      * 
* * bytes lookup_hash_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The lookupHashPrefix to set. * @return This builder for chaining. */ public Builder setLookupHashPrefix(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } lookupHashPrefix_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized
      * username. It is used to look up password leaks associated with that hash
@@ -686,7 +603,6 @@ public Builder setLookupHashPrefix(com.google.protobuf.ByteString value) {
      * 
* * bytes lookup_hash_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLookupHashPrefix() { @@ -696,20 +612,15 @@ public Builder clearLookupHashPrefix() { return this; } - private com.google.protobuf.ByteString encryptedUserCredentialsHash_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString encryptedUserCredentialsHash_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Optional. Encrypted Scrypt hash of the canonicalized username+password. It
      * is re-encrypted by the server and returned through
      * `reencrypted_user_credentials_hash`.
      * 
* - * bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The encryptedUserCredentialsHash. */ @java.lang.Override @@ -717,41 +628,31 @@ public com.google.protobuf.ByteString getEncryptedUserCredentialsHash() { return encryptedUserCredentialsHash_; } /** - * - * *
      * Optional. Encrypted Scrypt hash of the canonicalized username+password. It
      * is re-encrypted by the server and returned through
      * `reencrypted_user_credentials_hash`.
      * 
* - * bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The encryptedUserCredentialsHash to set. * @return This builder for chaining. */ public Builder setEncryptedUserCredentialsHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } encryptedUserCredentialsHash_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Encrypted Scrypt hash of the canonicalized username+password. It
      * is re-encrypted by the server and returned through
      * `reencrypted_user_credentials_hash`.
      * 
* - * bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearEncryptedUserCredentialsHash() { @@ -761,67 +662,49 @@ public Builder clearEncryptedUserCredentialsHash() { return this; } - private java.util.List encryptedLeakMatchPrefixes_ = - java.util.Collections.emptyList(); - + private java.util.List encryptedLeakMatchPrefixes_ = java.util.Collections.emptyList(); private void ensureEncryptedLeakMatchPrefixesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - encryptedLeakMatchPrefixes_ = - new java.util.ArrayList(encryptedLeakMatchPrefixes_); + encryptedLeakMatchPrefixes_ = new java.util.ArrayList(encryptedLeakMatchPrefixes_); bitField0_ |= 0x00000004; } } /** - * - * *
      * Output only. List of prefixes of the encrypted potential password leaks
      * that matched the given parameters. They must be compared with the
      * client-side decryption prefix of `reencrypted_user_credentials_hash`
      * 
* - * - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the encryptedLeakMatchPrefixes. */ - public java.util.List getEncryptedLeakMatchPrefixesList() { - return ((bitField0_ & 0x00000004) != 0) - ? java.util.Collections.unmodifiableList(encryptedLeakMatchPrefixes_) - : encryptedLeakMatchPrefixes_; + public java.util.List + getEncryptedLeakMatchPrefixesList() { + return ((bitField0_ & 0x00000004) != 0) ? + java.util.Collections.unmodifiableList(encryptedLeakMatchPrefixes_) : encryptedLeakMatchPrefixes_; } /** - * - * *
      * Output only. List of prefixes of the encrypted potential password leaks
      * that matched the given parameters. They must be compared with the
      * client-side decryption prefix of `reencrypted_user_credentials_hash`
      * 
* - * - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of encryptedLeakMatchPrefixes. */ public int getEncryptedLeakMatchPrefixesCount() { return encryptedLeakMatchPrefixes_.size(); } /** - * - * *
      * Output only. List of prefixes of the encrypted potential password leaks
      * that matched the given parameters. They must be compared with the
      * client-side decryption prefix of `reencrypted_user_credentials_hash`
      * 
* - * - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The encryptedLeakMatchPrefixes at the given index. */ @@ -829,92 +712,70 @@ public com.google.protobuf.ByteString getEncryptedLeakMatchPrefixes(int index) { return encryptedLeakMatchPrefixes_.get(index); } /** - * - * *
      * Output only. List of prefixes of the encrypted potential password leaks
      * that matched the given parameters. They must be compared with the
      * client-side decryption prefix of `reencrypted_user_credentials_hash`
      * 
* - * - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The encryptedLeakMatchPrefixes to set. * @return This builder for chaining. */ - public Builder setEncryptedLeakMatchPrefixes(int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEncryptedLeakMatchPrefixes( + int index, com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } ensureEncryptedLeakMatchPrefixesIsMutable(); encryptedLeakMatchPrefixes_.set(index, value); onChanged(); return this; } /** - * - * *
      * Output only. List of prefixes of the encrypted potential password leaks
      * that matched the given parameters. They must be compared with the
      * client-side decryption prefix of `reencrypted_user_credentials_hash`
      * 
* - * - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The encryptedLeakMatchPrefixes to add. * @return This builder for chaining. */ public Builder addEncryptedLeakMatchPrefixes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } ensureEncryptedLeakMatchPrefixesIsMutable(); encryptedLeakMatchPrefixes_.add(value); onChanged(); return this; } /** - * - * *
      * Output only. List of prefixes of the encrypted potential password leaks
      * that matched the given parameters. They must be compared with the
      * client-side decryption prefix of `reencrypted_user_credentials_hash`
      * 
* - * - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The encryptedLeakMatchPrefixes to add. * @return This builder for chaining. */ public Builder addAllEncryptedLeakMatchPrefixes( java.lang.Iterable values) { ensureEncryptedLeakMatchPrefixesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, encryptedLeakMatchPrefixes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, encryptedLeakMatchPrefixes_); onChanged(); return this; } /** - * - * *
      * Output only. List of prefixes of the encrypted potential password leaks
      * that matched the given parameters. They must be compared with the
      * client-side decryption prefix of `reencrypted_user_credentials_hash`
      * 
* - * - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearEncryptedLeakMatchPrefixes() { @@ -924,21 +785,15 @@ public Builder clearEncryptedLeakMatchPrefixes() { return this; } - private com.google.protobuf.ByteString reencryptedUserCredentialsHash_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString reencryptedUserCredentialsHash_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Output only. Corresponds to the re-encryption of the
      * `encrypted_user_credentials_hash` field. It is used to match potential
      * password leaks within `encrypted_leak_match_prefixes`.
      * 
* - * - * bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The reencryptedUserCredentialsHash. */ @java.lang.Override @@ -946,43 +801,31 @@ public com.google.protobuf.ByteString getReencryptedUserCredentialsHash() { return reencryptedUserCredentialsHash_; } /** - * - * *
      * Output only. Corresponds to the re-encryption of the
      * `encrypted_user_credentials_hash` field. It is used to match potential
      * password leaks within `encrypted_leak_match_prefixes`.
      * 
* - * - * bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The reencryptedUserCredentialsHash to set. * @return This builder for chaining. */ public Builder setReencryptedUserCredentialsHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } reencryptedUserCredentialsHash_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. Corresponds to the re-encryption of the
      * `encrypted_user_credentials_hash` field. It is used to match potential
      * password leaks within `encrypted_leak_match_prefixes`.
      * 
* - * - * bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearReencryptedUserCredentialsHash() { @@ -991,9 +834,9 @@ public Builder clearReencryptedUserCredentialsHash() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1003,43 +846,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification) - private static final com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification(); } - public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivatePasswordLeakVerification parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivatePasswordLeakVerification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1051,8 +892,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerificationOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerificationOrBuilder.java similarity index 69% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerificationOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerificationOrBuilder.java index 8fae8be5611e..8ec64da097d5 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerificationOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PrivatePasswordLeakVerificationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface PrivatePasswordLeakVerificationOrBuilder - extends +public interface PrivatePasswordLeakVerificationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized
    * username. It is used to look up password leaks associated with that hash
@@ -33,89 +15,65 @@ public interface PrivatePasswordLeakVerificationOrBuilder
    * 
* * bytes lookup_hash_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The lookupHashPrefix. */ com.google.protobuf.ByteString getLookupHashPrefix(); /** - * - * *
    * Optional. Encrypted Scrypt hash of the canonicalized username+password. It
    * is re-encrypted by the server and returned through
    * `reencrypted_user_credentials_hash`.
    * 
* - * bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bytes encrypted_user_credentials_hash = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The encryptedUserCredentialsHash. */ com.google.protobuf.ByteString getEncryptedUserCredentialsHash(); /** - * - * *
    * Output only. List of prefixes of the encrypted potential password leaks
    * that matched the given parameters. They must be compared with the
    * client-side decryption prefix of `reencrypted_user_credentials_hash`
    * 
* - * - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the encryptedLeakMatchPrefixes. */ java.util.List getEncryptedLeakMatchPrefixesList(); /** - * - * *
    * Output only. List of prefixes of the encrypted potential password leaks
    * that matched the given parameters. They must be compared with the
    * client-side decryption prefix of `reencrypted_user_credentials_hash`
    * 
* - * - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of encryptedLeakMatchPrefixes. */ int getEncryptedLeakMatchPrefixesCount(); /** - * - * *
    * Output only. List of prefixes of the encrypted potential password leaks
    * that matched the given parameters. They must be compared with the
    * client-side decryption prefix of `reencrypted_user_credentials_hash`
    * 
* - * - * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated bytes encrypted_leak_match_prefixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The encryptedLeakMatchPrefixes at the given index. */ com.google.protobuf.ByteString getEncryptedLeakMatchPrefixes(int index); /** - * - * *
    * Output only. Corresponds to the re-encryption of the
    * `encrypted_user_credentials_hash` field. It is used to match potential
    * password leaks within `encrypted_leak_match_prefixes`.
    * 
* - * bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bytes reencrypted_user_credentials_hash = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The reencryptedUserCredentialsHash. */ com.google.protobuf.ByteString getReencryptedUserCredentialsHash(); diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ProjectName.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ProjectName.java similarity index 100% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ProjectName.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ProjectName.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java new file mode 100644 index 000000000000..cfe6ce8683d2 --- /dev/null +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java @@ -0,0 +1,1333 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public final class RecaptchaEnterpriseProto { + private RecaptchaEnterpriseProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_Assessment_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_Assessment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_Event_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_Event_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_Metrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_Key_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_Key_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_Key_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_ScoreBucketsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_ScoreBucketsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_ActionMetricsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_ActionMetricsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n=google/cloud/recaptchaenterprise/v1/re" + + "captchaenterprise.proto\022#google.cloud.re" + + "captchaenterprise.v1\032\034google/api/annotat" + + "ions.proto\032\027google/api/client.proto\032\037goo" + + "gle/api/field_behavior.proto\032\031google/api" + + "/resource.proto\032\033google/protobuf/empty.p" + + "roto\032 google/protobuf/field_mask.proto\032\037" + + "google/protobuf/timestamp.proto\032\027google/" + + "rpc/status.proto\"\252\001\n\027CreateAssessmentReq" + + "uest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudreso" + + "urcemanager.googleapis.com/Project\022I\n\nas" + + "sessment\030\002 \001(\0132/.google.cloud.recaptchae" + + "nterprise.v1.AssessmentB\004\342A\001\002\"\226\005\n\020Transa" + + "ctionEvent\022d\n\nevent_type\030\001 \001(\0162J.google." + + "cloud.recaptchaenterprise.v1.Transaction" + + "Event.TransactionEventTypeB\004\342A\001\001\022\024\n\006reas" + + "on\030\002 \001(\tB\004\342A\001\001\022\023\n\005value\030\003 \001(\001B\004\342A\001\001\0224\n\ne" + + "vent_time\030\004 \001(\0132\032.google.protobuf.Timest" + + "ampB\004\342A\001\001\"\272\003\n\024TransactionEventType\022&\n\"TR" + + "ANSACTION_EVENT_TYPE_UNSPECIFIED\020\000\022\024\n\020ME" + + "RCHANT_APPROVE\020\001\022\021\n\rMERCHANT_DENY\020\002\022\021\n\rM" + + "ANUAL_REVIEW\020\003\022\021\n\rAUTHORIZATION\020\004\022\031\n\025AUT" + + "HORIZATION_DECLINE\020\005\022\023\n\017PAYMENT_CAPTURE\020" + + "\006\022\033\n\027PAYMENT_CAPTURE_DECLINE\020\007\022\n\n\006CANCEL" + + "\020\010\022\026\n\022CHARGEBACK_INQUIRY\020\t\022\024\n\020CHARGEBACK" + + "_ALERT\020\n\022\026\n\022FRAUD_NOTIFICATION\020\013\022\016\n\nCHAR" + + "GEBACK\020\014\022\034\n\030CHARGEBACK_REPRESENTMENT\020\r\022\026" + + "\n\022CHARGEBACK_REVERSE\020\016\022\022\n\016REFUND_REQUEST" + + "\020\017\022\022\n\016REFUND_DECLINE\020\020\022\n\n\006REFUND\020\021\022\022\n\016RE" + + "FUND_REVERSE\020\022\"\357\006\n\031AnnotateAssessmentReq" + + "uest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-recaptchaen" + + "terprise.googleapis.com/Assessment\022c\n\nan" + + "notation\030\002 \001(\0162I.google.cloud.recaptchae" + + "nterprise.v1.AnnotateAssessmentRequest.A" + + "nnotationB\004\342A\001\001\022\\\n\007reasons\030\003 \003(\0162E.googl" + + "e.cloud.recaptchaenterprise.v1.AnnotateA" + + "ssessmentRequest.ReasonB\004\342A\001\001\022\037\n\021hashed_" + + "account_id\030\004 \001(\014B\004\342A\001\001\022V\n\021transaction_ev" + + "ent\030\005 \001(\01325.google.cloud.recaptchaenterp" + + "rise.v1.TransactionEventB\004\342A\001\001\"~\n\nAnnota" + + "tion\022\032\n\026ANNOTATION_UNSPECIFIED\020\000\022\016\n\nLEGI" + + "TIMATE\020\001\022\016\n\nFRAUDULENT\020\002\022\030\n\020PASSWORD_COR" + + "RECT\020\003\032\002\010\001\022\032\n\022PASSWORD_INCORRECT\020\004\032\002\010\001\"\317" + + "\002\n\006Reason\022\026\n\022REASON_UNSPECIFIED\020\000\022\016\n\nCHA" + + "RGEBACK\020\001\022\024\n\020CHARGEBACK_FRAUD\020\010\022\026\n\022CHARG" + + "EBACK_DISPUTE\020\t\022\n\n\006REFUND\020\n\022\020\n\014REFUND_FR" + + "AUD\020\013\022\030\n\024TRANSACTION_ACCEPTED\020\014\022\030\n\024TRANS" + + "ACTION_DECLINED\020\r\022\026\n\022PAYMENT_HEURISTICS\020" + + "\002\022\030\n\024INITIATED_TWO_FACTOR\020\007\022\025\n\021PASSED_TW" + + "O_FACTOR\020\003\022\025\n\021FAILED_TWO_FACTOR\020\004\022\024\n\020COR" + + "RECT_PASSWORD\020\005\022\026\n\022INCORRECT_PASSWORD\020\006\022" + + "\017\n\013SOCIAL_SPAM\020\016\"\034\n\032AnnotateAssessmentRe" + + "sponse\"\266\001\n\030EndpointVerificationInfo\022\027\n\re" + + "mail_address\030\001 \001(\tH\000\022\026\n\014phone_number\030\002 \001" + + "(\tH\000\022\033\n\rrequest_token\030\003 \001(\tB\004\342A\001\003\022@\n\026las" + + "t_verification_time\030\004 \001(\0132\032.google.proto" + + "buf.TimestampB\004\342A\001\003B\n\n\010endpoint\"\336\004\n\027Acco" + + "untVerificationInfo\022V\n\tendpoints\030\001 \003(\0132=" + + ".google.cloud.recaptchaenterprise.v1.End" + + "pointVerificationInfoB\004\342A\001\001\022\033\n\rlanguage_" + + "code\030\003 \001(\tB\004\342A\001\001\022m\n\032latest_verification_" + + "result\030\007 \001(\0162C.google.cloud.recaptchaent" + + "erprise.v1.AccountVerificationInfo.Resul" + + "tB\004\342A\001\003\022\024\n\010username\030\002 \001(\tB\002\030\001\"\310\002\n\006Result" + + "\022\026\n\022RESULT_UNSPECIFIED\020\000\022\031\n\025SUCCESS_USER" + + "_VERIFIED\020\001\022\033\n\027ERROR_USER_NOT_VERIFIED\020\002" + + "\022$\n ERROR_SITE_ONBOARDING_INCOMPLETE\020\003\022\037" + + "\n\033ERROR_RECIPIENT_NOT_ALLOWED\020\004\022)\n%ERROR" + + "_RECIPIENT_ABUSE_LIMIT_EXHAUSTED\020\005\022\033\n\027ER" + + "ROR_CRITICAL_INTERNAL\020\006\022\"\n\036ERROR_CUSTOME" + + "R_QUOTA_EXHAUSTED\020\007\022\037\n\033ERROR_VERIFICATIO" + + "N_BYPASSED\020\010\022\032\n\026ERROR_VERDICT_MISMATCH\020\t" + + "\"\320\001\n\037PrivatePasswordLeakVerification\022 \n\022" + + "lookup_hash_prefix\030\001 \001(\014B\004\342A\001\002\022-\n\037encryp" + + "ted_user_credentials_hash\030\002 \001(\014B\004\342A\001\001\022+\n" + + "\035encrypted_leak_match_prefixes\030\003 \003(\014B\004\342A" + + "\001\003\022/\n!reencrypted_user_credentials_hash\030" + + "\004 \001(\014B\004\342A\001\003\"\321\007\n\nAssessment\022\022\n\004name\030\001 \001(\t" + + "B\004\342A\001\003\022?\n\005event\030\002 \001(\0132*.google.cloud.rec" + + "aptchaenterprise.v1.EventB\004\342A\001\001\022N\n\rrisk_" + + "analysis\030\003 \001(\01321.google.cloud.recaptchae" + + "nterprise.v1.RiskAnalysisB\004\342A\001\003\022T\n\020token" + + "_properties\030\004 \001(\01324.google.cloud.recaptc" + + "haenterprise.v1.TokenPropertiesB\004\342A\001\003\022`\n" + + "\024account_verification\030\005 \001(\0132<.google.clo" + + "ud.recaptchaenterprise.v1.AccountVerific" + + "ationInfoB\004\342A\001\001\022i\n\033account_defender_asse" + + "ssment\030\006 \001(\0132>.google.cloud.recaptchaent" + + "erprise.v1.AccountDefenderAssessmentB\004\342A" + + "\001\003\022v\n\"private_password_leak_verification" + + "\030\010 \001(\0132D.google.cloud.recaptchaenterpris" + + "e.v1.PrivatePasswordLeakVerificationB\004\342A" + + "\001\001\022g\n\032firewall_policy_assessment\030\n \001(\0132=" + + ".google.cloud.recaptchaenterprise.v1.Fir" + + "ewallPolicyAssessmentB\004\342A\001\003\022i\n\033fraud_pre" + + "vention_assessment\030\013 \001(\0132>.google.cloud." + + "recaptchaenterprise.v1.FraudPreventionAs" + + "sessmentB\004\342A\001\003\022N\n\rfraud_signals\030\r \001(\01321." + + "google.cloud.recaptchaenterprise.v1.Frau" + + "dSignalsB\004\342A\001\003:_\352A\\\n-recaptchaenterprise" + + ".googleapis.com/Assessment\022+projects/{pr" + + "oject}/assessments/{assessment}\"\257\003\n\005Even" + + "t\022\023\n\005token\030\001 \001(\tB\004\342A\001\001\022\026\n\010site_key\030\002 \001(\t" + + "B\004\342A\001\001\022\030\n\nuser_agent\030\003 \001(\tB\004\342A\001\001\022\035\n\017user" + + "_ip_address\030\004 \001(\tB\004\342A\001\001\022\035\n\017expected_acti" + + "on\030\005 \001(\tB\004\342A\001\001\022\037\n\021hashed_account_id\030\006 \001(" + + "\014B\004\342A\001\001\022\025\n\007express\030\016 \001(\010B\004\342A\001\001\022\033\n\rreques" + + "ted_uri\030\010 \001(\tB\004\342A\001\001\022\"\n\024waf_token_assessm" + + "ent\030\t \001(\010B\004\342A\001\001\022\021\n\003ja3\030\n \001(\tB\004\342A\001\001\022\025\n\007he" + + "aders\030\013 \003(\tB\004\342A\001\001\022(\n\032firewall_policy_eva" + + "luation\030\014 \001(\010B\004\342A\001\001\022T\n\020transaction_data\030" + + "\r \001(\01324.google.cloud.recaptchaenterprise" + + ".v1.TransactionDataB\004\342A\001\001\"\300\n\n\017Transactio" + + "nData\022\033\n\016transaction_id\030\013 \001(\tH\000\210\001\001\022\034\n\016pa" + + "yment_method\030\001 \001(\tB\004\342A\001\001\022\026\n\010card_bin\030\002 \001" + + "(\tB\004\342A\001\001\022\034\n\016card_last_four\030\003 \001(\tB\004\342A\001\001\022\033" + + "\n\rcurrency_code\030\004 \001(\tB\004\342A\001\001\022\023\n\005value\030\005 \001" + + "(\001B\004\342A\001\001\022\034\n\016shipping_value\030\014 \001(\001B\004\342A\001\001\022\\" + + "\n\020shipping_address\030\006 \001(\0132<.google.cloud." + + "recaptchaenterprise.v1.TransactionData.A" + + "ddressB\004\342A\001\001\022[\n\017billing_address\030\007 \001(\0132<." + + "google.cloud.recaptchaenterprise.v1.Tran" + + "sactionData.AddressB\004\342A\001\001\022M\n\004user\030\010 \001(\0132" + + "9.google.cloud.recaptchaenterprise.v1.Tr" + + "ansactionData.UserB\004\342A\001\001\022R\n\tmerchants\030\r " + + "\003(\01329.google.cloud.recaptchaenterprise.v" + + "1.TransactionData.UserB\004\342A\001\001\022N\n\005items\030\016 " + + "\003(\01329.google.cloud.recaptchaenterprise.v" + + "1.TransactionData.ItemB\004\342A\001\001\022\\\n\014gateway_" + + "info\030\n \001(\0132@.google.cloud.recaptchaenter" + + "prise.v1.TransactionData.GatewayInfoB\004\342A" + + "\001\001\032\252\001\n\007Address\022\027\n\trecipient\030\001 \001(\tB\004\342A\001\001\022" + + "\025\n\007address\030\002 \003(\tB\004\342A\001\001\022\026\n\010locality\030\003 \001(\t" + + "B\004\342A\001\001\022!\n\023administrative_area\030\004 \001(\tB\004\342A\001" + + "\001\022\031\n\013region_code\030\005 \001(\tB\004\342A\001\001\022\031\n\013postal_c" + + "ode\030\006 \001(\tB\004\342A\001\001\032\250\001\n\004User\022\030\n\naccount_id\030\006" + + " \001(\tB\004\342A\001\001\022\031\n\013creation_ms\030\001 \001(\003B\004\342A\001\001\022\023\n" + + "\005email\030\002 \001(\tB\004\342A\001\001\022\034\n\016email_verified\030\003 \001" + + "(\010B\004\342A\001\001\022\032\n\014phone_number\030\004 \001(\tB\004\342A\001\001\022\034\n\016" + + "phone_verified\030\005 \001(\010B\004\342A\001\001\032j\n\004Item\022\022\n\004na" + + "me\030\001 \001(\tB\004\342A\001\001\022\023\n\005value\030\002 \001(\001B\004\342A\001\001\022\026\n\010q" + + "uantity\030\003 \001(\003B\004\342A\001\001\022!\n\023merchant_account_" + + "id\030\004 \001(\tB\004\342A\001\001\032\210\001\n\013GatewayInfo\022\022\n\004name\030\001" + + " \001(\tB\004\342A\001\001\022#\n\025gateway_response_code\030\002 \001(" + + "\tB\004\342A\001\001\022\037\n\021avs_response_code\030\003 \001(\tB\004\342A\001\001" + + "\022\037\n\021cvv_response_code\030\004 \001(\tB\004\342A\001\001B\021\n\017_tr" + + "ansaction_id\"\226\003\n\014RiskAnalysis\022\023\n\005score\030\001" + + " \001(\002B\004\342A\001\003\022]\n\007reasons\030\002 \003(\0162F.google.clo" + + "ud.recaptchaenterprise.v1.RiskAnalysis.C" + + "lassificationReasonB\004\342A\001\003\022&\n\030extended_ve" + + "rdict_reasons\030\003 \003(\tB\004\342A\001\003\"\351\001\n\024Classifica" + + "tionReason\022%\n!CLASSIFICATION_REASON_UNSP" + + "ECIFIED\020\000\022\016\n\nAUTOMATION\020\001\022\032\n\026UNEXPECTED_" + + "ENVIRONMENT\020\002\022\024\n\020TOO_MUCH_TRAFFIC\020\003\022\035\n\031U" + + "NEXPECTED_USAGE_PATTERNS\020\004\022\030\n\024LOW_CONFID" + + "ENCE_SCORE\020\005\022\025\n\021SUSPECTED_CARDING\020\006\022\030\n\024S" + + "USPECTED_CHARGEBACK\020\007\"\302\003\n\017TokenPropertie" + + "s\022\023\n\005valid\030\001 \001(\010B\004\342A\001\003\022`\n\016invalid_reason" + + "\030\002 \001(\0162B.google.cloud.recaptchaenterpris" + + "e.v1.TokenProperties.InvalidReasonB\004\342A\001\003" + + "\0225\n\013create_time\030\003 \001(\0132\032.google.protobuf." + + "TimestampB\004\342A\001\003\022\026\n\010hostname\030\004 \001(\tB\004\342A\001\003\022" + + "\"\n\024android_package_name\030\010 \001(\tB\004\342A\001\003\022\033\n\ri" + + "os_bundle_id\030\t \001(\tB\004\342A\001\003\022\024\n\006action\030\005 \001(\t" + + "B\004\342A\001\003\"\221\001\n\rInvalidReason\022\036\n\032INVALID_REAS" + + "ON_UNSPECIFIED\020\000\022\032\n\026UNKNOWN_INVALID_REAS" + + "ON\020\001\022\r\n\tMALFORMED\020\002\022\013\n\007EXPIRED\020\003\022\010\n\004DUPE" + + "\020\004\022\013\n\007MISSING\020\005\022\021\n\rBROWSER_ERROR\020\006\"\272\004\n\031F" + + "raudPreventionAssessment\022\036\n\020transaction_" + + "risk\030\001 \001(\002B\004\342A\001\003\022\177\n\031stolen_instrument_ve" + + "rdict\030\002 \001(\0132V.google.cloud.recaptchaente" + + "rprise.v1.FraudPreventionAssessment.Stol" + + "enInstrumentVerdictB\004\342A\001\003\022u\n\024card_testin" + + "g_verdict\030\003 \001(\0132Q.google.cloud.recaptcha" + + "enterprise.v1.FraudPreventionAssessment." + + "CardTestingVerdictB\004\342A\001\003\022}\n\030behavioral_t" + + "rust_verdict\030\004 \001(\0132U.google.cloud.recapt" + + "chaenterprise.v1.FraudPreventionAssessme" + + "nt.BehavioralTrustVerdictB\004\342A\001\003\032-\n\027Stole" + + "nInstrumentVerdict\022\022\n\004risk\030\001 \001(\002B\004\342A\001\003\032(" + + "\n\022CardTestingVerdict\022\022\n\004risk\030\001 \001(\002B\004\342A\001\003" + + "\032-\n\026BehavioralTrustVerdict\022\023\n\005trust\030\001 \001(" + + "\002B\004\342A\001\003\"\350\003\n\014FraudSignals\022Y\n\014user_signals" + + "\030\001 \001(\0132=.google.cloud.recaptchaenterpris" + + "e.v1.FraudSignals.UserSignalsB\004\342A\001\003\022Y\n\014c" + + "ard_signals\030\002 \001(\0132=.google.cloud.recaptc" + + "haenterprise.v1.FraudSignals.CardSignals" + + "B\004\342A\001\003\032R\n\013UserSignals\022%\n\027active_days_low" + + "er_bound\030\001 \001(\005B\004\342A\001\003\022\034\n\016synthetic_risk\030\002" + + " \001(\002B\004\342A\001\003\032\315\001\n\013CardSignals\022b\n\013card_label" + + "s\030\001 \003(\0162G.google.cloud.recaptchaenterpri" + + "se.v1.FraudSignals.CardSignals.CardLabel" + + "B\004\342A\001\003\"Z\n\tCardLabel\022\032\n\026CARD_LABEL_UNSPEC" + + "IFIED\020\000\022\013\n\007PREPAID\020\001\022\013\n\007VIRTUAL\020\002\022\027\n\023UNE" + + "XPECTED_LOCATION\020\003\"\274\002\n\031AccountDefenderAs" + + "sessment\022i\n\006labels\030\001 \003(\0162S.google.cloud." + + "recaptchaenterprise.v1.AccountDefenderAs" + + "sessment.AccountDefenderLabelB\004\342A\001\003\"\263\001\n\024" + + "AccountDefenderLabel\022&\n\"ACCOUNT_DEFENDER" + + "_LABEL_UNSPECIFIED\020\000\022\021\n\rPROFILE_MATCH\020\001\022" + + "\035\n\031SUSPICIOUS_LOGIN_ACTIVITY\020\002\022\037\n\033SUSPIC" + + "IOUS_ACCOUNT_CREATION\020\003\022 \n\034RELATED_ACCOU" + + "NTS_NUMBER_HIGH\020\004\"\225\001\n\020CreateKeyRequest\022D" + + "\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcema" + + "nager.googleapis.com/Project\022;\n\003key\030\002 \001(" + + "\0132(.google.cloud.recaptchaenterprise.v1." + + "KeyB\004\342A\001\002\"\212\001\n\017ListKeysRequest\022D\n\006parent\030" + + "\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcemanager.goo" + + "gleapis.com/Project\022\027\n\tpage_size\030\002 \001(\005B\004" + + "\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"c\n\020ListKe" + + "ysResponse\0226\n\004keys\030\001 \003(\0132(.google.cloud." + + "recaptchaenterprise.v1.Key\022\027\n\017next_page_" + + "token\030\002 \001(\t\"^\n\036RetrieveLegacySecretKeyRe" + + "quest\022<\n\003key\030\001 \001(\tB/\342A\001\002\372A(\n&recaptchaen" + + "terprise.googleapis.com/Key\"N\n\rGetKeyReq" + + "uest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&recaptchaen" + + "terprise.googleapis.com/Key\"\206\001\n\020UpdateKe" + + "yRequest\022;\n\003key\030\001 \001(\0132(.google.cloud.rec" + + "aptchaenterprise.v1.KeyB\004\342A\001\002\0225\n\013update_" + + "mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004" + + "\342A\001\001\"Q\n\020DeleteKeyRequest\022=\n\004name\030\001 \001(\tB/" + + "\342A\001\002\372A(\n&recaptchaenterprise.googleapis." + + "com/Key\"\267\001\n\033CreateFirewallPolicyRequest\022" + + "D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcem" + + "anager.googleapis.com/Project\022R\n\017firewal" + + "l_policy\030\002 \001(\01323.google.cloud.recaptchae" + + "nterprise.v1.FirewallPolicyB\004\342A\001\002\"\226\001\n\033Li" + + "stFirewallPoliciesRequest\022D\n\006parent\030\001 \001(" + + "\tB4\342A\001\002\372A-\n+cloudresourcemanager.googlea" + + "pis.com/Project\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001" + + "\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\207\001\n\034ListFirew" + + "allPoliciesResponse\022N\n\021firewall_policies" + + "\030\001 \003(\01323.google.cloud.recaptchaenterpris" + + "e.v1.FirewallPolicy\022\027\n\017next_page_token\030\002" + + " \001(\t\"d\n\030GetFirewallPolicyRequest\022H\n\004name" + + "\030\001 \001(\tB:\342A\001\002\372A3\n1recaptchaenterprise.goo" + + "gleapis.com/FirewallPolicy\"\250\001\n\033UpdateFir" + + "ewallPolicyRequest\022R\n\017firewall_policy\030\001 " + + "\001(\01323.google.cloud.recaptchaenterprise.v" + + "1.FirewallPolicyB\004\342A\001\002\0225\n\013update_mask\030\002 " + + "\001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\"g\n" + + "\033DeleteFirewallPolicyRequest\022H\n\004name\030\001 \001" + + "(\tB:\342A\001\002\372A3\n1recaptchaenterprise.googlea" + + "pis.com/FirewallPolicy\"t\n\021MigrateKeyRequ" + + "est\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&recaptchaent" + + "erprise.googleapis.com/Key\022 \n\022skip_billi" + + "ng_check\030\002 \001(\010B\004\342A\001\001\"V\n\021GetMetricsReques" + + "t\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*recaptchaenter" + + "prise.googleapis.com/Metrics\"\301\002\n\007Metrics" + + "\022\022\n\004name\030\004 \001(\tB\004\342A\001\003\022.\n\nstart_time\030\001 \001(\013" + + "2\032.google.protobuf.Timestamp\022H\n\rscore_me" + + "trics\030\002 \003(\01321.google.cloud.recaptchaente" + + "rprise.v1.ScoreMetrics\022P\n\021challenge_metr" + + "ics\030\003 \003(\01325.google.cloud.recaptchaenterp" + + "rise.v1.ChallengeMetrics:V\352AS\n*recaptcha" + + "enterprise.googleapis.com/Metrics\022%proje" + + "cts/{project}/keys/{key}/metrics\"<\n\037Retr" + + "ieveLegacySecretKeyResponse\022\031\n\021legacy_se" + + "cret_key\030\001 \001(\t\"\323\005\n\003Key\022\014\n\004name\030\001 \001(\t\022\032\n\014" + + "display_name\030\002 \001(\tB\004\342A\001\002\022K\n\014web_settings" + + "\030\003 \001(\01323.google.cloud.recaptchaenterpris" + + "e.v1.WebKeySettingsH\000\022S\n\020android_setting" + + "s\030\004 \001(\01327.google.cloud.recaptchaenterpri" + + "se.v1.AndroidKeySettingsH\000\022K\n\014ios_settin" + + "gs\030\005 \001(\01323.google.cloud.recaptchaenterpr" + + "ise.v1.IOSKeySettingsH\000\022J\n\006labels\030\006 \003(\0132" + + "4.google.cloud.recaptchaenterprise.v1.Ke" + + "y.LabelsEntryB\004\342A\001\001\0225\n\013create_time\030\007 \001(\013" + + "2\032.google.protobuf.TimestampB\004\342A\001\003\022R\n\017te" + + "sting_options\030\t \001(\01323.google.cloud.recap" + + "tchaenterprise.v1.TestingOptionsB\004\342A\001\001\022L" + + "\n\014waf_settings\030\n \001(\01320.google.cloud.reca" + + "ptchaenterprise.v1.WafSettingsB\004\342A\001\001\032-\n\013" + + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001:J\352AG\n&recaptchaenterprise.googleapis" + + ".com/Key\022\035projects/{project}/keys/{key}B" + + "\023\n\021platform_settings\"\364\001\n\016TestingOptions\022" + + "\033\n\rtesting_score\030\001 \001(\002B\004\342A\001\001\022e\n\021testing_" + + "challenge\030\002 \001(\0162D.google.cloud.recaptcha" + + "enterprise.v1.TestingOptions.TestingChal" + + "lengeB\004\342A\001\001\"^\n\020TestingChallenge\022!\n\035TESTI" + + "NG_CHALLENGE_UNSPECIFIED\020\000\022\r\n\tNOCAPTCHA\020" + + "\001\022\030\n\024UNSOLVABLE_CHALLENGE\020\002\"\251\004\n\016WebKeySe" + + "ttings\022\037\n\021allow_all_domains\030\003 \001(\010B\004\342A\001\001\022" + + "\035\n\017allowed_domains\030\001 \003(\tB\004\342A\001\001\022\037\n\021allow_" + + "amp_traffic\030\002 \001(\010B\004\342A\001\001\022c\n\020integration_t" + + "ype\030\004 \001(\0162C.google.cloud.recaptchaenterp" + + "rise.v1.WebKeySettings.IntegrationTypeB\004" + + "\342A\001\002\022|\n\035challenge_security_preference\030\005 " + + "\001(\0162O.google.cloud.recaptchaenterprise.v" + + "1.WebKeySettings.ChallengeSecurityPrefer" + + "enceB\004\342A\001\001\"[\n\017IntegrationType\022 \n\034INTEGRA" + + "TION_TYPE_UNSPECIFIED\020\000\022\t\n\005SCORE\020\001\022\014\n\010CH" + + "ECKBOX\020\002\022\r\n\tINVISIBLE\020\003\"v\n\033ChallengeSecu" + + "rityPreference\022-\n)CHALLENGE_SECURITY_PRE" + + "FERENCE_UNSPECIFIED\020\000\022\r\n\tUSABILITY\020\001\022\013\n\007" + + "BALANCE\020\002\022\014\n\010SECURITY\020\003\"\231\001\n\022AndroidKeySe" + + "ttings\022%\n\027allow_all_package_names\030\002 \001(\010B" + + "\004\342A\001\001\022#\n\025allowed_package_names\030\001 \003(\tB\004\342A" + + "\001\001\0227\n)support_non_google_app_store_distr" + + "ibution\030\003 \001(\010B\004\342A\001\001\"\257\001\n\016IOSKeySettings\022\"" + + "\n\024allow_all_bundle_ids\030\002 \001(\010B\004\342A\001\001\022 \n\022al" + + "lowed_bundle_ids\030\001 \003(\tB\004\342A\001\001\022W\n\022apple_de" + + "veloper_id\030\003 \001(\01325.google.cloud.recaptch" + + "aenterprise.v1.AppleDeveloperIdB\004\342A\001\001\"[\n" + + "\020AppleDeveloperId\022\032\n\013private_key\030\001 \001(\tB\005" + + "\342A\002\002\004\022\024\n\006key_id\030\002 \001(\tB\004\342A\001\002\022\025\n\007team_id\030\003" + + " \001(\tB\004\342A\001\002\"\251\001\n\021ScoreDistribution\022_\n\rscor" + + "e_buckets\030\001 \003(\0132H.google.cloud.recaptcha" + + "enterprise.v1.ScoreDistribution.ScoreBuc" + + "ketsEntry\0323\n\021ScoreBucketsEntry\022\013\n\003key\030\001 " + + "\001(\005\022\r\n\005value\030\002 \001(\003:\0028\001\"\253\002\n\014ScoreMetrics\022" + + "O\n\017overall_metrics\030\001 \001(\01326.google.cloud." + + "recaptchaenterprise.v1.ScoreDistribution" + + "\022\\\n\016action_metrics\030\002 \003(\0132D.google.cloud." + + "recaptchaenterprise.v1.ScoreMetrics.Acti" + + "onMetricsEntry\032l\n\022ActionMetricsEntry\022\013\n\003" + + "key\030\001 \001(\t\022E\n\005value\030\002 \001(\01326.google.cloud." + + "recaptchaenterprise.v1.ScoreDistribution" + + ":\0028\001\"o\n\020ChallengeMetrics\022\026\n\016pageload_cou" + + "nt\030\001 \001(\003\022\027\n\017nocaptcha_count\030\002 \001(\003\022\024\n\014fai" + + "led_count\030\003 \001(\003\022\024\n\014passed_count\030\004 \001(\003\"\227\001" + + "\n\030FirewallPolicyAssessment\022\'\n\005error\030\005 \001(" + + "\0132\022.google.rpc.StatusB\004\342A\001\003\022R\n\017firewall_" + + "policy\030\010 \001(\01323.google.cloud.recaptchaent" + + "erprise.v1.FirewallPolicyB\004\342A\001\003\"\357\004\n\016Fire" + + "wallAction\022P\n\005allow\030\001 \001(\0132?.google.cloud" + + ".recaptchaenterprise.v1.FirewallAction.A" + + "llowActionH\000\022P\n\005block\030\002 \001(\0132?.google.clo" + + "ud.recaptchaenterprise.v1.FirewallAction" + + ".BlockActionH\000\022V\n\010redirect\030\005 \001(\0132B.googl" + + "e.cloud.recaptchaenterprise.v1.FirewallA" + + "ction.RedirectActionH\000\022Z\n\nsubstitute\030\003 \001" + + "(\0132D.google.cloud.recaptchaenterprise.v1" + + ".FirewallAction.SubstituteActionH\000\022Y\n\nse" + + "t_header\030\004 \001(\0132C.google.cloud.recaptchae" + + "nterprise.v1.FirewallAction.SetHeaderAct" + + "ionH\000\032\r\n\013AllowAction\032\r\n\013BlockAction\032\020\n\016R" + + "edirectAction\032&\n\020SubstituteAction\022\022\n\004pat" + + "h\030\001 \001(\tB\004\342A\001\001\0329\n\017SetHeaderAction\022\021\n\003key\030" + + "\001 \001(\tB\004\342A\001\001\022\023\n\005value\030\002 \001(\tB\004\342A\001\001B\027\n\025fire" + + "wall_action_oneof\"\240\002\n\016FirewallPolicy\022\014\n\004" + + "name\030\001 \001(\t\022\031\n\013description\030\002 \001(\tB\004\342A\001\001\022\022\n" + + "\004path\030\004 \001(\tB\004\342A\001\001\022\027\n\tcondition\030\005 \001(\tB\004\342A" + + "\001\001\022J\n\007actions\030\006 \003(\01323.google.cloud.recap" + + "tchaenterprise.v1.FirewallActionB\004\342A\001\001:l" + + "\352Ai\n1recaptchaenterprise.googleapis.com/" + + "FirewallPolicy\0224projects/{project}/firew" + + "allpolicies/{firewallpolicy}\"\271\001\n)ListRel" + + "atedAccountGroupMembershipsRequest\022Y\n\006pa" + + "rent\030\001 \001(\tBI\342A\001\002\372AB\022@recaptchaenterprise" + + ".googleapis.com/RelatedAccountGroupMembe" + + "rship\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_t" + + "oken\030\003 \001(\tB\004\342A\001\001\"\264\001\n*ListRelatedAccountG" + + "roupMembershipsResponse\022m\n!related_accou" + + "nt_group_memberships\030\001 \003(\0132B.google.clou" + + "d.recaptchaenterprise.v1.RelatedAccountG" + + "roupMembership\022\027\n\017next_page_token\030\002 \001(\t\"" + + "\245\001\n\037ListRelatedAccountGroupsRequest\022O\n\006p" + + "arent\030\001 \001(\tB?\342A\001\002\372A8\0226recaptchaenterpris" + + "e.googleapis.com/RelatedAccountGroup\022\027\n\t" + + "page_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(" + + "\tB\004\342A\001\001\"\225\001\n ListRelatedAccountGroupsResp" + + "onse\022X\n\026related_account_groups\030\001 \003(\01328.g" + + "oogle.cloud.recaptchaenterprise.v1.Relat" + + "edAccountGroup\022\027\n\017next_page_token\030\002 \001(\t\"" + + "\335\001\n+SearchRelatedAccountGroupMemberships" + + "Request\022Z\n\007project\030\001 \001(\tBI\342A\001\002\372AB\022@recap" + + "tchaenterprise.googleapis.com/RelatedAcc" + + "ountGroupMembership\022\037\n\021hashed_account_id" + + "\030\002 \001(\014B\004\342A\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A\001\001\022\030\n" + + "\npage_token\030\004 \001(\tB\004\342A\001\001\"\266\001\n,SearchRelate" + + "dAccountGroupMembershipsResponse\022m\n!rela" + + "ted_account_group_memberships\030\001 \003(\0132B.go" + + "ogle.cloud.recaptchaenterprise.v1.Relate" + + "dAccountGroupMembership\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"\264\002\n\035RelatedAccountGroupMembersh" + + "ip\022W\n\004name\030\001 \001(\tBI\342A\001\002\372AB\n@recaptchaente" + + "rprise.googleapis.com/RelatedAccountGrou" + + "pMembership\022\031\n\021hashed_account_id\030\002 \001(\014:\236" + + "\001\352A\232\001\n@recaptchaenterprise.googleapis.co" + + "m/RelatedAccountGroupMembership\022Vproject" + + "s/{project}/relatedaccountgroups/{relate" + + "daccountgroup}/memberships/{membership}\"" + + "\340\001\n\023RelatedAccountGroup\022M\n\004name\030\001 \001(\tB?\342" + + "A\001\002\372A8\n6recaptchaenterprise.googleapis.c" + + "om/RelatedAccountGroup:z\352Aw\n6recaptchaen" + + "terprise.googleapis.com/RelatedAccountGr" + + "oup\022=projects/{project}/relatedaccountgr" + + "oups/{relatedaccountgroup}\"\355\002\n\013WafSettin" + + "gs\022V\n\013waf_service\030\001 \001(\0162;.google.cloud.r" + + "ecaptchaenterprise.v1.WafSettings.WafSer" + + "viceB\004\342A\001\002\022V\n\013waf_feature\030\002 \001(\0162;.google" + + ".cloud.recaptchaenterprise.v1.WafSetting" + + "s.WafFeatureB\004\342A\001\002\"o\n\nWafFeature\022\033\n\027WAF_" + + "FEATURE_UNSPECIFIED\020\000\022\022\n\016CHALLENGE_PAGE\020" + + "\001\022\021\n\rSESSION_TOKEN\020\002\022\020\n\014ACTION_TOKEN\020\003\022\013" + + "\n\007EXPRESS\020\005\"=\n\nWafService\022\033\n\027WAF_SERVICE" + + "_UNSPECIFIED\020\000\022\006\n\002CA\020\001\022\n\n\006FASTLY\020\0032\346\035\n\032R" + + "ecaptchaEnterpriseService\022\316\001\n\020CreateAsse", + "ssment\022<.google.cloud.recaptchaenterpris" + + "e.v1.CreateAssessmentRequest\032/.google.cl" + + "oud.recaptchaenterprise.v1.Assessment\"K\332" + + "A\021parent,assessment\202\323\344\223\0021\"#/v1/{parent=p" + + "rojects/*}/assessments:\nassessment\022\340\001\n\022A" + + "nnotateAssessment\022>.google.cloud.recaptc" + + "haenterprise.v1.AnnotateAssessmentReques" + + "t\032?.google.cloud.recaptchaenterprise.v1." + + "AnnotateAssessmentResponse\"I\332A\017name,anno" + + "tation\202\323\344\223\0021\",/v1/{name=projects/*/asses" + + "sments/*}:annotate:\001*\022\244\001\n\tCreateKey\0225.go" + + "ogle.cloud.recaptchaenterprise.v1.Create" + + "KeyRequest\032(.google.cloud.recaptchaenter" + + "prise.v1.Key\"6\332A\nparent,key\202\323\344\223\002#\"\034/v1/{" + + "parent=projects/*}/keys:\003key\022\246\001\n\010ListKey" + + "s\0224.google.cloud.recaptchaenterprise.v1." + + "ListKeysRequest\0325.google.cloud.recaptcha" + + "enterprise.v1.ListKeysResponse\"-\332A\006paren" + + "t\202\323\344\223\002\036\022\034/v1/{parent=projects/*}/keys\022\347\001" + + "\n\027RetrieveLegacySecretKey\022C.google.cloud" + + ".recaptchaenterprise.v1.RetrieveLegacySe" + + "cretKeyRequest\032D.google.cloud.recaptchae" + + "nterprise.v1.RetrieveLegacySecretKeyResp" + + "onse\"A\332A\003key\202\323\344\223\0025\0223/v1/{key=projects/*/" + + "keys/*}:retrieveLegacySecretKey\022\223\001\n\006GetK" + + "ey\0222.google.cloud.recaptchaenterprise.v1" + + ".GetKeyRequest\032(.google.cloud.recaptchae" + + "nterprise.v1.Key\"+\332A\004name\202\323\344\223\002\036\022\034/v1/{na" + + "me=projects/*/keys/*}\022\255\001\n\tUpdateKey\0225.go" + + "ogle.cloud.recaptchaenterprise.v1.Update" + + "KeyRequest\032(.google.cloud.recaptchaenter" + + "prise.v1.Key\"?\332A\017key,update_mask\202\323\344\223\002\'2 " + + "/v1/{key.name=projects/*/keys/*}:\003key\022\207\001" + + "\n\tDeleteKey\0225.google.cloud.recaptchaente" + + "rprise.v1.DeleteKeyRequest\032\026.google.prot" + + "obuf.Empty\"+\332A\004name\202\323\344\223\002\036*\034/v1/{name=pro" + + "jects/*/keys/*}\022\237\001\n\nMigrateKey\0226.google." + + "cloud.recaptchaenterprise.v1.MigrateKeyR" + + "equest\032(.google.cloud.recaptchaenterpris" + + "e.v1.Key\"/\202\323\344\223\002)\"$/v1/{name=projects/*/k" + + "eys/*}:migrate:\001*\022\247\001\n\nGetMetrics\0226.googl" + + "e.cloud.recaptchaenterprise.v1.GetMetric" + + "sRequest\032,.google.cloud.recaptchaenterpr" + + "ise.v1.Metrics\"3\332A\004name\202\323\344\223\002&\022$/v1/{name" + + "=projects/*/keys/*/metrics}\022\351\001\n\024CreateFi" + + "rewallPolicy\022@.google.cloud.recaptchaent" + + "erprise.v1.CreateFirewallPolicyRequest\0323" + + ".google.cloud.recaptchaenterprise.v1.Fir" + + "ewallPolicy\"Z\332A\026parent,firewall_policy\202\323" + + "\344\223\002;\"(/v1/{parent=projects/*}/firewallpo" + + "licies:\017firewall_policy\022\326\001\n\024ListFirewall" + + "Policies\022@.google.cloud.recaptchaenterpr" + + "ise.v1.ListFirewallPoliciesRequest\032A.goo" + + "gle.cloud.recaptchaenterprise.v1.ListFir" + + "ewallPoliciesResponse\"9\332A\006parent\202\323\344\223\002*\022(" + + "/v1/{parent=projects/*}/firewallpolicies" + + "\022\300\001\n\021GetFirewallPolicy\022=.google.cloud.re" + + "captchaenterprise.v1.GetFirewallPolicyRe" + + "quest\0323.google.cloud.recaptchaenterprise" + + ".v1.FirewallPolicy\"7\332A\004name\202\323\344\223\002*\022(/v1/{" + + "name=projects/*/firewallpolicies/*}\022\376\001\n\024" + + "UpdateFirewallPolicy\022@.google.cloud.reca" + + "ptchaenterprise.v1.UpdateFirewallPolicyR" + + "equest\0323.google.cloud.recaptchaenterpris" + + "e.v1.FirewallPolicy\"o\332A\033firewall_policy," + + "update_mask\202\323\344\223\002K28/v1/{firewall_policy." + + "name=projects/*/firewallpolicies/*}:\017fir" + + "ewall_policy\022\251\001\n\024DeleteFirewallPolicy\022@." + + "google.cloud.recaptchaenterprise.v1.Dele" + + "teFirewallPolicyRequest\032\026.google.protobu" + + "f.Empty\"7\332A\004name\202\323\344\223\002**(/v1/{name=projec" + + "ts/*/firewallpolicies/*}\022\346\001\n\030ListRelated" + + "AccountGroups\022D.google.cloud.recaptchaen" + + "terprise.v1.ListRelatedAccountGroupsRequ" + + "est\032E.google.cloud.recaptchaenterprise.v" + + "1.ListRelatedAccountGroupsResponse\"=\332A\006p" + + "arent\202\323\344\223\002.\022,/v1/{parent=projects/*}/rel" + + "atedaccountgroups\022\222\002\n\"ListRelatedAccount" + + "GroupMemberships\022N.google.cloud.recaptch" + + "aenterprise.v1.ListRelatedAccountGroupMe" + + "mbershipsRequest\032O.google.cloud.recaptch" + + "aenterprise.v1.ListRelatedAccountGroupMe" + + "mbershipsResponse\"K\332A\006parent\202\323\344\223\002<\022:/v1/" + + "{parent=projects/*/relatedaccountgroups/" + + "*}/memberships\022\262\002\n$SearchRelatedAccountG" + + "roupMemberships\022P.google.cloud.recaptcha" + + "enterprise.v1.SearchRelatedAccountGroupM" + + "embershipsRequest\032Q.google.cloud.recaptc" + + "haenterprise.v1.SearchRelatedAccountGrou" + + "pMembershipsResponse\"e\332A\031project,hashed_" + + "account_id\202\323\344\223\002C\">/v1/{project=projects/" + + "*}/relatedaccountgroupmemberships:search" + + ":\001*\032V\312A\"recaptchaenterprise.googleapis.c" + + "om\322A.https://www.googleapis.com/auth/clo" + + "ud-platformB\231\002\n!com.google.recaptchaente" + + "rprise.v1B\030RecaptchaEnterpriseProtoP\001Z\\c" + + "loud.google.com/go/recaptchaenterprise/v" + + "2/apiv1/recaptchaenterprisepb;recaptchae" + + "nterprisepb\242\002\004GCRE\252\002#Google.Cloud.Recapt" + + "chaEnterprise.V1\312\002#Google\\Cloud\\Recaptch" + + "aEnterprise\\V1\352\002&Google::Cloud::Recaptch" + + "aEnterprise::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_CreateAssessmentRequest_descriptor, + new java.lang.String[] { "Parent", "Assessment", }); + internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_descriptor, + new java.lang.String[] { "EventType", "Reason", "Value", "EventTime", }); + internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentRequest_descriptor, + new java.lang.String[] { "Name", "Annotation", "Reasons", "HashedAccountId", "TransactionEvent", }); + internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_AnnotateAssessmentResponse_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_EndpointVerificationInfo_descriptor, + new java.lang.String[] { "EmailAddress", "PhoneNumber", "RequestToken", "LastVerificationTime", "Endpoint", }); + internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_AccountVerificationInfo_descriptor, + new java.lang.String[] { "Endpoints", "LanguageCode", "LatestVerificationResult", "Username", }); + internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_PrivatePasswordLeakVerification_descriptor, + new java.lang.String[] { "LookupHashPrefix", "EncryptedUserCredentialsHash", "EncryptedLeakMatchPrefixes", "ReencryptedUserCredentialsHash", }); + internal_static_google_cloud_recaptchaenterprise_v1_Assessment_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_recaptchaenterprise_v1_Assessment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_Assessment_descriptor, + new java.lang.String[] { "Name", "Event", "RiskAnalysis", "TokenProperties", "AccountVerification", "AccountDefenderAssessment", "PrivatePasswordLeakVerification", "FirewallPolicyAssessment", "FraudPreventionAssessment", "FraudSignals", }); + internal_static_google_cloud_recaptchaenterprise_v1_Event_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_recaptchaenterprise_v1_Event_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_Event_descriptor, + new java.lang.String[] { "Token", "SiteKey", "UserAgent", "UserIpAddress", "ExpectedAction", "HashedAccountId", "Express", "RequestedUri", "WafTokenAssessment", "Ja3", "Headers", "FirewallPolicyEvaluation", "TransactionData", }); + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor, + new java.lang.String[] { "TransactionId", "PaymentMethod", "CardBin", "CardLastFour", "CurrencyCode", "Value", "ShippingValue", "ShippingAddress", "BillingAddress", "User", "Merchants", "Items", "GatewayInfo", "TransactionId", }); + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_descriptor, + new java.lang.String[] { "Recipient", "Address", "Locality", "AdministrativeArea", "RegionCode", "PostalCode", }); + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_descriptor, + new java.lang.String[] { "AccountId", "CreationMs", "Email", "EmailVerified", "PhoneNumber", "PhoneVerified", }); + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_descriptor, + new java.lang.String[] { "Name", "Value", "Quantity", "MerchantAccountId", }); + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_descriptor, + new java.lang.String[] { "Name", "GatewayResponseCode", "AvsResponseCode", "CvvResponseCode", }); + internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor, + new java.lang.String[] { "Score", "Reasons", "ExtendedVerdictReasons", }); + internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor, + new java.lang.String[] { "Valid", "InvalidReason", "CreateTime", "Hostname", "AndroidPackageName", "IosBundleId", "Action", }); + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor, + new java.lang.String[] { "TransactionRisk", "StolenInstrumentVerdict", "CardTestingVerdict", "BehavioralTrustVerdict", }); + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor, + new java.lang.String[] { "Risk", }); + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_CardTestingVerdict_descriptor, + new java.lang.String[] { "Risk", }); + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor, + new java.lang.String[] { "Trust", }); + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor, + new java.lang.String[] { "UserSignals", "CardSignals", }); + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_UserSignals_descriptor, + new java.lang.String[] { "ActiveDaysLowerBound", "SyntheticRisk", }); + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_descriptor, + new java.lang.String[] { "CardLabels", }); + internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor, + new java.lang.String[] { "Labels", }); + internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor, + new java.lang.String[] { "Parent", "Key", }); + internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor, + new java.lang.String[] { "Keys", "NextPageToken", }); + internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor, + new java.lang.String[] { "Key", }); + internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor, + new java.lang.String[] { "Key", "UpdateMask", }); + internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor, + new java.lang.String[] { "Parent", "FirewallPolicy", }); + internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor, + new java.lang.String[] { "FirewallPolicies", "NextPageToken", }); + internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor, + new java.lang.String[] { "FirewallPolicy", "UpdateMask", }); + internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor, + new java.lang.String[] { "Name", "SkipBillingCheck", }); + internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_recaptchaenterprise_v1_Metrics_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor, + new java.lang.String[] { "Name", "StartTime", "ScoreMetrics", "ChallengeMetrics", }); + internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor, + new java.lang.String[] { "LegacySecretKey", }); + internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_recaptchaenterprise_v1_Key_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor, + new java.lang.String[] { "Name", "DisplayName", "WebSettings", "AndroidSettings", "IosSettings", "Labels", "CreateTime", "TestingOptions", "WafSettings", "PlatformSettings", }); + internal_static_google_cloud_recaptchaenterprise_v1_Key_LabelsEntry_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_recaptchaenterprise_v1_Key_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_Key_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor, + new java.lang.String[] { "TestingScore", "TestingChallenge", }); + internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor, + new java.lang.String[] { "AllowAllDomains", "AllowedDomains", "AllowAmpTraffic", "IntegrationType", "ChallengeSecurityPreference", }); + internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor, + new java.lang.String[] { "AllowAllPackageNames", "AllowedPackageNames", "SupportNonGoogleAppStoreDistribution", }); + internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor, + new java.lang.String[] { "AllowAllBundleIds", "AllowedBundleIds", "AppleDeveloperId", }); + internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor, + new java.lang.String[] { "PrivateKey", "KeyId", "TeamId", }); + internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor, + new java.lang.String[] { "ScoreBuckets", }); + internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_ScoreBucketsEntry_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_ScoreBucketsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_ScoreBucketsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor, + new java.lang.String[] { "OverallMetrics", "ActionMetrics", }); + internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_ActionMetricsEntry_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_ActionMetricsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_ActionMetricsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor, + new java.lang.String[] { "PageloadCount", "NocaptchaCount", "FailedCount", "PassedCount", }); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor, + new java.lang.String[] { "Error", "FirewallPolicy", }); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor, + new java.lang.String[] { "Allow", "Block", "Redirect", "Substitute", "SetHeader", "FirewallActionOneof", }); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor, + new java.lang.String[] { "Path", }); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor.getNestedTypes().get(4); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor, + new java.lang.String[] { "Name", "Description", "Path", "Condition", "Actions", }); + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor, + new java.lang.String[] { "RelatedAccountGroupMemberships", "NextPageToken", }); + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor, + new java.lang.String[] { "RelatedAccountGroups", "NextPageToken", }); + internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor, + new java.lang.String[] { "Project", "HashedAccountId", "PageSize", "PageToken", }); + internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor, + new java.lang.String[] { "RelatedAccountGroupMemberships", "NextPageToken", }); + internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor = + getDescriptor().getMessageTypes().get(50); + internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor, + new java.lang.String[] { "Name", "HashedAccountId", }); + internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor = + getDescriptor().getMessageTypes().get(52); + internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor, + new java.lang.String[] { "WafService", "WafFeature", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroup.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroup.java similarity index 64% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroup.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroup.java index ac3c568048c3..b38fa3877e13 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroup.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroup.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * A group of related accounts.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.RelatedAccountGroup} */ -public final class RelatedAccountGroup extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RelatedAccountGroup extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.RelatedAccountGroup) RelatedAccountGroupOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RelatedAccountGroup.newBuilder() to construct. private RelatedAccountGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RelatedAccountGroup() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RelatedAccountGroup(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.RelatedAccountGroup.class, - com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder.class); + com.google.recaptchaenterprise.v1.RelatedAccountGroup.class, com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name for the related account group in the format
    * `projects/{project}/relatedaccountgroups/{related_account_group}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -86,32 +61,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name for the related account group in the format
    * `projects/{project}/relatedaccountgroups/{related_account_group}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -156,15 +129,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.RelatedAccountGroup)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.RelatedAccountGroup other = - (com.google.recaptchaenterprise.v1.RelatedAccountGroup) obj; + com.google.recaptchaenterprise.v1.RelatedAccountGroup other = (com.google.recaptchaenterprise.v1.RelatedAccountGroup) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,136 +157,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.RelatedAccountGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.RelatedAccountGroup prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.RelatedAccountGroup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A group of related accounts.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.RelatedAccountGroup} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.RelatedAccountGroup) com.google.recaptchaenterprise.v1.RelatedAccountGroupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.RelatedAccountGroup.class, - com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder.class); + com.google.recaptchaenterprise.v1.RelatedAccountGroup.class, com.google.recaptchaenterprise.v1.RelatedAccountGroup.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.RelatedAccountGroup.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,9 +291,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor; } @java.lang.Override @@ -344,11 +312,8 @@ public com.google.recaptchaenterprise.v1.RelatedAccountGroup build() { @java.lang.Override public com.google.recaptchaenterprise.v1.RelatedAccountGroup buildPartial() { - com.google.recaptchaenterprise.v1.RelatedAccountGroup result = - new com.google.recaptchaenterprise.v1.RelatedAccountGroup(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.RelatedAccountGroup result = new com.google.recaptchaenterprise.v1.RelatedAccountGroup(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -364,39 +329,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.RelatedAccountGroup public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.RelatedAccountGroup) { - return mergeFrom((com.google.recaptchaenterprise.v1.RelatedAccountGroup) other); + return mergeFrom((com.google.recaptchaenterprise.v1.RelatedAccountGroup)other); } else { super.mergeFrom(other); return this; @@ -404,8 +368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.RelatedAccountGroup other) { - if (other == com.google.recaptchaenterprise.v1.RelatedAccountGroup.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.RelatedAccountGroup.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -437,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -459,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name for the related account group in the format
      * `projects/{project}/relatedaccountgroups/{related_account_group}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -489,24 +445,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for the related account group in the format
      * `projects/{project}/relatedaccountgroups/{related_account_group}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -514,41 +467,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for the related account group in the format
      * `projects/{project}/relatedaccountgroups/{related_account_group}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name for the related account group in the format
      * `projects/{project}/relatedaccountgroups/{related_account_group}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -558,33 +500,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name for the related account group in the format
      * `projects/{project}/relatedaccountgroups/{related_account_group}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -594,12 +530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.RelatedAccountGroup) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.RelatedAccountGroup) private static final com.google.recaptchaenterprise.v1.RelatedAccountGroup DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.RelatedAccountGroup(); } @@ -608,27 +544,27 @@ public static com.google.recaptchaenterprise.v1.RelatedAccountGroup getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RelatedAccountGroup parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelatedAccountGroup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -643,4 +579,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.RelatedAccountGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembership.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembership.java similarity index 64% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembership.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembership.java index e2c30efbfc5b..0cc1276ca93d 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembership.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembership.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * A membership in a group of related accounts.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership} */ -public final class RelatedAccountGroupMembership extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RelatedAccountGroupMembership extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership) RelatedAccountGroupMembershipOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RelatedAccountGroupMembership.newBuilder() to construct. private RelatedAccountGroupMembership(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RelatedAccountGroupMembership() { name_ = ""; hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; @@ -44,41 +26,34 @@ private RelatedAccountGroupMembership() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RelatedAccountGroupMembership(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.class, - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder.class); + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.class, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name for this membership in the format
    * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -87,32 +62,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name for this membership in the format
    * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,8 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int HASHED_ACCOUNT_ID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * The unique stable hashed user identifier of the member. The identifier
    * corresponds to a `hashed_account_id` provided in a previous
@@ -132,7 +103,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * bytes hashed_account_id = 2; - * * @return The hashedAccountId. */ @java.lang.Override @@ -141,7 +111,6 @@ public com.google.protobuf.ByteString getHashedAccountId() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,7 +122,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -173,7 +143,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!hashedAccountId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, hashedAccountId_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, hashedAccountId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -183,16 +154,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership other = - (com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership) obj; + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership other = (com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership) obj; - if (!getName().equals(other.getName())) return false; - if (!getHashedAccountId().equals(other.getHashedAccountId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getHashedAccountId() + .equals(other.getHashedAccountId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -214,136 +186,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A membership in a group of related accounts.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership) com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.class, - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder.class); + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.class, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -354,14 +321,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.getDefaultInstance(); } @@ -376,17 +342,13 @@ public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership build() { @java.lang.Override public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership buildPartial() { - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership result = - new com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership result = new com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership result) { + private void buildPartial0(com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -400,50 +362,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership) { - return mergeFrom((com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership) other); + return mergeFrom((com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership other) { - if (other - == com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership other) { + if (other == com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -478,25 +436,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - hashedAccountId_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + hashedAccountId_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -506,28 +461,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name for this membership in the format
      * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -536,24 +486,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for this membership in the format
      * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -561,41 +508,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for this membership in the format
      * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name for this membership in the format
      * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -605,24 +541,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name for this membership in the format
      * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -632,8 +562,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * The unique stable hashed user identifier of the member. The identifier
      * corresponds to a `hashed_account_id` provided in a previous
@@ -641,7 +569,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * bytes hashed_account_id = 2; - * * @return The hashedAccountId. */ @java.lang.Override @@ -649,8 +576,6 @@ public com.google.protobuf.ByteString getHashedAccountId() { return hashedAccountId_; } /** - * - * *
      * The unique stable hashed user identifier of the member. The identifier
      * corresponds to a `hashed_account_id` provided in a previous
@@ -658,22 +583,17 @@ public com.google.protobuf.ByteString getHashedAccountId() {
      * 
* * bytes hashed_account_id = 2; - * * @param value The hashedAccountId to set. * @return This builder for chaining. */ public Builder setHashedAccountId(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } hashedAccountId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The unique stable hashed user identifier of the member. The identifier
      * corresponds to a `hashed_account_id` provided in a previous
@@ -681,7 +601,6 @@ public Builder setHashedAccountId(com.google.protobuf.ByteString value) {
      * 
* * bytes hashed_account_id = 2; - * * @return This builder for chaining. */ public Builder clearHashedAccountId() { @@ -690,9 +609,9 @@ public Builder clearHashedAccountId() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -702,43 +621,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership) - private static final com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership(); } - public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RelatedAccountGroupMembership parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelatedAccountGroupMembership parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -750,8 +667,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipName.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipName.java similarity index 100% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipName.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipName.java diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipOrBuilder.java similarity index 54% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipOrBuilder.java index 56f6b691caf7..6908786b7e7f 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface RelatedAccountGroupMembershipOrBuilder - extends +public interface RelatedAccountGroupMembershipOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name for this membership in the format
    * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name for this membership in the format
    * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The unique stable hashed user identifier of the member. The identifier
    * corresponds to a `hashed_account_id` provided in a previous
@@ -64,7 +37,6 @@ public interface RelatedAccountGroupMembershipOrBuilder
    * 
* * bytes hashed_account_id = 2; - * * @return The hashedAccountId. */ com.google.protobuf.ByteString getHashedAccountId(); diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupName.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupName.java similarity index 100% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupName.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupName.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupOrBuilder.java new file mode 100644 index 000000000000..f9da32954608 --- /dev/null +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface RelatedAccountGroupOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.RelatedAccountGroup) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name for the related account group in the format
+   * `projects/{project}/relatedaccountgroups/{related_account_group}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name for the related account group in the format
+   * `projects/{project}/relatedaccountgroups/{related_account_group}`.
+   * 
+ * + * 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/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequest.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequest.java similarity index 60% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequest.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequest.java index 5495517ceb6f..a6fca5566356 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequest.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequest.java @@ -1,84 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * The retrieve legacy secret key request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest} */ -public final class RetrieveLegacySecretKeyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RetrieveLegacySecretKeyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest) RetrieveLegacySecretKeyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RetrieveLegacySecretKeyRequest.newBuilder() to construct. - private RetrieveLegacySecretKeyRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RetrieveLegacySecretKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RetrieveLegacySecretKeyRequest() { key_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RetrieveLegacySecretKeyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.class, - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.Builder.class); + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.class, com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object key_ = ""; /** - * - * *
    * Required. The public key name linked to the requested secret key in the
    * format `projects/{project}/keys/{key}`.
    * 
* - * - * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The key. */ @java.lang.Override @@ -87,32 +61,30 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** - * - * *
    * Required. The public key name linked to the requested secret key in the
    * format `projects/{project}/keys/{key}`.
    * 
* - * - * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -121,7 +93,6 @@ public com.google.protobuf.ByteString getKeyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -133,7 +104,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } @@ -157,15 +129,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest other = - (com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest) obj; + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest other = (com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest) obj; - if (!getKey().equals(other.getKey())) return false; + if (!getKey() + .equals(other.getKey())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -185,136 +157,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The retrieve legacy secret key request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest) com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.class, - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.Builder.class); + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.class, com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -324,14 +291,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.getDefaultInstance(); } @@ -346,17 +312,13 @@ public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest build() @java.lang.Override public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest buildPartial() { - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest result = - new com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest result = new com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest result) { + private void buildPartial0(com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.key_ = key_; @@ -367,50 +329,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest) other); + return mergeFrom((com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest other) { - if (other - == com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest other) { + if (other == com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; bitField0_ |= 0x00000001; @@ -442,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - key_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -464,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object key_ = ""; /** - * - * *
      * Required. The public key name linked to the requested secret key in the
      * format `projects/{project}/keys/{key}`.
      * 
* - * - * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -494,24 +445,21 @@ public java.lang.String getKey() { } } /** - * - * *
      * Required. The public key name linked to the requested secret key in the
      * format `projects/{project}/keys/{key}`.
      * 
* - * - * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for key. */ - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -519,41 +467,30 @@ public com.google.protobuf.ByteString getKeyBytes() { } } /** - * - * *
      * Required. The public key name linked to the requested secret key in the
      * format `projects/{project}/keys/{key}`.
      * 
* - * - * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The public key name linked to the requested secret key in the
      * format `projects/{project}/keys/{key}`.
      * 
* - * - * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearKey() { @@ -563,33 +500,27 @@ public Builder clearKey() { return this; } /** - * - * *
      * Required. The public key name linked to the requested secret key in the
      * format `projects/{project}/keys/{key}`.
      * 
* - * - * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -599,43 +530,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest) - private static final com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest(); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetrieveLegacySecretKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetrieveLegacySecretKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,8 +576,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequestOrBuilder.java new file mode 100644 index 000000000000..3795bee6e6d9 --- /dev/null +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface RetrieveLegacySecretKeyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The public key name linked to the requested secret key in the
+   * format `projects/{project}/keys/{key}`.
+   * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The key. + */ + java.lang.String getKey(); + /** + *
+   * Required. The public key name linked to the requested secret key in the
+   * format `projects/{project}/keys/{key}`.
+   * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for key. + */ + com.google.protobuf.ByteString + getKeyBytes(); +} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponse.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponse.java similarity index 65% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponse.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponse.java index 7c593c9d187d..a37cde17793b 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponse.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * Secret key is used only in legacy reCAPTCHA. It must be used in a 3rd party
  * integration with legacy reCAPTCHA.
@@ -28,49 +11,43 @@
  *
  * Protobuf type {@code google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse}
  */
-public final class RetrieveLegacySecretKeyResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RetrieveLegacySecretKeyResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse)
     RetrieveLegacySecretKeyResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RetrieveLegacySecretKeyResponse.newBuilder() to construct.
-  private RetrieveLegacySecretKeyResponse(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private RetrieveLegacySecretKeyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RetrieveLegacySecretKeyResponse() {
     legacySecretKey_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RetrieveLegacySecretKeyResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-        .internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-        .internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_fieldAccessorTable
+    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.class,
-            com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.Builder.class);
+            com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.class, com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.Builder.class);
   }
 
   public static final int LEGACY_SECRET_KEY_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object legacySecretKey_ = "";
   /**
-   *
-   *
    * 
    * The secret key (also known as shared secret) authorizes communication
    * between your application backend and the reCAPTCHA Enterprise server to
@@ -79,7 +56,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string legacy_secret_key = 1; - * * @return The legacySecretKey. */ @java.lang.Override @@ -88,15 +64,14 @@ public java.lang.String getLegacySecretKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); legacySecretKey_ = s; return s; } } /** - * - * *
    * The secret key (also known as shared secret) authorizes communication
    * between your application backend and the reCAPTCHA Enterprise server to
@@ -105,15 +80,16 @@ public java.lang.String getLegacySecretKey() {
    * 
* * string legacy_secret_key = 1; - * * @return The bytes for legacySecretKey. */ @java.lang.Override - public com.google.protobuf.ByteString getLegacySecretKeyBytes() { + public com.google.protobuf.ByteString + getLegacySecretKeyBytes() { java.lang.Object ref = legacySecretKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); legacySecretKey_ = b; return b; } else { @@ -122,7 +98,6 @@ public com.google.protobuf.ByteString getLegacySecretKeyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +109,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(legacySecretKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, legacySecretKey_); } @@ -158,15 +134,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse other = - (com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse) obj; + com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse other = (com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse) obj; - if (!getLegacySecretKey().equals(other.getLegacySecretKey())) return false; + if (!getLegacySecretKey() + .equals(other.getLegacySecretKey())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,105 +162,98 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Secret key is used only in legacy reCAPTCHA. It must be used in a 3rd party
    * integration with legacy reCAPTCHA.
@@ -292,33 +261,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse)
       com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-          .internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-          .internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_fieldAccessorTable
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.class,
-              com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.Builder.class);
+              com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.class, com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.Builder.class);
     }
 
-    // Construct using
-    // com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.newBuilder()
-    private Builder() {}
+    // Construct using com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.newBuilder()
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -328,14 +297,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-          .internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse
-        getDefaultInstanceForType() {
+    public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse getDefaultInstanceForType() {
       return com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.getDefaultInstance();
     }
 
@@ -350,17 +318,13 @@ public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse build()
 
     @java.lang.Override
     public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse buildPartial() {
-      com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse result =
-          new com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse result = new com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse result) {
+    private void buildPartial0(com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.legacySecretKey_ = legacySecretKey_;
@@ -371,50 +335,46 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse) {
-        return mergeFrom((com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse) other);
+        return mergeFrom((com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse other) {
-      if (other
-          == com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse other) {
+      if (other == com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse.getDefaultInstance()) return this;
       if (!other.getLegacySecretKey().isEmpty()) {
         legacySecretKey_ = other.legacySecretKey_;
         bitField0_ |= 0x00000001;
@@ -446,19 +406,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                legacySecretKey_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              legacySecretKey_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -468,13 +426,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object legacySecretKey_ = "";
     /**
-     *
-     *
      * 
      * The secret key (also known as shared secret) authorizes communication
      * between your application backend and the reCAPTCHA Enterprise server to
@@ -483,13 +438,13 @@ public Builder mergeFrom(
      * 
* * string legacy_secret_key = 1; - * * @return The legacySecretKey. */ public java.lang.String getLegacySecretKey() { java.lang.Object ref = legacySecretKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); legacySecretKey_ = s; return s; @@ -498,8 +453,6 @@ public java.lang.String getLegacySecretKey() { } } /** - * - * *
      * The secret key (also known as shared secret) authorizes communication
      * between your application backend and the reCAPTCHA Enterprise server to
@@ -508,14 +461,15 @@ public java.lang.String getLegacySecretKey() {
      * 
* * string legacy_secret_key = 1; - * * @return The bytes for legacySecretKey. */ - public com.google.protobuf.ByteString getLegacySecretKeyBytes() { + public com.google.protobuf.ByteString + getLegacySecretKeyBytes() { java.lang.Object ref = legacySecretKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); legacySecretKey_ = b; return b; } else { @@ -523,8 +477,6 @@ public com.google.protobuf.ByteString getLegacySecretKeyBytes() { } } /** - * - * *
      * The secret key (also known as shared secret) authorizes communication
      * between your application backend and the reCAPTCHA Enterprise server to
@@ -533,22 +485,18 @@ public com.google.protobuf.ByteString getLegacySecretKeyBytes() {
      * 
* * string legacy_secret_key = 1; - * * @param value The legacySecretKey to set. * @return This builder for chaining. */ - public Builder setLegacySecretKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLegacySecretKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } legacySecretKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The secret key (also known as shared secret) authorizes communication
      * between your application backend and the reCAPTCHA Enterprise server to
@@ -557,7 +505,6 @@ public Builder setLegacySecretKey(java.lang.String value) {
      * 
* * string legacy_secret_key = 1; - * * @return This builder for chaining. */ public Builder clearLegacySecretKey() { @@ -567,8 +514,6 @@ public Builder clearLegacySecretKey() { return this; } /** - * - * *
      * The secret key (also known as shared secret) authorizes communication
      * between your application backend and the reCAPTCHA Enterprise server to
@@ -577,23 +522,21 @@ public Builder clearLegacySecretKey() {
      * 
* * string legacy_secret_key = 1; - * * @param value The bytes for legacySecretKey to set. * @return This builder for chaining. */ - public Builder setLegacySecretKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLegacySecretKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); legacySecretKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -603,43 +546,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse) - private static final com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse(); } - public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetrieveLegacySecretKeyResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetrieveLegacySecretKeyResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -651,8 +592,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponseOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponseOrBuilder.java similarity index 59% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponseOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponseOrBuilder.java index 3363d7d9e62f..b0fb911f443a 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponseOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RetrieveLegacySecretKeyResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface RetrieveLegacySecretKeyResponseOrBuilder - extends +public interface RetrieveLegacySecretKeyResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The secret key (also known as shared secret) authorizes communication
    * between your application backend and the reCAPTCHA Enterprise server to
@@ -34,13 +16,10 @@ public interface RetrieveLegacySecretKeyResponseOrBuilder
    * 
* * string legacy_secret_key = 1; - * * @return The legacySecretKey. */ java.lang.String getLegacySecretKey(); /** - * - * *
    * The secret key (also known as shared secret) authorizes communication
    * between your application backend and the reCAPTCHA Enterprise server to
@@ -49,8 +28,8 @@ public interface RetrieveLegacySecretKeyResponseOrBuilder
    * 
* * string legacy_secret_key = 1; - * * @return The bytes for legacySecretKey. */ - com.google.protobuf.ByteString getLegacySecretKeyBytes(); + com.google.protobuf.ByteString + getLegacySecretKeyBytes(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysis.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysis.java similarity index 66% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysis.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysis.java index b497ab4dcf4c..da39e2f04cf5 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysis.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysis.java @@ -1,81 +1,60 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * Risk analysis result for an event.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.RiskAnalysis} */ -public final class RiskAnalysis extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RiskAnalysis extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.RiskAnalysis) RiskAnalysisOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RiskAnalysis.newBuilder() to construct. private RiskAnalysis(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RiskAnalysis() { reasons_ = java.util.Collections.emptyList(); - extendedVerdictReasons_ = com.google.protobuf.LazyStringArrayList.emptyList(); + extendedVerdictReasons_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RiskAnalysis(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.RiskAnalysis.class, - com.google.recaptchaenterprise.v1.RiskAnalysis.Builder.class); + com.google.recaptchaenterprise.v1.RiskAnalysis.class, com.google.recaptchaenterprise.v1.RiskAnalysis.Builder.class); } /** - * - * *
    * Reasons contributing to the risk analysis verdict.
    * 
* * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason} */ - public enum ClassificationReason implements com.google.protobuf.ProtocolMessageEnum { + public enum ClassificationReason + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default unspecified type.
      * 
@@ -84,8 +63,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE */ CLASSIFICATION_REASON_UNSPECIFIED(0), /** - * - * *
      * Interactions matched the behavior of an automated agent.
      * 
@@ -94,8 +71,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE */ AUTOMATION(1), /** - * - * *
      * The event originated from an illegitimate environment.
      * 
@@ -104,8 +79,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE */ UNEXPECTED_ENVIRONMENT(2), /** - * - * *
      * Traffic volume from the event source is higher than normal.
      * 
@@ -114,8 +87,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE */ TOO_MUCH_TRAFFIC(3), /** - * - * *
      * Interactions with the site were significantly different than expected
      * patterns.
@@ -125,8 +96,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE
      */
     UNEXPECTED_USAGE_PATTERNS(4),
     /**
-     *
-     *
      * 
      * Too little traffic has been received from this site thus far to generate
      * quality risk analysis.
@@ -136,8 +105,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE
      */
     LOW_CONFIDENCE_SCORE(5),
     /**
-     *
-     *
      * 
      * The request matches behavioral characteristics of a carding attack.
      * 
@@ -146,8 +113,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE */ SUSPECTED_CARDING(6), /** - * - * *
      * The request matches behavioral characteristics of chargebacks for fraud.
      * 
@@ -159,8 +124,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE ; /** - * - * *
      * Default unspecified type.
      * 
@@ -169,8 +132,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE */ public static final int CLASSIFICATION_REASON_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Interactions matched the behavior of an automated agent.
      * 
@@ -179,8 +140,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE */ public static final int AUTOMATION_VALUE = 1; /** - * - * *
      * The event originated from an illegitimate environment.
      * 
@@ -189,8 +148,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE */ public static final int UNEXPECTED_ENVIRONMENT_VALUE = 2; /** - * - * *
      * Traffic volume from the event source is higher than normal.
      * 
@@ -199,8 +156,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE */ public static final int TOO_MUCH_TRAFFIC_VALUE = 3; /** - * - * *
      * Interactions with the site were significantly different than expected
      * patterns.
@@ -210,8 +165,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE
      */
     public static final int UNEXPECTED_USAGE_PATTERNS_VALUE = 4;
     /**
-     *
-     *
      * 
      * Too little traffic has been received from this site thus far to generate
      * quality risk analysis.
@@ -221,8 +174,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE
      */
     public static final int LOW_CONFIDENCE_SCORE_VALUE = 5;
     /**
-     *
-     *
      * 
      * The request matches behavioral characteristics of a carding attack.
      * 
@@ -231,8 +182,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE */ public static final int SUSPECTED_CARDING_VALUE = 6; /** - * - * *
      * The request matches behavioral characteristics of chargebacks for fraud.
      * 
@@ -241,6 +190,7 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE */ public static final int SUSPECTED_CHARGEBACK_VALUE = 7; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -265,24 +215,15 @@ public static ClassificationReason valueOf(int value) { */ public static ClassificationReason forNumber(int value) { switch (value) { - case 0: - return CLASSIFICATION_REASON_UNSPECIFIED; - case 1: - return AUTOMATION; - case 2: - return UNEXPECTED_ENVIRONMENT; - case 3: - return TOO_MUCH_TRAFFIC; - case 4: - return UNEXPECTED_USAGE_PATTERNS; - case 5: - return LOW_CONFIDENCE_SCORE; - case 6: - return SUSPECTED_CARDING; - case 7: - return SUSPECTED_CHARGEBACK; - default: - return null; + case 0: return CLASSIFICATION_REASON_UNSPECIFIED; + case 1: return AUTOMATION; + case 2: return UNEXPECTED_ENVIRONMENT; + case 3: return TOO_MUCH_TRAFFIC; + case 4: return UNEXPECTED_USAGE_PATTERNS; + case 5: return LOW_CONFIDENCE_SCORE; + case 6: return SUSPECTED_CARDING; + case 7: return SUSPECTED_CHARGEBACK; + default: return null; } } @@ -290,28 +231,28 @@ public static ClassificationReason forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + ClassificationReason> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ClassificationReason findValueByNumber(int number) { + return ClassificationReason.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ClassificationReason findValueByNumber(int number) { - return ClassificationReason.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.recaptchaenterprise.v1.RiskAnalysis.getDescriptor().getEnumTypes().get(0); } @@ -320,7 +261,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static ClassificationReason valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -340,8 +282,6 @@ private ClassificationReason(int value) { public static final int SCORE_FIELD_NUMBER = 1; private float score_ = 0F; /** - * - * *
    * Output only. Legitimate event score from 0.0 to 1.0.
    * (1.0 means very likely legitimate traffic while 0.0 means very likely
@@ -349,7 +289,6 @@ private ClassificationReason(int value) {
    * 
* * float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The score. */ @java.lang.Override @@ -358,57 +297,36 @@ public float getScore() { } public static final int REASONS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List reasons_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason> - reasons_converter_ = + java.lang.Integer, com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason> reasons_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, - com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason>() { - public com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason convert( - java.lang.Integer from) { - com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason result = - com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason.forNumber( - from); - return result == null - ? com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason.UNRECOGNIZED - : result; + java.lang.Integer, com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason>() { + public com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason convert(java.lang.Integer from) { + com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason result = com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason.forNumber(from); + return result == null ? com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason.UNRECOGNIZED : result; } }; /** - * - * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the reasons. */ @java.lang.Override - public java.util.List - getReasonsList() { + public java.util.List getReasonsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason>( - reasons_, reasons_converter_); + java.lang.Integer, com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason>(reasons_, reasons_converter_); } /** - * - * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of reasons. */ @java.lang.Override @@ -416,16 +334,11 @@ public int getReasonsCount() { return reasons_.size(); } /** - * - * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The reasons at the given index. */ @@ -434,33 +347,24 @@ public com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason getRe return reasons_converter_.convert(reasons_.get(index)); } /** - * - * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the enum numeric values on the wire for reasons. */ @java.lang.Override - public java.util.List getReasonsValueList() { + public java.util.List + getReasonsValueList() { return reasons_; } /** - * - * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.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. */ @@ -468,60 +372,44 @@ public java.util.List getReasonsValueList() { public int getReasonsValue(int index) { return reasons_.get(index); } - private int reasonsMemoizedSerializedSize; public static final int EXTENDED_VERDICT_REASONS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList extendedVerdictReasons_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Output only. Extended verdict reasons to be used for experimentation only.
    * The set of possible reasons is subject to change.
    * 
* - * - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the extendedVerdictReasons. */ - public com.google.protobuf.ProtocolStringList getExtendedVerdictReasonsList() { + public com.google.protobuf.ProtocolStringList + getExtendedVerdictReasonsList() { return extendedVerdictReasons_; } /** - * - * *
    * Output only. Extended verdict reasons to be used for experimentation only.
    * The set of possible reasons is subject to change.
    * 
* - * - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of extendedVerdictReasons. */ public int getExtendedVerdictReasonsCount() { return extendedVerdictReasons_.size(); } /** - * - * *
    * Output only. Extended verdict reasons to be used for experimentation only.
    * The set of possible reasons is subject to change.
    * 
* - * - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The extendedVerdictReasons at the given index. */ @@ -529,26 +417,21 @@ public java.lang.String getExtendedVerdictReasons(int index) { return extendedVerdictReasons_.get(index); } /** - * - * *
    * Output only. Extended verdict reasons to be used for experimentation only.
    * The set of possible reasons is subject to change.
    * 
* - * - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the extendedVerdictReasons at the given index. */ - public com.google.protobuf.ByteString getExtendedVerdictReasonsBytes(int index) { + public com.google.protobuf.ByteString + getExtendedVerdictReasonsBytes(int index) { return extendedVerdictReasons_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -560,7 +443,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (java.lang.Float.floatToRawIntBits(score_) != 0) { output.writeFloat(1, score_); @@ -573,8 +457,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeEnumNoTag(reasons_.get(i)); } for (int i = 0; i < extendedVerdictReasons_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, extendedVerdictReasons_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, extendedVerdictReasons_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -586,19 +469,20 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, score_); } { int dataSize = 0; for (int i = 0; i < reasons_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(reasons_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(reasons_.get(i)); } size += dataSize; - if (!getReasonsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - reasonsMemoizedSerializedSize = dataSize; + if (!getReasonsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }reasonsMemoizedSerializedSize = dataSize; } { int dataSize = 0; @@ -616,19 +500,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.RiskAnalysis)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.RiskAnalysis other = - (com.google.recaptchaenterprise.v1.RiskAnalysis) obj; + com.google.recaptchaenterprise.v1.RiskAnalysis other = (com.google.recaptchaenterprise.v1.RiskAnalysis) obj; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (!reasons_.equals(other.reasons_)) return false; - if (!getExtendedVerdictReasonsList().equals(other.getExtendedVerdictReasonsList())) - return false; + if (!getExtendedVerdictReasonsList() + .equals(other.getExtendedVerdictReasonsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -641,7 +525,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); if (getReasonsCount() > 0) { hash = (37 * hash) + REASONS_FIELD_NUMBER; hash = (53 * hash) + reasons_.hashCode(); @@ -655,136 +540,132 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.RiskAnalysis parseFrom(java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.RiskAnalysis parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.RiskAnalysis parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RiskAnalysis parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.RiskAnalysis parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RiskAnalysis parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.RiskAnalysis parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RiskAnalysis parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.RiskAnalysis parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RiskAnalysis parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.RiskAnalysis parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.RiskAnalysis parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.RiskAnalysis parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.RiskAnalysis parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.RiskAnalysis prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Risk analysis result for an event.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.RiskAnalysis} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.RiskAnalysis) com.google.recaptchaenterprise.v1.RiskAnalysisOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.RiskAnalysis.class, - com.google.recaptchaenterprise.v1.RiskAnalysis.Builder.class); + com.google.recaptchaenterprise.v1.RiskAnalysis.class, com.google.recaptchaenterprise.v1.RiskAnalysis.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.RiskAnalysis.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -792,14 +673,15 @@ public Builder clear() { score_ = 0F; reasons_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); - extendedVerdictReasons_ = com.google.protobuf.LazyStringArrayList.emptyList(); + extendedVerdictReasons_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_RiskAnalysis_descriptor; } @java.lang.Override @@ -818,12 +700,9 @@ public com.google.recaptchaenterprise.v1.RiskAnalysis build() { @java.lang.Override public com.google.recaptchaenterprise.v1.RiskAnalysis buildPartial() { - com.google.recaptchaenterprise.v1.RiskAnalysis result = - new com.google.recaptchaenterprise.v1.RiskAnalysis(this); + com.google.recaptchaenterprise.v1.RiskAnalysis result = new com.google.recaptchaenterprise.v1.RiskAnalysis(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -851,39 +730,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.RiskAnalysis result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.RiskAnalysis) { - return mergeFrom((com.google.recaptchaenterprise.v1.RiskAnalysis) other); + return mergeFrom((com.google.recaptchaenterprise.v1.RiskAnalysis)other); } else { super.mergeFrom(other); return this; @@ -941,45 +819,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: - { - score_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - case 16: - { + case 13: { + score_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 16: { + int tmpRaw = input.readEnum(); + ensureReasonsIsMutable(); + reasons_.add(tmpRaw); + break; + } // case 16 + case 18: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureReasonsIsMutable(); reasons_.add(tmpRaw); - break; - } // case 16 - case 18: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureReasonsIsMutable(); - reasons_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureExtendedVerdictReasonsIsMutable(); - extendedVerdictReasons_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + } + input.popLimit(oldLimit); + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureExtendedVerdictReasonsIsMutable(); + extendedVerdictReasons_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -989,13 +862,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private float score_; + private float score_ ; /** - * - * *
      * Output only. Legitimate event score from 0.0 to 1.0.
      * (1.0 means very likely legitimate traffic while 0.0 means very likely
@@ -1003,7 +873,6 @@ public Builder mergeFrom(
      * 
* * float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The score. */ @java.lang.Override @@ -1011,8 +880,6 @@ public float getScore() { return score_; } /** - * - * *
      * Output only. Legitimate event score from 0.0 to 1.0.
      * (1.0 means very likely legitimate traffic while 0.0 means very likely
@@ -1020,7 +887,6 @@ public float getScore() {
      * 
* * float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The score to set. * @return This builder for chaining. */ @@ -1032,8 +898,6 @@ public Builder setScore(float value) { return this; } /** - * - * *
      * Output only. Legitimate event score from 0.0 to 1.0.
      * (1.0 means very likely legitimate traffic while 0.0 means very likely
@@ -1041,7 +905,6 @@ public Builder setScore(float value) {
      * 
* * float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearScore() { @@ -1051,8 +914,8 @@ public Builder clearScore() { return this; } - private java.util.List reasons_ = java.util.Collections.emptyList(); - + private java.util.List reasons_ = + java.util.Collections.emptyList(); private void ensureReasonsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { reasons_ = new java.util.ArrayList(reasons_); @@ -1060,69 +923,46 @@ private void ensureReasonsIsMutable() { } } /** - * - * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the reasons. */ - public java.util.List - getReasonsList() { + public java.util.List getReasonsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason>( - reasons_, reasons_converter_); + java.lang.Integer, com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason>(reasons_, reasons_converter_); } /** - * - * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of reasons. */ public int getReasonsCount() { return reasons_.size(); } /** - * - * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.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.v1.RiskAnalysis.ClassificationReason getReasons( - int index) { + public com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason getReasons(int index) { return reasons_converter_.convert(reasons_.get(index)); } /** - * - * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.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. @@ -1138,21 +978,15 @@ public Builder setReasons( return this; } /** - * - * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The reasons to add. * @return This builder for chaining. */ - public Builder addReasons( - com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason value) { + public Builder addReasons(com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason value) { if (value == null) { throw new NullPointerException(); } @@ -1162,23 +996,16 @@ public Builder addReasons( return this; } /** - * - * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The reasons to add. * @return This builder for chaining. */ public Builder addAllReasons( - java.lang.Iterable< - ? extends com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason> - values) { + java.lang.Iterable values) { ensureReasonsIsMutable(); for (com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason value : values) { reasons_.add(value.getNumber()); @@ -1187,16 +1014,11 @@ public Builder addAllReasons( return this; } /** - * - * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearReasons() { @@ -1206,32 +1028,23 @@ public Builder clearReasons() { return this; } /** - * - * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the enum numeric values on the wire for reasons. */ - public java.util.List getReasonsValueList() { + public java.util.List + getReasonsValueList() { return java.util.Collections.unmodifiableList(reasons_); } /** - * - * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.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. */ @@ -1239,37 +1052,28 @@ public int getReasonsValue(int index) { return reasons_.get(index); } /** - * - * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The enum numeric value on the wire for reasons to set. * @return This builder for chaining. */ - public Builder setReasonsValue(int index, int value) { + public Builder setReasonsValue( + int index, int value) { ensureReasonsIsMutable(); reasons_.set(index, value); onChanged(); return this; } /** - * - * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for reasons to add. * @return This builder for chaining. */ @@ -1280,20 +1084,16 @@ public Builder addReasonsValue(int value) { return this; } /** - * - * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.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) { + public Builder addAllReasonsValue( + java.lang.Iterable values) { ensureReasonsIsMutable(); for (int value : values) { reasons_.add(value); @@ -1304,61 +1104,45 @@ public Builder addAllReasonsValue(java.lang.Iterable values) private com.google.protobuf.LazyStringArrayList extendedVerdictReasons_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureExtendedVerdictReasonsIsMutable() { if (!extendedVerdictReasons_.isModifiable()) { - extendedVerdictReasons_ = - new com.google.protobuf.LazyStringArrayList(extendedVerdictReasons_); + extendedVerdictReasons_ = new com.google.protobuf.LazyStringArrayList(extendedVerdictReasons_); } bitField0_ |= 0x00000004; } /** - * - * *
      * Output only. Extended verdict reasons to be used for experimentation only.
      * The set of possible reasons is subject to change.
      * 
* - * - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the extendedVerdictReasons. */ - public com.google.protobuf.ProtocolStringList getExtendedVerdictReasonsList() { + public com.google.protobuf.ProtocolStringList + getExtendedVerdictReasonsList() { extendedVerdictReasons_.makeImmutable(); return extendedVerdictReasons_; } /** - * - * *
      * Output only. Extended verdict reasons to be used for experimentation only.
      * The set of possible reasons is subject to change.
      * 
* - * - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of extendedVerdictReasons. */ public int getExtendedVerdictReasonsCount() { return extendedVerdictReasons_.size(); } /** - * - * *
      * Output only. Extended verdict reasons to be used for experimentation only.
      * The set of possible reasons is subject to change.
      * 
* - * - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The extendedVerdictReasons at the given index. */ @@ -1366,43 +1150,33 @@ public java.lang.String getExtendedVerdictReasons(int index) { return extendedVerdictReasons_.get(index); } /** - * - * *
      * Output only. Extended verdict reasons to be used for experimentation only.
      * The set of possible reasons is subject to change.
      * 
* - * - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the extendedVerdictReasons at the given index. */ - public com.google.protobuf.ByteString getExtendedVerdictReasonsBytes(int index) { + public com.google.protobuf.ByteString + getExtendedVerdictReasonsBytes(int index) { return extendedVerdictReasons_.getByteString(index); } /** - * - * *
      * Output only. Extended verdict reasons to be used for experimentation only.
      * The set of possible reasons is subject to change.
      * 
* - * - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The extendedVerdictReasons to set. * @return This builder for chaining. */ - public Builder setExtendedVerdictReasons(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setExtendedVerdictReasons( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureExtendedVerdictReasonsIsMutable(); extendedVerdictReasons_.set(index, value); bitField0_ |= 0x00000004; @@ -1410,24 +1184,18 @@ public Builder setExtendedVerdictReasons(int index, java.lang.String value) { return this; } /** - * - * *
      * Output only. Extended verdict reasons to be used for experimentation only.
      * The set of possible reasons is subject to change.
      * 
* - * - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The extendedVerdictReasons to add. * @return This builder for chaining. */ - public Builder addExtendedVerdictReasons(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addExtendedVerdictReasons( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureExtendedVerdictReasonsIsMutable(); extendedVerdictReasons_.add(value); bitField0_ |= 0x00000004; @@ -1435,67 +1203,53 @@ public Builder addExtendedVerdictReasons(java.lang.String value) { return this; } /** - * - * *
      * Output only. Extended verdict reasons to be used for experimentation only.
      * The set of possible reasons is subject to change.
      * 
* - * - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The extendedVerdictReasons to add. * @return This builder for chaining. */ - public Builder addAllExtendedVerdictReasons(java.lang.Iterable values) { + public Builder addAllExtendedVerdictReasons( + java.lang.Iterable values) { ensureExtendedVerdictReasonsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, extendedVerdictReasons_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, extendedVerdictReasons_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. Extended verdict reasons to be used for experimentation only.
      * The set of possible reasons is subject to change.
      * 
* - * - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearExtendedVerdictReasons() { - extendedVerdictReasons_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + extendedVerdictReasons_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Output only. Extended verdict reasons to be used for experimentation only.
      * The set of possible reasons is subject to change.
      * 
* - * - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes of the extendedVerdictReasons to add. * @return This builder for chaining. */ - public Builder addExtendedVerdictReasonsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addExtendedVerdictReasonsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureExtendedVerdictReasonsIsMutable(); extendedVerdictReasons_.add(value); @@ -1503,9 +1257,9 @@ public Builder addExtendedVerdictReasonsBytes(com.google.protobuf.ByteString val onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1515,12 +1269,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.RiskAnalysis) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.RiskAnalysis) private static final com.google.recaptchaenterprise.v1.RiskAnalysis DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.RiskAnalysis(); } @@ -1529,27 +1283,27 @@ public static com.google.recaptchaenterprise.v1.RiskAnalysis getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RiskAnalysis parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RiskAnalysis parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1564,4 +1318,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.RiskAnalysis getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysisOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysisOrBuilder.java similarity index 55% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysisOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysisOrBuilder.java index 04ae7defa32c..a6d5db97c96f 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysisOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysisOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface RiskAnalysisOrBuilder - extends +public interface RiskAnalysisOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.RiskAnalysis) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Legitimate event score from 0.0 to 1.0.
    * (1.0 means very likely legitimate traffic while 0.0 means very likely
@@ -33,145 +15,101 @@ public interface RiskAnalysisOrBuilder
    * 
* * float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The score. */ float getScore(); /** - * - * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the reasons. */ - java.util.List - getReasonsList(); + java.util.List getReasonsList(); /** - * - * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of reasons. */ int getReasonsCount(); /** - * - * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.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.v1.RiskAnalysis.ClassificationReason getReasons(int index); /** - * - * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the enum numeric values on the wire for reasons. */ - java.util.List getReasonsValueList(); + java.util.List + getReasonsValueList(); /** - * - * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.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); /** - * - * *
    * Output only. Extended verdict reasons to be used for experimentation only.
    * The set of possible reasons is subject to change.
    * 
* - * - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the extendedVerdictReasons. */ - java.util.List getExtendedVerdictReasonsList(); + java.util.List + getExtendedVerdictReasonsList(); /** - * - * *
    * Output only. Extended verdict reasons to be used for experimentation only.
    * The set of possible reasons is subject to change.
    * 
* - * - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of extendedVerdictReasons. */ int getExtendedVerdictReasonsCount(); /** - * - * *
    * Output only. Extended verdict reasons to be used for experimentation only.
    * The set of possible reasons is subject to change.
    * 
* - * - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The extendedVerdictReasons at the given index. */ java.lang.String getExtendedVerdictReasons(int index); /** - * - * *
    * Output only. Extended verdict reasons to be used for experimentation only.
    * The set of possible reasons is subject to change.
    * 
* - * - * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the extendedVerdictReasons at the given index. */ - com.google.protobuf.ByteString getExtendedVerdictReasonsBytes(int index); + com.google.protobuf.ByteString + getExtendedVerdictReasonsBytes(int index); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistribution.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistribution.java similarity index 64% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistribution.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistribution.java index ab8021f5d587..d1a3a89c9ee6 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistribution.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistribution.java @@ -1,107 +1,86 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * Score distribution.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ScoreDistribution} */ -public final class ScoreDistribution extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ScoreDistribution extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.ScoreDistribution) ScoreDistributionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ScoreDistribution.newBuilder() to construct. private ScoreDistribution(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ScoreDistribution() {} + private ScoreDistribution() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ScoreDistribution(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetScoreBuckets(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ScoreDistribution.class, - com.google.recaptchaenterprise.v1.ScoreDistribution.Builder.class); + com.google.recaptchaenterprise.v1.ScoreDistribution.class, com.google.recaptchaenterprise.v1.ScoreDistribution.Builder.class); } public static final int SCORE_BUCKETS_FIELD_NUMBER = 1; - private static final class ScoreBucketsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_ScoreBucketsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT64, - 0L); + static final com.google.protobuf.MapEntry< + java.lang.Integer, java.lang.Long> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_ScoreBucketsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.INT32, + 0, + com.google.protobuf.WireFormat.FieldType.INT64, + 0L); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField scoreBuckets_; - + private com.google.protobuf.MapField< + java.lang.Integer, java.lang.Long> scoreBuckets_; private com.google.protobuf.MapField - internalGetScoreBuckets() { + internalGetScoreBuckets() { if (scoreBuckets_ == null) { return com.google.protobuf.MapField.emptyMapField( ScoreBucketsDefaultEntryHolder.defaultEntry); } return scoreBuckets_; } - public int getScoreBucketsCount() { return internalGetScoreBuckets().getMap().size(); } /** - * - * *
    * Map key is score value multiplied by 100. The scores are discrete values
    * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -111,19 +90,20 @@ public int getScoreBucketsCount() {
    * map<int32, int64> score_buckets = 1;
    */
   @java.lang.Override
-  public boolean containsScoreBuckets(int key) {
+  public boolean containsScoreBuckets(
+      int key) {
 
     return internalGetScoreBuckets().getMap().containsKey(key);
   }
-  /** Use {@link #getScoreBucketsMap()} instead. */
+  /**
+   * Use {@link #getScoreBucketsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getScoreBuckets() {
     return getScoreBucketsMap();
   }
   /**
-   *
-   *
    * 
    * Map key is score value multiplied by 100. The scores are discrete values
    * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -137,8 +117,6 @@ public java.util.Map getScoreBucketsMap() {
     return internalGetScoreBuckets().getMap();
   }
   /**
-   *
-   *
    * 
    * Map key is score value multiplied by 100. The scores are discrete values
    * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -148,14 +126,15 @@ public java.util.Map getScoreBucketsMap() {
    * map<int32, int64> score_buckets = 1;
    */
   @java.lang.Override
-  public long getScoreBucketsOrDefault(int key, long defaultValue) {
+  public long getScoreBucketsOrDefault(
+      int key,
+      long defaultValue) {
 
-    java.util.Map map = internalGetScoreBuckets().getMap();
+    java.util.Map map =
+        internalGetScoreBuckets().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Map key is score value multiplied by 100. The scores are discrete values
    * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -165,9 +144,11 @@ public long getScoreBucketsOrDefault(int key, long defaultValue) {
    * map<int32, int64> score_buckets = 1;
    */
   @java.lang.Override
-  public long getScoreBucketsOrThrow(int key) {
+  public long getScoreBucketsOrThrow(
+      int key) {
 
-    java.util.Map map = internalGetScoreBuckets().getMap();
+    java.util.Map map =
+        internalGetScoreBuckets().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -175,7 +156,6 @@ public long getScoreBucketsOrThrow(int key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -187,9 +167,14 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    com.google.protobuf.GeneratedMessageV3.serializeIntegerMapTo(
-        output, internalGetScoreBuckets(), ScoreBucketsDefaultEntryHolder.defaultEntry, 1);
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    com.google.protobuf.GeneratedMessageV3
+      .serializeIntegerMapTo(
+        output,
+        internalGetScoreBuckets(),
+        ScoreBucketsDefaultEntryHolder.defaultEntry,
+        1);
     getUnknownFields().writeTo(output);
   }
 
@@ -199,15 +184,15 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    for (java.util.Map.Entry entry :
-        internalGetScoreBuckets().getMap().entrySet()) {
-      com.google.protobuf.MapEntry scoreBuckets__ =
-          ScoreBucketsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scoreBuckets__);
+    for (java.util.Map.Entry entry
+         : internalGetScoreBuckets().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      scoreBuckets__ = ScoreBucketsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, scoreBuckets__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -217,15 +202,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.recaptchaenterprise.v1.ScoreDistribution)) {
       return super.equals(obj);
     }
-    com.google.recaptchaenterprise.v1.ScoreDistribution other =
-        (com.google.recaptchaenterprise.v1.ScoreDistribution) obj;
+    com.google.recaptchaenterprise.v1.ScoreDistribution other = (com.google.recaptchaenterprise.v1.ScoreDistribution) obj;
 
-    if (!internalGetScoreBuckets().equals(other.internalGetScoreBuckets())) return false;
+    if (!internalGetScoreBuckets().equals(
+        other.internalGetScoreBuckets())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -247,155 +232,153 @@ public int hashCode() {
   }
 
   public static com.google.recaptchaenterprise.v1.ScoreDistribution parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.recaptchaenterprise.v1.ScoreDistribution parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.recaptchaenterprise.v1.ScoreDistribution parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.recaptchaenterprise.v1.ScoreDistribution parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.recaptchaenterprise.v1.ScoreDistribution parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.recaptchaenterprise.v1.ScoreDistribution parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.recaptchaenterprise.v1.ScoreDistribution parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.recaptchaenterprise.v1.ScoreDistribution parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.recaptchaenterprise.v1.ScoreDistribution parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.recaptchaenterprise.v1.ScoreDistribution parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.recaptchaenterprise.v1.ScoreDistribution parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.recaptchaenterprise.v1.ScoreDistribution parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.recaptchaenterprise.v1.ScoreDistribution parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.recaptchaenterprise.v1.ScoreDistribution parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.recaptchaenterprise.v1.ScoreDistribution prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Score distribution.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ScoreDistribution} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.ScoreDistribution) com.google.recaptchaenterprise.v1.ScoreDistributionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetScoreBuckets(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 1: return internalGetMutableScoreBuckets(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ScoreDistribution.class, - com.google.recaptchaenterprise.v1.ScoreDistribution.Builder.class); + com.google.recaptchaenterprise.v1.ScoreDistribution.class, com.google.recaptchaenterprise.v1.ScoreDistribution.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.ScoreDistribution.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -405,9 +388,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor; } @java.lang.Override @@ -426,11 +409,8 @@ public com.google.recaptchaenterprise.v1.ScoreDistribution build() { @java.lang.Override public com.google.recaptchaenterprise.v1.ScoreDistribution buildPartial() { - com.google.recaptchaenterprise.v1.ScoreDistribution result = - new com.google.recaptchaenterprise.v1.ScoreDistribution(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.ScoreDistribution result = new com.google.recaptchaenterprise.v1.ScoreDistribution(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -447,39 +427,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.ScoreDistribution r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.ScoreDistribution) { - return mergeFrom((com.google.recaptchaenterprise.v1.ScoreDistribution) other); + return mergeFrom((com.google.recaptchaenterprise.v1.ScoreDistribution)other); } else { super.mergeFrom(other); return this; @@ -487,9 +466,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.ScoreDistribution other) { - if (other == com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance()) - return this; - internalGetMutableScoreBuckets().mergeFrom(other.internalGetScoreBuckets()); + if (other == com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance()) return this; + internalGetMutableScoreBuckets().mergeFrom( + other.internalGetScoreBuckets()); bitField0_ |= 0x00000001; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -517,25 +496,21 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.protobuf.MapEntry scoreBuckets__ = - input.readMessage( - ScoreBucketsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableScoreBuckets() - .getMutableMap() - .put(scoreBuckets__.getKey(), scoreBuckets__.getValue()); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.protobuf.MapEntry + scoreBuckets__ = input.readMessage( + ScoreBucketsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableScoreBuckets().getMutableMap().put( + scoreBuckets__.getKey(), scoreBuckets__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -545,11 +520,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.MapField scoreBuckets_; - + private com.google.protobuf.MapField< + java.lang.Integer, java.lang.Long> scoreBuckets_; private com.google.protobuf.MapField internalGetScoreBuckets() { if (scoreBuckets_ == null) { @@ -558,12 +532,11 @@ public Builder mergeFrom( } return scoreBuckets_; } - private com.google.protobuf.MapField internalGetMutableScoreBuckets() { if (scoreBuckets_ == null) { - scoreBuckets_ = - com.google.protobuf.MapField.newMapField(ScoreBucketsDefaultEntryHolder.defaultEntry); + scoreBuckets_ = com.google.protobuf.MapField.newMapField( + ScoreBucketsDefaultEntryHolder.defaultEntry); } if (!scoreBuckets_.isMutable()) { scoreBuckets_ = scoreBuckets_.copy(); @@ -572,13 +545,10 @@ public Builder mergeFrom( onChanged(); return scoreBuckets_; } - public int getScoreBucketsCount() { return internalGetScoreBuckets().getMap().size(); } /** - * - * *
      * Map key is score value multiplied by 100. The scores are discrete values
      * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -588,19 +558,20 @@ public int getScoreBucketsCount() {
      * map<int32, int64> score_buckets = 1;
      */
     @java.lang.Override
-    public boolean containsScoreBuckets(int key) {
+    public boolean containsScoreBuckets(
+        int key) {
 
       return internalGetScoreBuckets().getMap().containsKey(key);
     }
-    /** Use {@link #getScoreBucketsMap()} instead. */
+    /**
+     * Use {@link #getScoreBucketsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getScoreBuckets() {
       return getScoreBucketsMap();
     }
     /**
-     *
-     *
      * 
      * Map key is score value multiplied by 100. The scores are discrete values
      * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -614,8 +585,6 @@ public java.util.Map getScoreBucketsMap() {
       return internalGetScoreBuckets().getMap();
     }
     /**
-     *
-     *
      * 
      * Map key is score value multiplied by 100. The scores are discrete values
      * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -625,14 +594,15 @@ public java.util.Map getScoreBucketsMap() {
      * map<int32, int64> score_buckets = 1;
      */
     @java.lang.Override
-    public long getScoreBucketsOrDefault(int key, long defaultValue) {
+    public long getScoreBucketsOrDefault(
+        int key,
+        long defaultValue) {
 
-      java.util.Map map = internalGetScoreBuckets().getMap();
+      java.util.Map map =
+          internalGetScoreBuckets().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Map key is score value multiplied by 100. The scores are discrete values
      * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -642,23 +612,23 @@ public long getScoreBucketsOrDefault(int key, long defaultValue) {
      * map<int32, int64> score_buckets = 1;
      */
     @java.lang.Override
-    public long getScoreBucketsOrThrow(int key) {
+    public long getScoreBucketsOrThrow(
+        int key) {
 
-      java.util.Map map = internalGetScoreBuckets().getMap();
+      java.util.Map map =
+          internalGetScoreBuckets().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearScoreBuckets() {
       bitField0_ = (bitField0_ & ~0x00000001);
-      internalGetMutableScoreBuckets().getMutableMap().clear();
+      internalGetMutableScoreBuckets().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Map key is score value multiplied by 100. The scores are discrete values
      * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -667,20 +637,23 @@ public Builder clearScoreBuckets() {
      *
      * map<int32, int64> score_buckets = 1;
      */
-    public Builder removeScoreBuckets(int key) {
+    public Builder removeScoreBuckets(
+        int key) {
 
-      internalGetMutableScoreBuckets().getMutableMap().remove(key);
+      internalGetMutableScoreBuckets().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableScoreBuckets() {
+    public java.util.Map
+        getMutableScoreBuckets() {
       bitField0_ |= 0x00000001;
       return internalGetMutableScoreBuckets().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Map key is score value multiplied by 100. The scores are discrete values
      * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -689,15 +662,17 @@ public java.util.Map getMutableScoreBuckets()
      *
      * map<int32, int64> score_buckets = 1;
      */
-    public Builder putScoreBuckets(int key, long value) {
+    public Builder putScoreBuckets(
+        int key,
+        long value) {
 
-      internalGetMutableScoreBuckets().getMutableMap().put(key, value);
+
+      internalGetMutableScoreBuckets().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000001;
       return this;
     }
     /**
-     *
-     *
      * 
      * Map key is score value multiplied by 100. The scores are discrete values
      * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -706,14 +681,16 @@ public Builder putScoreBuckets(int key, long value) {
      *
      * map<int32, int64> score_buckets = 1;
      */
-    public Builder putAllScoreBuckets(java.util.Map values) {
-      internalGetMutableScoreBuckets().getMutableMap().putAll(values);
+    public Builder putAllScoreBuckets(
+        java.util.Map values) {
+      internalGetMutableScoreBuckets().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000001;
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -723,12 +700,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.ScoreDistribution)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.ScoreDistribution)
   private static final com.google.recaptchaenterprise.v1.ScoreDistribution DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.ScoreDistribution();
   }
@@ -737,27 +714,27 @@ public static com.google.recaptchaenterprise.v1.ScoreDistribution getDefaultInst
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ScoreDistribution parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ScoreDistribution parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -772,4 +749,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.recaptchaenterprise.v1.ScoreDistribution getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistributionOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistributionOrBuilder.java
similarity index 64%
rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistributionOrBuilder.java
rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistributionOrBuilder.java
index 2a5d832751da..d1f5bb7a06ee 100644
--- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistributionOrBuilder.java
+++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreDistributionOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto
 
 package com.google.recaptchaenterprise.v1;
 
-public interface ScoreDistributionOrBuilder
-    extends
+public interface ScoreDistributionOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.ScoreDistribution)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Map key is score value multiplied by 100. The scores are discrete values
    * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -36,8 +18,6 @@ public interface ScoreDistributionOrBuilder
    */
   int getScoreBucketsCount();
   /**
-   *
-   *
    * 
    * Map key is score value multiplied by 100. The scores are discrete values
    * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -46,13 +26,15 @@ public interface ScoreDistributionOrBuilder
    *
    * map<int32, int64> score_buckets = 1;
    */
-  boolean containsScoreBuckets(int key);
-  /** Use {@link #getScoreBucketsMap()} instead. */
+  boolean containsScoreBuckets(
+      int key);
+  /**
+   * Use {@link #getScoreBucketsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getScoreBuckets();
+  java.util.Map
+  getScoreBuckets();
   /**
-   *
-   *
    * 
    * Map key is score value multiplied by 100. The scores are discrete values
    * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -61,10 +43,9 @@ public interface ScoreDistributionOrBuilder
    *
    * map<int32, int64> score_buckets = 1;
    */
-  java.util.Map getScoreBucketsMap();
+  java.util.Map
+  getScoreBucketsMap();
   /**
-   *
-   *
    * 
    * Map key is score value multiplied by 100. The scores are discrete values
    * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -73,10 +54,10 @@ public interface ScoreDistributionOrBuilder
    *
    * map<int32, int64> score_buckets = 1;
    */
-  long getScoreBucketsOrDefault(int key, long defaultValue);
+  long getScoreBucketsOrDefault(
+      int key,
+      long defaultValue);
   /**
-   *
-   *
    * 
    * Map key is score value multiplied by 100. The scores are discrete values
    * between [0, 1]. The maximum number of buckets is on order of a few dozen,
@@ -85,5 +66,6 @@ public interface ScoreDistributionOrBuilder
    *
    * map<int32, int64> score_buckets = 1;
    */
-  long getScoreBucketsOrThrow(int key);
+  long getScoreBucketsOrThrow(
+      int key);
 }
diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetrics.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetrics.java
similarity index 61%
rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetrics.java
rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetrics.java
index 894ecbd66f70..b29905ab8461 100644
--- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetrics.java
+++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetrics.java
@@ -1,87 +1,67 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto
 
 package com.google.recaptchaenterprise.v1;
 
 /**
- *
- *
  * 
  * Metrics related to scoring.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ScoreMetrics} */ -public final class ScoreMetrics extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ScoreMetrics extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.ScoreMetrics) ScoreMetricsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ScoreMetrics.newBuilder() to construct. private ScoreMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ScoreMetrics() {} + private ScoreMetrics() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ScoreMetrics(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetActionMetrics(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ScoreMetrics.class, - com.google.recaptchaenterprise.v1.ScoreMetrics.Builder.class); + com.google.recaptchaenterprise.v1.ScoreMetrics.class, com.google.recaptchaenterprise.v1.ScoreMetrics.Builder.class); } public static final int OVERALL_METRICS_FIELD_NUMBER = 1; private com.google.recaptchaenterprise.v1.ScoreDistribution overallMetrics_; /** - * - * *
    * Aggregated score metrics for all traffic.
    * 
* * .google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1; - * * @return Whether the overallMetrics field is set. */ @java.lang.Override @@ -89,25 +69,18 @@ public boolean hasOverallMetrics() { return overallMetrics_ != null; } /** - * - * *
    * Aggregated score metrics for all traffic.
    * 
* * .google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1; - * * @return The overallMetrics. */ @java.lang.Override public com.google.recaptchaenterprise.v1.ScoreDistribution getOverallMetrics() { - return overallMetrics_ == null - ? com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance() - : overallMetrics_; + return overallMetrics_ == null ? com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance() : overallMetrics_; } /** - * - * *
    * Aggregated score metrics for all traffic.
    * 
@@ -116,132 +89,100 @@ public com.google.recaptchaenterprise.v1.ScoreDistribution getOverallMetrics() { */ @java.lang.Override public com.google.recaptchaenterprise.v1.ScoreDistributionOrBuilder getOverallMetricsOrBuilder() { - return overallMetrics_ == null - ? com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance() - : overallMetrics_; + return overallMetrics_ == null ? com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance() : overallMetrics_; } public static final int ACTION_METRICS_FIELD_NUMBER = 2; - private static final class ActionMetricsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.recaptchaenterprise.v1.ScoreDistribution> - defaultEntry = + java.lang.String, com.google.recaptchaenterprise.v1.ScoreDistribution> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_ActionMetricsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance()); + .newDefaultInstance( + com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_ActionMetricsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance()); } - @SuppressWarnings("serial") private com.google.protobuf.MapField< - java.lang.String, com.google.recaptchaenterprise.v1.ScoreDistribution> - actionMetrics_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.recaptchaenterprise.v1.ScoreDistribution> - internalGetActionMetrics() { + java.lang.String, com.google.recaptchaenterprise.v1.ScoreDistribution> actionMetrics_; + private com.google.protobuf.MapField + internalGetActionMetrics() { if (actionMetrics_ == null) { return com.google.protobuf.MapField.emptyMapField( ActionMetricsDefaultEntryHolder.defaultEntry); } return actionMetrics_; } - public int getActionMetricsCount() { return internalGetActionMetrics().getMap().size(); } /** - * - * *
    * Action-based metrics. The map key is the action name which specified by the
    * site owners at time of the "execute" client-side call.
    * 
* - * - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; - * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; */ @java.lang.Override - public boolean containsActionMetrics(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsActionMetrics( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetActionMetrics().getMap().containsKey(key); } - /** Use {@link #getActionMetricsMap()} instead. */ + /** + * Use {@link #getActionMetricsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getActionMetrics() { + public java.util.Map getActionMetrics() { return getActionMetricsMap(); } /** - * - * *
    * Action-based metrics. The map key is the action name which specified by the
    * site owners at time of the "execute" client-side call.
    * 
* - * - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; - * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; */ @java.lang.Override - public java.util.Map - getActionMetricsMap() { + public java.util.Map getActionMetricsMap() { return internalGetActionMetrics().getMap(); } /** - * - * *
    * Action-based metrics. The map key is the action name which specified by the
    * site owners at time of the "execute" client-side call.
    * 
* - * - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; - * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; */ @java.lang.Override - public /* nullable */ com.google.recaptchaenterprise.v1.ScoreDistribution - getActionMetricsOrDefault( - java.lang.String key, - /* nullable */ - com.google.recaptchaenterprise.v1.ScoreDistribution defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + public /* nullable */ +com.google.recaptchaenterprise.v1.ScoreDistribution getActionMetricsOrDefault( + java.lang.String key, + /* nullable */ +com.google.recaptchaenterprise.v1.ScoreDistribution defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetActionMetrics().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Action-based metrics. The map key is the action name which specified by the
    * site owners at time of the "execute" client-side call.
    * 
* - * - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; - * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; */ @java.lang.Override public com.google.recaptchaenterprise.v1.ScoreDistribution getActionMetricsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetActionMetrics().getMap(); if (!map.containsKey(key)) { @@ -251,7 +192,6 @@ public com.google.recaptchaenterprise.v1.ScoreDistribution getActionMetricsOrThr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,12 +203,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (overallMetrics_ != null) { output.writeMessage(1, getOverallMetrics()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetActionMetrics(), ActionMetricsDefaultEntryHolder.defaultEntry, 2); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetActionMetrics(), + ActionMetricsDefaultEntryHolder.defaultEntry, + 2); getUnknownFields().writeTo(output); } @@ -279,19 +224,18 @@ public int getSerializedSize() { size = 0; if (overallMetrics_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOverallMetrics()); - } - for (java.util.Map.Entry - entry : internalGetActionMetrics().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.recaptchaenterprise.v1.ScoreDistribution> - actionMetrics__ = - ActionMetricsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, actionMetrics__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOverallMetrics()); + } + for (java.util.Map.Entry entry + : internalGetActionMetrics().getMap().entrySet()) { + com.google.protobuf.MapEntry + actionMetrics__ = ActionMetricsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, actionMetrics__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -301,19 +245,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.ScoreMetrics)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.ScoreMetrics other = - (com.google.recaptchaenterprise.v1.ScoreMetrics) obj; + com.google.recaptchaenterprise.v1.ScoreMetrics other = (com.google.recaptchaenterprise.v1.ScoreMetrics) obj; if (hasOverallMetrics() != other.hasOverallMetrics()) return false; if (hasOverallMetrics()) { - if (!getOverallMetrics().equals(other.getOverallMetrics())) return false; + if (!getOverallMetrics() + .equals(other.getOverallMetrics())) return false; } - if (!internalGetActionMetrics().equals(other.internalGetActionMetrics())) return false; + if (!internalGetActionMetrics().equals( + other.internalGetActionMetrics())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -338,156 +283,154 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.ScoreMetrics parseFrom(java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.ScoreMetrics parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ScoreMetrics parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ScoreMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ScoreMetrics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ScoreMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.ScoreMetrics parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ScoreMetrics parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ScoreMetrics parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ScoreMetrics parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.ScoreMetrics parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.ScoreMetrics parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.ScoreMetrics parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.ScoreMetrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.ScoreMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Metrics related to scoring.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.ScoreMetrics} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.ScoreMetrics) com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetActionMetrics(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 2: return internalGetMutableActionMetrics(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.ScoreMetrics.class, - com.google.recaptchaenterprise.v1.ScoreMetrics.Builder.class); + com.google.recaptchaenterprise.v1.ScoreMetrics.class, com.google.recaptchaenterprise.v1.ScoreMetrics.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.ScoreMetrics.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -502,9 +445,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor; } @java.lang.Override @@ -523,11 +466,8 @@ public com.google.recaptchaenterprise.v1.ScoreMetrics build() { @java.lang.Override public com.google.recaptchaenterprise.v1.ScoreMetrics buildPartial() { - com.google.recaptchaenterprise.v1.ScoreMetrics result = - new com.google.recaptchaenterprise.v1.ScoreMetrics(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.ScoreMetrics result = new com.google.recaptchaenterprise.v1.ScoreMetrics(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -535,8 +475,9 @@ public com.google.recaptchaenterprise.v1.ScoreMetrics buildPartial() { private void buildPartial0(com.google.recaptchaenterprise.v1.ScoreMetrics result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.overallMetrics_ = - overallMetricsBuilder_ == null ? overallMetrics_ : overallMetricsBuilder_.build(); + result.overallMetrics_ = overallMetricsBuilder_ == null + ? overallMetrics_ + : overallMetricsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.actionMetrics_ = internalGetActionMetrics(); @@ -548,39 +489,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.ScoreMetrics result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.ScoreMetrics) { - return mergeFrom((com.google.recaptchaenterprise.v1.ScoreMetrics) other); + return mergeFrom((com.google.recaptchaenterprise.v1.ScoreMetrics)other); } else { super.mergeFrom(other); return this; @@ -592,7 +532,8 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.ScoreMetrics other) { if (other.hasOverallMetrics()) { mergeOverallMetrics(other.getOverallMetrics()); } - internalGetMutableActionMetrics().mergeFrom(other.internalGetActionMetrics()); + internalGetMutableActionMetrics().mergeFrom( + other.internalGetActionMetrics()); bitField0_ |= 0x00000002; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -620,33 +561,28 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getOverallMetricsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.protobuf.MapEntry< - java.lang.String, com.google.recaptchaenterprise.v1.ScoreDistribution> - actionMetrics__ = - input.readMessage( - ActionMetricsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableActionMetrics() - .getMutableMap() - .put(actionMetrics__.getKey(), actionMetrics__.getValue()); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getOverallMetricsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.protobuf.MapEntry + actionMetrics__ = input.readMessage( + ActionMetricsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableActionMetrics().getMutableMap().put( + actionMetrics__.getKey(), actionMetrics__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -656,52 +592,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.recaptchaenterprise.v1.ScoreDistribution overallMetrics_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.ScoreDistribution, - com.google.recaptchaenterprise.v1.ScoreDistribution.Builder, - com.google.recaptchaenterprise.v1.ScoreDistributionOrBuilder> - overallMetricsBuilder_; + com.google.recaptchaenterprise.v1.ScoreDistribution, com.google.recaptchaenterprise.v1.ScoreDistribution.Builder, com.google.recaptchaenterprise.v1.ScoreDistributionOrBuilder> overallMetricsBuilder_; /** - * - * *
      * Aggregated score metrics for all traffic.
      * 
* * .google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1; - * * @return Whether the overallMetrics field is set. */ public boolean hasOverallMetrics() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Aggregated score metrics for all traffic.
      * 
* * .google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1; - * * @return The overallMetrics. */ public com.google.recaptchaenterprise.v1.ScoreDistribution getOverallMetrics() { if (overallMetricsBuilder_ == null) { - return overallMetrics_ == null - ? com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance() - : overallMetrics_; + return overallMetrics_ == null ? com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance() : overallMetrics_; } else { return overallMetricsBuilder_.getMessage(); } } /** - * - * *
      * Aggregated score metrics for all traffic.
      * 
@@ -722,8 +644,6 @@ public Builder setOverallMetrics(com.google.recaptchaenterprise.v1.ScoreDistribu return this; } /** - * - * *
      * Aggregated score metrics for all traffic.
      * 
@@ -742,8 +662,6 @@ public Builder setOverallMetrics( return this; } /** - * - * *
      * Aggregated score metrics for all traffic.
      * 
@@ -752,10 +670,9 @@ public Builder setOverallMetrics( */ public Builder mergeOverallMetrics(com.google.recaptchaenterprise.v1.ScoreDistribution value) { if (overallMetricsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && overallMetrics_ != null - && overallMetrics_ - != com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + overallMetrics_ != null && + overallMetrics_ != com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance()) { getOverallMetricsBuilder().mergeFrom(value); } else { overallMetrics_ = value; @@ -768,8 +685,6 @@ public Builder mergeOverallMetrics(com.google.recaptchaenterprise.v1.ScoreDistri return this; } /** - * - * *
      * Aggregated score metrics for all traffic.
      * 
@@ -787,8 +702,6 @@ public Builder clearOverallMetrics() { return this; } /** - * - * *
      * Aggregated score metrics for all traffic.
      * 
@@ -801,27 +714,21 @@ public com.google.recaptchaenterprise.v1.ScoreDistribution.Builder getOverallMet return getOverallMetricsFieldBuilder().getBuilder(); } /** - * - * *
      * Aggregated score metrics for all traffic.
      * 
* * .google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1; */ - public com.google.recaptchaenterprise.v1.ScoreDistributionOrBuilder - getOverallMetricsOrBuilder() { + public com.google.recaptchaenterprise.v1.ScoreDistributionOrBuilder getOverallMetricsOrBuilder() { if (overallMetricsBuilder_ != null) { return overallMetricsBuilder_.getMessageOrBuilder(); } else { - return overallMetrics_ == null - ? com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance() - : overallMetrics_; + return overallMetrics_ == null ? + com.google.recaptchaenterprise.v1.ScoreDistribution.getDefaultInstance() : overallMetrics_; } } /** - * - * *
      * Aggregated score metrics for all traffic.
      * 
@@ -829,28 +736,22 @@ public com.google.recaptchaenterprise.v1.ScoreDistribution.Builder getOverallMet * .google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.ScoreDistribution, - com.google.recaptchaenterprise.v1.ScoreDistribution.Builder, - com.google.recaptchaenterprise.v1.ScoreDistributionOrBuilder> + com.google.recaptchaenterprise.v1.ScoreDistribution, com.google.recaptchaenterprise.v1.ScoreDistribution.Builder, com.google.recaptchaenterprise.v1.ScoreDistributionOrBuilder> getOverallMetricsFieldBuilder() { if (overallMetricsBuilder_ == null) { - overallMetricsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.ScoreDistribution, - com.google.recaptchaenterprise.v1.ScoreDistribution.Builder, - com.google.recaptchaenterprise.v1.ScoreDistributionOrBuilder>( - getOverallMetrics(), getParentForChildren(), isClean()); + overallMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.ScoreDistribution, com.google.recaptchaenterprise.v1.ScoreDistribution.Builder, com.google.recaptchaenterprise.v1.ScoreDistributionOrBuilder>( + getOverallMetrics(), + getParentForChildren(), + isClean()); overallMetrics_ = null; } return overallMetricsBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.recaptchaenterprise.v1.ScoreDistribution> - actionMetrics_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.recaptchaenterprise.v1.ScoreDistribution> + java.lang.String, com.google.recaptchaenterprise.v1.ScoreDistribution> actionMetrics_; + private com.google.protobuf.MapField internalGetActionMetrics() { if (actionMetrics_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -858,13 +759,11 @@ public com.google.recaptchaenterprise.v1.ScoreDistribution.Builder getOverallMet } return actionMetrics_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.recaptchaenterprise.v1.ScoreDistribution> + private com.google.protobuf.MapField internalGetMutableActionMetrics() { if (actionMetrics_ == null) { - actionMetrics_ = - com.google.protobuf.MapField.newMapField(ActionMetricsDefaultEntryHolder.defaultEntry); + actionMetrics_ = com.google.protobuf.MapField.newMapField( + ActionMetricsDefaultEntryHolder.defaultEntry); } if (!actionMetrics_.isMutable()) { actionMetrics_ = actionMetrics_.copy(); @@ -873,96 +772,74 @@ public com.google.recaptchaenterprise.v1.ScoreDistribution.Builder getOverallMet onChanged(); return actionMetrics_; } - public int getActionMetricsCount() { return internalGetActionMetrics().getMap().size(); } /** - * - * *
      * Action-based metrics. The map key is the action name which specified by the
      * site owners at time of the "execute" client-side call.
      * 
* - * - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; - * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; */ @java.lang.Override - public boolean containsActionMetrics(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsActionMetrics( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetActionMetrics().getMap().containsKey(key); } - /** Use {@link #getActionMetricsMap()} instead. */ + /** + * Use {@link #getActionMetricsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getActionMetrics() { + public java.util.Map getActionMetrics() { return getActionMetricsMap(); } /** - * - * *
      * Action-based metrics. The map key is the action name which specified by the
      * site owners at time of the "execute" client-side call.
      * 
* - * - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; - * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; */ @java.lang.Override - public java.util.Map - getActionMetricsMap() { + public java.util.Map getActionMetricsMap() { return internalGetActionMetrics().getMap(); } /** - * - * *
      * Action-based metrics. The map key is the action name which specified by the
      * site owners at time of the "execute" client-side call.
      * 
* - * - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; - * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; */ @java.lang.Override - public /* nullable */ com.google.recaptchaenterprise.v1.ScoreDistribution - getActionMetricsOrDefault( - java.lang.String key, - /* nullable */ - com.google.recaptchaenterprise.v1.ScoreDistribution defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + public /* nullable */ +com.google.recaptchaenterprise.v1.ScoreDistribution getActionMetricsOrDefault( + java.lang.String key, + /* nullable */ +com.google.recaptchaenterprise.v1.ScoreDistribution defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetActionMetrics().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Action-based metrics. The map key is the action name which specified by the
      * site owners at time of the "execute" client-side call.
      * 
* - * - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; - * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; */ @java.lang.Override public com.google.recaptchaenterprise.v1.ScoreDistribution getActionMetricsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetActionMetrics().getMap(); if (!map.containsKey(key)) { @@ -970,32 +847,30 @@ public com.google.recaptchaenterprise.v1.ScoreDistribution getActionMetricsOrThr } return map.get(key); } - public Builder clearActionMetrics() { bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutableActionMetrics().getMutableMap().clear(); + internalGetMutableActionMetrics().getMutableMap() + .clear(); return this; } /** - * - * *
      * Action-based metrics. The map key is the action name which specified by the
      * site owners at time of the "execute" client-side call.
      * 
* - * - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; - * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; */ - public Builder removeActionMetrics(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableActionMetrics().getMutableMap().remove(key); + public Builder removeActionMetrics( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableActionMetrics().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map getMutableActionMetrics() { @@ -1003,51 +878,41 @@ public Builder removeActionMetrics(java.lang.String key) { return internalGetMutableActionMetrics().getMutableMap(); } /** - * - * *
      * Action-based metrics. The map key is the action name which specified by the
      * site owners at time of the "execute" client-side call.
      * 
* - * - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; - * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; */ public Builder putActionMetrics( - java.lang.String key, com.google.recaptchaenterprise.v1.ScoreDistribution value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableActionMetrics().getMutableMap().put(key, value); + java.lang.String key, + com.google.recaptchaenterprise.v1.ScoreDistribution value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableActionMetrics().getMutableMap() + .put(key, value); bitField0_ |= 0x00000002; return this; } /** - * - * *
      * Action-based metrics. The map key is the action name which specified by the
      * site owners at time of the "execute" client-side call.
      * 
* - * - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; - * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; */ public Builder putAllActionMetrics( - java.util.Map - values) { - internalGetMutableActionMetrics().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableActionMetrics().getMutableMap() + .putAll(values); bitField0_ |= 0x00000002; return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1057,12 +922,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.ScoreMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.ScoreMetrics) private static final com.google.recaptchaenterprise.v1.ScoreMetrics DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.ScoreMetrics(); } @@ -1071,27 +936,27 @@ public static com.google.recaptchaenterprise.v1.ScoreMetrics getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScoreMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScoreMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1106,4 +971,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.ScoreMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetricsOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetricsOrBuilder.java similarity index 58% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetricsOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetricsOrBuilder.java index 48f36754b594..ca178ab0d775 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetricsOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ScoreMetricsOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface ScoreMetricsOrBuilder - extends +public interface ScoreMetricsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.ScoreMetrics) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Aggregated score metrics for all traffic.
    * 
* * .google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1; - * * @return Whether the overallMetrics field is set. */ boolean hasOverallMetrics(); /** - * - * *
    * Aggregated score metrics for all traffic.
    * 
* * .google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1; - * * @return The overallMetrics. */ com.google.recaptchaenterprise.v1.ScoreDistribution getOverallMetrics(); /** - * - * *
    * Aggregated score metrics for all traffic.
    * 
@@ -59,77 +35,61 @@ public interface ScoreMetricsOrBuilder com.google.recaptchaenterprise.v1.ScoreDistributionOrBuilder getOverallMetricsOrBuilder(); /** - * - * *
    * Action-based metrics. The map key is the action name which specified by the
    * site owners at time of the "execute" client-side call.
    * 
* - * - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; - * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; */ int getActionMetricsCount(); /** - * - * *
    * Action-based metrics. The map key is the action name which specified by the
    * site owners at time of the "execute" client-side call.
    * 
* - * - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; - * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; + */ + boolean containsActionMetrics( + java.lang.String key); + /** + * Use {@link #getActionMetricsMap()} instead. */ - boolean containsActionMetrics(java.lang.String key); - /** Use {@link #getActionMetricsMap()} instead. */ @java.lang.Deprecated java.util.Map - getActionMetrics(); + getActionMetrics(); /** - * - * *
    * Action-based metrics. The map key is the action name which specified by the
    * site owners at time of the "execute" client-side call.
    * 
* - * - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; - * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; */ java.util.Map - getActionMetricsMap(); + getActionMetricsMap(); /** - * - * *
    * Action-based metrics. The map key is the action name which specified by the
    * site owners at time of the "execute" client-side call.
    * 
* - * - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; - * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; */ /* nullable */ - com.google.recaptchaenterprise.v1.ScoreDistribution getActionMetricsOrDefault( +com.google.recaptchaenterprise.v1.ScoreDistribution getActionMetricsOrDefault( java.lang.String key, /* nullable */ - com.google.recaptchaenterprise.v1.ScoreDistribution defaultValue); +com.google.recaptchaenterprise.v1.ScoreDistribution defaultValue); /** - * - * *
    * Action-based metrics. The map key is the action name which specified by the
    * site owners at time of the "execute" client-side call.
    * 
* - * - * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; - * + * map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2; */ - com.google.recaptchaenterprise.v1.ScoreDistribution getActionMetricsOrThrow(java.lang.String key); + com.google.recaptchaenterprise.v1.ScoreDistribution getActionMetricsOrThrow( + java.lang.String key); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequest.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequest.java similarity index 64% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequest.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequest.java index 7e6abeeb70b9..ff0f863c769f 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequest.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequest.java @@ -1,45 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * The request message to search related account group memberships.
  * 
* - * Protobuf type {@code - * google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest} + * Protobuf type {@code google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest} */ -public final class SearchRelatedAccountGroupMembershipsRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SearchRelatedAccountGroupMembershipsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest) SearchRelatedAccountGroupMembershipsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SearchRelatedAccountGroupMembershipsRequest.newBuilder() to construct. - private SearchRelatedAccountGroupMembershipsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SearchRelatedAccountGroupMembershipsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SearchRelatedAccountGroupMembershipsRequest() { project_ = ""; hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; @@ -48,43 +27,35 @@ private SearchRelatedAccountGroupMembershipsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SearchRelatedAccountGroupMembershipsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.class, - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.Builder - .class); + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.class, com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.Builder.class); } public static final int PROJECT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; /** - * - * *
    * Required. The name of the project to search related account group
    * memberships from. Specify the project name in the following format:
    * `projects/{project}`.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ @java.lang.Override @@ -93,33 +64,31 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** - * - * *
    * Required. The name of the project to search related account group
    * memberships from. Specify the project name in the following format:
    * `projects/{project}`.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -130,8 +99,6 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int HASHED_ACCOUNT_ID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * Optional. The unique stable hashed user identifier used to search
    * connections. The identifier should correspond to a `hashed_account_id`
@@ -139,7 +106,6 @@ public com.google.protobuf.ByteString getProjectBytes() {
    * 
* * bytes hashed_account_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hashedAccountId. */ @java.lang.Override @@ -150,8 +116,6 @@ public com.google.protobuf.ByteString getHashedAccountId() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of groups to return. The service might return
    * fewer than this value. If unspecified, at most 50 groups are returned. The
@@ -159,7 +123,6 @@ public com.google.protobuf.ByteString getHashedAccountId() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -168,12 +131,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. A page token, received from a previous
    * `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the
@@ -185,7 +145,6 @@ public int getPageSize() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -194,15 +153,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. A page token, received from a previous
    * `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the
@@ -214,15 +172,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -231,7 +190,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,7 +201,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } @@ -269,10 +228,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); } if (!hashedAccountId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, hashedAccountId_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, hashedAccountId_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -285,19 +246,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest)) { + if (!(obj instanceof com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest other = - (com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest) obj; + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest other = (com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest) obj; - if (!getProject().equals(other.getProject())) return false; - if (!getHashedAccountId().equals(other.getHashedAccountId())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getProject() + .equals(other.getProject())) return false; + if (!getHashedAccountId() + .equals(other.getHashedAccountId())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -322,146 +285,132 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message to search related account group memberships.
    * 
* - * Protobuf type {@code - * google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest} + * Protobuf type {@code google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest) com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.class, - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.Builder - .class); + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.class, com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.Builder.class); } - // Construct using - // com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.newBuilder() - private Builder() {} + // Construct using com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -474,22 +423,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest - getDefaultInstanceForType() { - return com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest - .getDefaultInstance(); + public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.getDefaultInstance(); } @java.lang.Override public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest build() { - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest result = - buildPartial(); + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -497,19 +443,14 @@ public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsReq } @java.lang.Override - public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest - buildPartial() { - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest result = - new com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest buildPartial() { + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest result = new com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest result) { + private void buildPartial0(com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.project_ = project_; @@ -529,53 +470,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest) { - return mergeFrom( - (com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest) other); + if (other instanceof com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest) { + return mergeFrom((com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest other) { - if (other - == com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest other) { + if (other == com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.getDefaultInstance()) return this; if (!other.getProject().isEmpty()) { project_ = other.project_; bitField0_ |= 0x00000001; @@ -618,37 +552,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - hashedAccountId_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + hashedAccountId_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -658,29 +587,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object project_ = ""; /** - * - * *
      * Required. The name of the project to search related account group
      * memberships from. Specify the project name in the following format:
      * `projects/{project}`.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -689,25 +613,22 @@ public java.lang.String getProject() { } } /** - * - * *
      * Required. The name of the project to search related account group
      * memberships from. Specify the project name in the following format:
      * `projects/{project}`.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -715,43 +636,32 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
      * Required. The name of the project to search related account group
      * memberships from. Specify the project name in the following format:
      * `projects/{project}`.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } project_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the project to search related account group
      * memberships from. Specify the project name in the following format:
      * `projects/{project}`.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearProject() { @@ -761,25 +671,19 @@ public Builder clearProject() { return this; } /** - * - * *
      * Required. The name of the project to search related account group
      * memberships from. Specify the project name in the following format:
      * `projects/{project}`.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); project_ = value; bitField0_ |= 0x00000001; @@ -789,8 +693,6 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Optional. The unique stable hashed user identifier used to search
      * connections. The identifier should correspond to a `hashed_account_id`
@@ -798,7 +700,6 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) {
      * 
* * bytes hashed_account_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hashedAccountId. */ @java.lang.Override @@ -806,8 +707,6 @@ public com.google.protobuf.ByteString getHashedAccountId() { return hashedAccountId_; } /** - * - * *
      * Optional. The unique stable hashed user identifier used to search
      * connections. The identifier should correspond to a `hashed_account_id`
@@ -815,22 +714,17 @@ public com.google.protobuf.ByteString getHashedAccountId() {
      * 
* * bytes hashed_account_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The hashedAccountId to set. * @return This builder for chaining. */ public Builder setHashedAccountId(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } hashedAccountId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The unique stable hashed user identifier used to search
      * connections. The identifier should correspond to a `hashed_account_id`
@@ -838,7 +732,6 @@ public Builder setHashedAccountId(com.google.protobuf.ByteString value) {
      * 
* * bytes hashed_account_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearHashedAccountId() { @@ -848,10 +741,8 @@ public Builder clearHashedAccountId() { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of groups to return. The service might return
      * fewer than this value. If unspecified, at most 50 groups are returned. The
@@ -859,7 +750,6 @@ public Builder clearHashedAccountId() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -867,8 +757,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of groups to return. The service might return
      * fewer than this value. If unspecified, at most 50 groups are returned. The
@@ -876,7 +764,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -888,8 +775,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of groups to return. The service might return
      * fewer than this value. If unspecified, at most 50 groups are returned. The
@@ -897,7 +782,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -909,8 +793,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A page token, received from a previous
      * `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the
@@ -922,13 +804,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -937,8 +819,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A page token, received from a previous
      * `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the
@@ -950,14 +830,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -965,8 +846,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A page token, received from a previous
      * `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the
@@ -978,22 +857,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 4 [(.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) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. A page token, received from a previous
      * `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the
@@ -1005,7 +880,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1015,8 +889,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. A page token, received from a previous
      * `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the
@@ -1028,23 +900,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4 [(.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) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1054,60 +924,55 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest) - private static final com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest(); + DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest(); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchRelatedAccountGroupMembershipsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchRelatedAccountGroupMembershipsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequestOrBuilder.java similarity index 71% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequestOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequestOrBuilder.java index b80511744e2d..a9721522cdd7 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequestOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface SearchRelatedAccountGroupMembershipsRequestOrBuilder - extends +public interface SearchRelatedAccountGroupMembershipsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the project to search related account group
    * memberships from. Specify the project name in the following format:
    * `projects/{project}`.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ java.lang.String getProject(); /** - * - * *
    * Required. The name of the project to search related account group
    * memberships from. Specify the project name in the following format:
    * `projects/{project}`.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - com.google.protobuf.ByteString getProjectBytes(); + com.google.protobuf.ByteString + getProjectBytes(); /** - * - * *
    * Optional. The unique stable hashed user identifier used to search
    * connections. The identifier should correspond to a `hashed_account_id`
@@ -66,14 +39,11 @@ public interface SearchRelatedAccountGroupMembershipsRequestOrBuilder
    * 
* * bytes hashed_account_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hashedAccountId. */ com.google.protobuf.ByteString getHashedAccountId(); /** - * - * *
    * Optional. The maximum number of groups to return. The service might return
    * fewer than this value. If unspecified, at most 50 groups are returned. The
@@ -81,14 +51,11 @@ public interface SearchRelatedAccountGroupMembershipsRequestOrBuilder
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A page token, received from a previous
    * `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the
@@ -100,13 +67,10 @@ public interface SearchRelatedAccountGroupMembershipsRequestOrBuilder
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A page token, received from a previous
    * `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the
@@ -118,8 +82,8 @@ public interface SearchRelatedAccountGroupMembershipsRequestOrBuilder
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponse.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponse.java similarity index 56% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponse.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponse.java index 3fe24c21c632..f217dba0b8f3 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponse.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponse.java @@ -1,45 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * The response to a `SearchRelatedAccountGroupMemberships` call.
  * 
* - * Protobuf type {@code - * google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse} + * Protobuf type {@code google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse} */ -public final class SearchRelatedAccountGroupMembershipsResponse - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SearchRelatedAccountGroupMembershipsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse) SearchRelatedAccountGroupMembershipsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SearchRelatedAccountGroupMembershipsResponse.newBuilder() to construct. - private SearchRelatedAccountGroupMembershipsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SearchRelatedAccountGroupMembershipsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SearchRelatedAccountGroupMembershipsResponse() { relatedAccountGroupMemberships_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -47,126 +26,95 @@ private SearchRelatedAccountGroupMembershipsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SearchRelatedAccountGroupMembershipsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.class, - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.Builder - .class); + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.class, com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.Builder.class); } public static final int RELATED_ACCOUNT_GROUP_MEMBERSHIPS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List - relatedAccountGroupMemberships_; + private java.util.List relatedAccountGroupMemberships_; /** - * - * *
    * The queried memberships.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ @java.lang.Override - public java.util.List - getRelatedAccountGroupMembershipsList() { + public java.util.List getRelatedAccountGroupMembershipsList() { return relatedAccountGroupMemberships_; } /** - * - * *
    * The queried memberships.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder> + public java.util.List getRelatedAccountGroupMembershipsOrBuilderList() { return relatedAccountGroupMemberships_; } /** - * - * *
    * The queried memberships.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ @java.lang.Override public int getRelatedAccountGroupMembershipsCount() { return relatedAccountGroupMemberships_.size(); } /** - * - * *
    * The queried memberships.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership - getRelatedAccountGroupMemberships(int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership getRelatedAccountGroupMemberships(int index) { return relatedAccountGroupMemberships_.get(index); } /** - * - * *
    * The queried memberships.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder - getRelatedAccountGroupMembershipsOrBuilder(int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder getRelatedAccountGroupMembershipsOrBuilder( + int index) { return relatedAccountGroupMemberships_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -175,30 +123,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -207,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,7 +166,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < relatedAccountGroupMemberships_.size(); i++) { output.writeMessage(1, relatedAccountGroupMemberships_.get(i)); } @@ -236,9 +184,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < relatedAccountGroupMemberships_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, relatedAccountGroupMemberships_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, relatedAccountGroupMemberships_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -251,19 +198,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse)) { + if (!(obj instanceof com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse other = - (com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse) obj; + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse other = (com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse) obj; if (!getRelatedAccountGroupMembershipsList() .equals(other.getRelatedAccountGroupMembershipsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -286,146 +231,132 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response to a `SearchRelatedAccountGroupMemberships` call.
    * 
* - * Protobuf type {@code - * google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse} + * Protobuf type {@code google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse) com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.class, - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.Builder - .class); + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.class, com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.Builder.class); } - // Construct using - // com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.newBuilder() - private Builder() {} + // Construct using com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -442,22 +373,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse - getDefaultInstanceForType() { - return com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse - .getDefaultInstance(); + public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.getDefaultInstance(); } @java.lang.Override public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse build() { - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse result = - buildPartial(); + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -465,24 +393,18 @@ public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRes } @java.lang.Override - public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse - buildPartial() { - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse result = - new com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse(this); + public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse buildPartial() { + com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse result = new com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse result) { + private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse result) { if (relatedAccountGroupMembershipsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - relatedAccountGroupMemberships_ = - java.util.Collections.unmodifiableList(relatedAccountGroupMemberships_); + relatedAccountGroupMemberships_ = java.util.Collections.unmodifiableList(relatedAccountGroupMemberships_); bitField0_ = (bitField0_ & ~0x00000001); } result.relatedAccountGroupMemberships_ = relatedAccountGroupMemberships_; @@ -491,8 +413,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse result) { + private void buildPartial0(com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -503,53 +424,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse) { - return mergeFrom( - (com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse) other); + if (other instanceof com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse) { + return mergeFrom((com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse other) { - if (other - == com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse other) { + if (other == com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse.getDefaultInstance()) return this; if (relatedAccountGroupMembershipsBuilder_ == null) { if (!other.relatedAccountGroupMemberships_.isEmpty()) { if (relatedAccountGroupMemberships_.isEmpty()) { @@ -568,13 +482,11 @@ public Builder mergeFrom( relatedAccountGroupMembershipsBuilder_ = null; relatedAccountGroupMemberships_ = other.relatedAccountGroupMemberships_; bitField0_ = (bitField0_ & ~0x00000001); - relatedAccountGroupMembershipsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRelatedAccountGroupMembershipsFieldBuilder() - : null; + relatedAccountGroupMembershipsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRelatedAccountGroupMembershipsFieldBuilder() : null; } else { - relatedAccountGroupMembershipsBuilder_.addAllMessages( - other.relatedAccountGroupMemberships_); + relatedAccountGroupMembershipsBuilder_.addAllMessages(other.relatedAccountGroupMemberships_); } } } @@ -609,33 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership m = - input.readMessage( - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.parser(), - extensionRegistry); - if (relatedAccountGroupMembershipsBuilder_ == null) { - ensureRelatedAccountGroupMembershipsIsMutable(); - relatedAccountGroupMemberships_.add(m); - } else { - relatedAccountGroupMembershipsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership m = + input.readMessage( + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.parser(), + extensionRegistry); + if (relatedAccountGroupMembershipsBuilder_ == null) { + ensureRelatedAccountGroupMembershipsIsMutable(); + relatedAccountGroupMemberships_.add(m); + } else { + relatedAccountGroupMembershipsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -645,41 +554,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List - relatedAccountGroupMemberships_ = java.util.Collections.emptyList(); - + private java.util.List relatedAccountGroupMemberships_ = + java.util.Collections.emptyList(); private void ensureRelatedAccountGroupMembershipsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - relatedAccountGroupMemberships_ = - new java.util.ArrayList< - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership>( - relatedAccountGroupMemberships_); + relatedAccountGroupMemberships_ = new java.util.ArrayList(relatedAccountGroupMemberships_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership, - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder, - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder> - relatedAccountGroupMembershipsBuilder_; + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder> relatedAccountGroupMembershipsBuilder_; /** - * - * *
      * The queried memberships.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - public java.util.List - getRelatedAccountGroupMembershipsList() { + public java.util.List getRelatedAccountGroupMembershipsList() { if (relatedAccountGroupMembershipsBuilder_ == null) { return java.util.Collections.unmodifiableList(relatedAccountGroupMemberships_); } else { @@ -687,15 +583,11 @@ private void ensureRelatedAccountGroupMembershipsIsMutable() { } } /** - * - * *
      * The queried memberships.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ public int getRelatedAccountGroupMembershipsCount() { if (relatedAccountGroupMembershipsBuilder_ == null) { @@ -705,18 +597,13 @@ public int getRelatedAccountGroupMembershipsCount() { } } /** - * - * *
      * The queried memberships.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership - getRelatedAccountGroupMemberships(int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership getRelatedAccountGroupMemberships(int index) { if (relatedAccountGroupMembershipsBuilder_ == null) { return relatedAccountGroupMemberships_.get(index); } else { @@ -724,15 +611,11 @@ public int getRelatedAccountGroupMembershipsCount() { } } /** - * - * *
      * The queried memberships.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ public Builder setRelatedAccountGroupMemberships( int index, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership value) { @@ -749,19 +632,14 @@ public Builder setRelatedAccountGroupMemberships( return this; } /** - * - * *
      * The queried memberships.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ public Builder setRelatedAccountGroupMemberships( - int index, - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder builderForValue) { + int index, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder builderForValue) { if (relatedAccountGroupMembershipsBuilder_ == null) { ensureRelatedAccountGroupMembershipsIsMutable(); relatedAccountGroupMemberships_.set(index, builderForValue.build()); @@ -772,18 +650,13 @@ public Builder setRelatedAccountGroupMemberships( return this; } /** - * - * *
      * The queried memberships.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - public Builder addRelatedAccountGroupMemberships( - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership value) { + public Builder addRelatedAccountGroupMemberships(com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership value) { if (relatedAccountGroupMembershipsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -797,15 +670,11 @@ public Builder addRelatedAccountGroupMemberships( return this; } /** - * - * *
      * The queried memberships.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ public Builder addRelatedAccountGroupMemberships( int index, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership value) { @@ -822,15 +691,11 @@ public Builder addRelatedAccountGroupMemberships( return this; } /** - * - * *
      * The queried memberships.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ public Builder addRelatedAccountGroupMemberships( com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder builderForValue) { @@ -844,19 +709,14 @@ public Builder addRelatedAccountGroupMemberships( return this; } /** - * - * *
      * The queried memberships.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ public Builder addRelatedAccountGroupMemberships( - int index, - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder builderForValue) { + int index, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder builderForValue) { if (relatedAccountGroupMembershipsBuilder_ == null) { ensureRelatedAccountGroupMembershipsIsMutable(); relatedAccountGroupMemberships_.add(index, builderForValue.build()); @@ -867,20 +727,14 @@ public Builder addRelatedAccountGroupMemberships( return this; } /** - * - * *
      * The queried memberships.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ public Builder addAllRelatedAccountGroupMemberships( - java.lang.Iterable< - ? extends com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership> - values) { + java.lang.Iterable values) { if (relatedAccountGroupMembershipsBuilder_ == null) { ensureRelatedAccountGroupMembershipsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -892,15 +746,11 @@ public Builder addAllRelatedAccountGroupMemberships( return this; } /** - * - * *
      * The queried memberships.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ public Builder clearRelatedAccountGroupMemberships() { if (relatedAccountGroupMembershipsBuilder_ == null) { @@ -913,15 +763,11 @@ public Builder clearRelatedAccountGroupMemberships() { return this; } /** - * - * *
      * The queried memberships.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ public Builder removeRelatedAccountGroupMemberships(int index) { if (relatedAccountGroupMembershipsBuilder_ == null) { @@ -934,53 +780,39 @@ public Builder removeRelatedAccountGroupMemberships(int index) { return this; } /** - * - * *
      * The queried memberships.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder - getRelatedAccountGroupMembershipsBuilder(int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder getRelatedAccountGroupMembershipsBuilder( + int index) { return getRelatedAccountGroupMembershipsFieldBuilder().getBuilder(index); } /** - * - * *
      * The queried memberships.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder - getRelatedAccountGroupMembershipsOrBuilder(int index) { + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder getRelatedAccountGroupMembershipsOrBuilder( + int index) { if (relatedAccountGroupMembershipsBuilder_ == null) { - return relatedAccountGroupMemberships_.get(index); - } else { + return relatedAccountGroupMemberships_.get(index); } else { return relatedAccountGroupMembershipsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The queried memberships.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - public java.util.List< - ? extends com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder> - getRelatedAccountGroupMembershipsOrBuilderList() { + public java.util.List + getRelatedAccountGroupMembershipsOrBuilderList() { if (relatedAccountGroupMembershipsBuilder_ != null) { return relatedAccountGroupMembershipsBuilder_.getMessageOrBuilderList(); } else { @@ -988,67 +820,45 @@ public Builder removeRelatedAccountGroupMemberships(int index) { } } /** - * - * *
      * The queried memberships.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder - addRelatedAccountGroupMembershipsBuilder() { - return getRelatedAccountGroupMembershipsFieldBuilder() - .addBuilder( - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.getDefaultInstance()); + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder addRelatedAccountGroupMembershipsBuilder() { + return getRelatedAccountGroupMembershipsFieldBuilder().addBuilder( + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.getDefaultInstance()); } /** - * - * *
      * The queried memberships.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder - addRelatedAccountGroupMembershipsBuilder(int index) { - return getRelatedAccountGroupMembershipsFieldBuilder() - .addBuilder( - index, - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.getDefaultInstance()); + public com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder addRelatedAccountGroupMembershipsBuilder( + int index) { + return getRelatedAccountGroupMembershipsFieldBuilder().addBuilder( + index, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.getDefaultInstance()); } /** - * - * *
      * The queried memberships.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - public java.util.List - getRelatedAccountGroupMembershipsBuilderList() { + public java.util.List + getRelatedAccountGroupMembershipsBuilderList() { return getRelatedAccountGroupMembershipsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership, - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder, - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder> + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder> getRelatedAccountGroupMembershipsFieldBuilder() { if (relatedAccountGroupMembershipsBuilder_ == null) { - relatedAccountGroupMembershipsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership, - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder, - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder>( + relatedAccountGroupMembershipsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership.Builder, com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder>( relatedAccountGroupMemberships_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1060,21 +870,19 @@ public Builder removeRelatedAccountGroupMemberships(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1083,22 +891,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1106,37 +913,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1146,31 +946,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1180,61 +976,55 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse) - private static final com.google.recaptchaenterprise.v1 - .SearchRelatedAccountGroupMembershipsResponse - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse(); + DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse(); } - public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchRelatedAccountGroupMembershipsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchRelatedAccountGroupMembershipsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponseOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponseOrBuilder.java similarity index 51% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponseOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponseOrBuilder.java index 48c893087c34..a5acf9443ce7 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponseOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsResponseOrBuilder.java @@ -1,117 +1,75 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface SearchRelatedAccountGroupMembershipsResponseOrBuilder - extends +public interface SearchRelatedAccountGroupMembershipsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The queried memberships.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - java.util.List + java.util.List getRelatedAccountGroupMembershipsList(); /** - * - * *
    * The queried memberships.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership getRelatedAccountGroupMemberships( - int index); + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembership getRelatedAccountGroupMemberships(int index); /** - * - * *
    * The queried memberships.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ int getRelatedAccountGroupMembershipsCount(); /** - * - * *
    * The queried memberships.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - java.util.List + java.util.List getRelatedAccountGroupMembershipsOrBuilderList(); /** - * - * *
    * The queried memberships.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; - * + * repeated .google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership related_account_group_memberships = 1; */ - com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder - getRelatedAccountGroupMembershipsOrBuilder(int index); + com.google.recaptchaenterprise.v1.RelatedAccountGroupMembershipOrBuilder getRelatedAccountGroupMembershipsOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptions.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptions.java similarity index 66% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptions.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptions.java index 8a9fe4def0f1..62c3a5b580fc 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptions.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptions.java @@ -1,70 +1,49 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * Options for user acceptance testing.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TestingOptions} */ -public final class TestingOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TestingOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.TestingOptions) TestingOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TestingOptions.newBuilder() to construct. private TestingOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TestingOptions() { testingChallenge_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TestingOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TestingOptions.class, - com.google.recaptchaenterprise.v1.TestingOptions.Builder.class); + com.google.recaptchaenterprise.v1.TestingOptions.class, com.google.recaptchaenterprise.v1.TestingOptions.Builder.class); } /** - * - * *
    * Enum that represents the challenge option for challenge-based (CHECKBOX,
    * INVISIBLE) testing keys.
@@ -72,10 +51,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge}
    */
-  public enum TestingChallenge implements com.google.protobuf.ProtocolMessageEnum {
+  public enum TestingChallenge
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Perform the normal risk analysis and return either nocaptcha or a
      * challenge depending on risk and trust factors.
@@ -85,8 +63,6 @@ public enum TestingChallenge implements com.google.protobuf.ProtocolMessageEnum
      */
     TESTING_CHALLENGE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * Challenge requests for this key always return a nocaptcha, which
      * does not require a solution.
@@ -96,8 +72,6 @@ public enum TestingChallenge implements com.google.protobuf.ProtocolMessageEnum
      */
     NOCAPTCHA(1),
     /**
-     *
-     *
      * 
      * Challenge requests for this key always return an unsolvable
      * challenge.
@@ -110,8 +84,6 @@ public enum TestingChallenge implements com.google.protobuf.ProtocolMessageEnum
     ;
 
     /**
-     *
-     *
      * 
      * Perform the normal risk analysis and return either nocaptcha or a
      * challenge depending on risk and trust factors.
@@ -121,8 +93,6 @@ public enum TestingChallenge implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int TESTING_CHALLENGE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * Challenge requests for this key always return a nocaptcha, which
      * does not require a solution.
@@ -132,8 +102,6 @@ public enum TestingChallenge implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int NOCAPTCHA_VALUE = 1;
     /**
-     *
-     *
      * 
      * Challenge requests for this key always return an unsolvable
      * challenge.
@@ -143,6 +111,7 @@ public enum TestingChallenge implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int UNSOLVABLE_CHALLENGE_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -167,42 +136,39 @@ public static TestingChallenge valueOf(int value) {
      */
     public static TestingChallenge forNumber(int value) {
       switch (value) {
-        case 0:
-          return TESTING_CHALLENGE_UNSPECIFIED;
-        case 1:
-          return NOCAPTCHA;
-        case 2:
-          return UNSOLVABLE_CHALLENGE;
-        default:
-          return null;
+        case 0: return TESTING_CHALLENGE_UNSPECIFIED;
+        case 1: return NOCAPTCHA;
+        case 2: return UNSOLVABLE_CHALLENGE;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        TestingChallenge> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public TestingChallenge findValueByNumber(int number) {
+              return TestingChallenge.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public TestingChallenge findValueByNumber(int number) {
-                return TestingChallenge.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.recaptchaenterprise.v1.TestingOptions.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -211,7 +177,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static TestingChallenge valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -231,15 +198,12 @@ private TestingChallenge(int value) {
   public static final int TESTING_SCORE_FIELD_NUMBER = 1;
   private float testingScore_ = 0F;
   /**
-   *
-   *
    * 
    * Optional. All assessments for this Key will return this score. Must be
    * between 0 (likely not legitimate) and 1 (likely legitimate) inclusive.
    * 
* * float testing_score = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The testingScore. */ @java.lang.Override @@ -250,51 +214,34 @@ public float getTestingScore() { public static final int TESTING_CHALLENGE_FIELD_NUMBER = 2; private int testingChallenge_ = 0; /** - * - * *
    * Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all
    * challenge requests for this site will return nocaptcha if NOCAPTCHA, or an
    * unsolvable challenge if CHALLENGE.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for testingChallenge. */ - @java.lang.Override - public int getTestingChallengeValue() { + @java.lang.Override public int getTestingChallengeValue() { return testingChallenge_; } /** - * - * *
    * Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all
    * challenge requests for this site will return nocaptcha if NOCAPTCHA, or an
    * unsolvable challenge if CHALLENGE.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The testingChallenge. */ - @java.lang.Override - public com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge getTestingChallenge() { - com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge result = - com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge.forNumber( - testingChallenge_); - return result == null - ? com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge.UNRECOGNIZED - : result; + @java.lang.Override public com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge getTestingChallenge() { + com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge result = com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge.forNumber(testingChallenge_); + return result == null ? com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -306,14 +253,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(testingScore_) != 0) { output.writeFloat(1, testingScore_); } - if (testingChallenge_ - != com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge - .TESTING_CHALLENGE_UNSPECIFIED - .getNumber()) { + if (testingChallenge_ != com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge.TESTING_CHALLENGE_UNSPECIFIED.getNumber()) { output.writeEnum(2, testingChallenge_); } getUnknownFields().writeTo(output); @@ -326,13 +271,12 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(testingScore_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, testingScore_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, testingScore_); } - if (testingChallenge_ - != com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge - .TESTING_CHALLENGE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, testingChallenge_); + if (testingChallenge_ != com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge.TESTING_CHALLENGE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, testingChallenge_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -342,16 +286,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.TestingOptions)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.TestingOptions other = - (com.google.recaptchaenterprise.v1.TestingOptions) obj; + com.google.recaptchaenterprise.v1.TestingOptions other = (com.google.recaptchaenterprise.v1.TestingOptions) obj; if (java.lang.Float.floatToIntBits(getTestingScore()) - != java.lang.Float.floatToIntBits(other.getTestingScore())) return false; + != java.lang.Float.floatToIntBits( + other.getTestingScore())) return false; if (testingChallenge_ != other.testingChallenge_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -365,7 +309,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TESTING_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getTestingScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getTestingScore()); hash = (37 * hash) + TESTING_CHALLENGE_FIELD_NUMBER; hash = (53 * hash) + testingChallenge_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -373,136 +318,132 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.TestingOptions parseFrom(java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.TestingOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.TestingOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TestingOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.TestingOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TestingOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.TestingOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.TestingOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.TestingOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.TestingOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TestingOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.TestingOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.TestingOptions parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TestingOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.TestingOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.TestingOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Options for user acceptance testing.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TestingOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.TestingOptions) com.google.recaptchaenterprise.v1.TestingOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TestingOptions.class, - com.google.recaptchaenterprise.v1.TestingOptions.Builder.class); + com.google.recaptchaenterprise.v1.TestingOptions.class, com.google.recaptchaenterprise.v1.TestingOptions.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.TestingOptions.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -513,9 +454,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor; } @java.lang.Override @@ -534,11 +475,8 @@ public com.google.recaptchaenterprise.v1.TestingOptions build() { @java.lang.Override public com.google.recaptchaenterprise.v1.TestingOptions buildPartial() { - com.google.recaptchaenterprise.v1.TestingOptions result = - new com.google.recaptchaenterprise.v1.TestingOptions(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.TestingOptions result = new com.google.recaptchaenterprise.v1.TestingOptions(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -557,39 +495,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.TestingOptions resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.TestingOptions) { - return mergeFrom((com.google.recaptchaenterprise.v1.TestingOptions) other); + return mergeFrom((com.google.recaptchaenterprise.v1.TestingOptions)other); } else { super.mergeFrom(other); return this; @@ -597,8 +534,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.TestingOptions other) { - if (other == com.google.recaptchaenterprise.v1.TestingOptions.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.TestingOptions.getDefaultInstance()) return this; if (other.getTestingScore() != 0F) { setTestingScore(other.getTestingScore()); } @@ -631,25 +567,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: - { - testingScore_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - case 16: - { - testingChallenge_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: { + testingScore_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 16: { + testingChallenge_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -659,20 +592,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private float testingScore_; + private float testingScore_ ; /** - * - * *
      * Optional. All assessments for this Key will return this score. Must be
      * between 0 (likely not legitimate) and 1 (likely legitimate) inclusive.
      * 
* * float testing_score = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The testingScore. */ @java.lang.Override @@ -680,15 +609,12 @@ public float getTestingScore() { return testingScore_; } /** - * - * *
      * Optional. All assessments for this Key will return this score. Must be
      * between 0 (likely not legitimate) and 1 (likely legitimate) inclusive.
      * 
* * float testing_score = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The testingScore to set. * @return This builder for chaining. */ @@ -700,15 +626,12 @@ public Builder setTestingScore(float value) { return this; } /** - * - * *
      * Optional. All assessments for this Key will return this score. Must be
      * between 0 (likely not legitimate) and 1 (likely legitimate) inclusive.
      * 
* * float testing_score = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearTestingScore() { @@ -720,37 +643,26 @@ public Builder clearTestingScore() { private int testingChallenge_ = 0; /** - * - * *
      * Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all
      * challenge requests for this site will return nocaptcha if NOCAPTCHA, or an
      * unsolvable challenge if CHALLENGE.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for testingChallenge. */ - @java.lang.Override - public int getTestingChallengeValue() { + @java.lang.Override public int getTestingChallengeValue() { return testingChallenge_; } /** - * - * *
      * Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all
      * challenge requests for this site will return nocaptcha if NOCAPTCHA, or an
      * unsolvable challenge if CHALLENGE.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for testingChallenge to set. * @return This builder for chaining. */ @@ -761,47 +673,32 @@ public Builder setTestingChallengeValue(int value) { return this; } /** - * - * *
      * Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all
      * challenge requests for this site will return nocaptcha if NOCAPTCHA, or an
      * unsolvable challenge if CHALLENGE.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The testingChallenge. */ @java.lang.Override public com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge getTestingChallenge() { - com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge result = - com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge.forNumber( - testingChallenge_); - return result == null - ? com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge.UNRECOGNIZED - : result; + com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge result = com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge.forNumber(testingChallenge_); + return result == null ? com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge.UNRECOGNIZED : result; } /** - * - * *
      * Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all
      * challenge requests for this site will return nocaptcha if NOCAPTCHA, or an
      * unsolvable challenge if CHALLENGE.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The testingChallenge to set. * @return This builder for chaining. */ - public Builder setTestingChallenge( - com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge value) { + public Builder setTestingChallenge(com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge value) { if (value == null) { throw new NullPointerException(); } @@ -811,18 +708,13 @@ public Builder setTestingChallenge( return this; } /** - * - * *
      * Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all
      * challenge requests for this site will return nocaptcha if NOCAPTCHA, or an
      * unsolvable challenge if CHALLENGE.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearTestingChallenge() { @@ -831,9 +723,9 @@ public Builder clearTestingChallenge() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -843,12 +735,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.TestingOptions) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.TestingOptions) private static final com.google.recaptchaenterprise.v1.TestingOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.TestingOptions(); } @@ -857,27 +749,27 @@ public static com.google.recaptchaenterprise.v1.TestingOptions getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TestingOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TestingOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -892,4 +784,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.TestingOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptionsOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptionsOrBuilder.java similarity index 57% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptionsOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptionsOrBuilder.java index 75025a0d3f2d..67fafce1a4d1 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptionsOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TestingOptionsOrBuilder.java @@ -1,71 +1,42 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface TestingOptionsOrBuilder - extends +public interface TestingOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.TestingOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. All assessments for this Key will return this score. Must be
    * between 0 (likely not legitimate) and 1 (likely legitimate) inclusive.
    * 
* * float testing_score = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The testingScore. */ float getTestingScore(); /** - * - * *
    * Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all
    * challenge requests for this site will return nocaptcha if NOCAPTCHA, or an
    * unsolvable challenge if CHALLENGE.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for testingChallenge. */ int getTestingChallengeValue(); /** - * - * *
    * Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all
    * challenge requests for this site will return nocaptcha if NOCAPTCHA, or an
    * unsolvable challenge if CHALLENGE.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The testingChallenge. */ com.google.recaptchaenterprise.v1.TestingOptions.TestingChallenge getTestingChallenge(); diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenProperties.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenProperties.java similarity index 70% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenProperties.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenProperties.java index bfce0d7eba98..d275528f1fe2 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenProperties.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenProperties.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * Properties of the provided event token.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TokenProperties} */ -public final class TokenProperties extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TokenProperties extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.TokenProperties) TokenPropertiesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TokenProperties.newBuilder() to construct. private TokenProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TokenProperties() { invalidReason_ = 0; hostname_ = ""; @@ -47,38 +29,34 @@ private TokenProperties() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TokenProperties(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TokenProperties.class, - com.google.recaptchaenterprise.v1.TokenProperties.Builder.class); + com.google.recaptchaenterprise.v1.TokenProperties.class, com.google.recaptchaenterprise.v1.TokenProperties.Builder.class); } /** - * - * *
    * Enum that represents the types of invalid token reasons.
    * 
* * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason} */ - public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { + public enum InvalidReason + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default unspecified type.
      * 
@@ -87,8 +65,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { */ INVALID_REASON_UNSPECIFIED(0), /** - * - * *
      * If the failure reason was not accounted for.
      * 
@@ -97,8 +73,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN_INVALID_REASON(1), /** - * - * *
      * The provided user verification token was malformed.
      * 
@@ -107,8 +81,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { */ MALFORMED(2), /** - * - * *
      * The user verification token had expired.
      * 
@@ -117,8 +89,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { */ EXPIRED(3), /** - * - * *
      * The user verification had already been seen.
      * 
@@ -127,8 +97,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { */ DUPE(4), /** - * - * *
      * The user verification token was not present.
      * 
@@ -137,8 +105,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { */ MISSING(5), /** - * - * *
      * A retriable error (such as network failure) occurred on the browser.
      * Could easily be simulated by an attacker.
@@ -151,8 +117,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default unspecified type.
      * 
@@ -161,8 +125,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INVALID_REASON_UNSPECIFIED_VALUE = 0; /** - * - * *
      * If the failure reason was not accounted for.
      * 
@@ -171,8 +133,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_INVALID_REASON_VALUE = 1; /** - * - * *
      * The provided user verification token was malformed.
      * 
@@ -181,8 +141,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MALFORMED_VALUE = 2; /** - * - * *
      * The user verification token had expired.
      * 
@@ -191,8 +149,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EXPIRED_VALUE = 3; /** - * - * *
      * The user verification had already been seen.
      * 
@@ -201,8 +157,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DUPE_VALUE = 4; /** - * - * *
      * The user verification token was not present.
      * 
@@ -211,8 +165,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MISSING_VALUE = 5; /** - * - * *
      * A retriable error (such as network failure) occurred on the browser.
      * Could easily be simulated by an attacker.
@@ -222,6 +174,7 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int BROWSER_ERROR_VALUE = 6;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -246,59 +199,53 @@ public static InvalidReason valueOf(int value) {
      */
     public static InvalidReason forNumber(int value) {
       switch (value) {
-        case 0:
-          return INVALID_REASON_UNSPECIFIED;
-        case 1:
-          return UNKNOWN_INVALID_REASON;
-        case 2:
-          return MALFORMED;
-        case 3:
-          return EXPIRED;
-        case 4:
-          return DUPE;
-        case 5:
-          return MISSING;
-        case 6:
-          return BROWSER_ERROR;
-        default:
-          return null;
+        case 0: return INVALID_REASON_UNSPECIFIED;
+        case 1: return UNKNOWN_INVALID_REASON;
+        case 2: return MALFORMED;
+        case 3: return EXPIRED;
+        case 4: return DUPE;
+        case 5: return MISSING;
+        case 6: return BROWSER_ERROR;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        InvalidReason> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public InvalidReason findValueByNumber(int number) {
+              return InvalidReason.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public InvalidReason findValueByNumber(int number) {
-            return InvalidReason.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.recaptchaenterprise.v1.TokenProperties.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.recaptchaenterprise.v1.TokenProperties.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final InvalidReason[] VALUES = values();
 
-    public static InvalidReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static InvalidReason valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -318,8 +265,6 @@ private InvalidReason(int value) {
   public static final int VALID_FIELD_NUMBER = 1;
   private boolean valid_ = false;
   /**
-   *
-   *
    * 
    * Output only. Whether the provided user response token is valid. When valid
    * = false, the reason could be specified in invalid_reason or it could also
@@ -329,7 +274,6 @@ private InvalidReason(int value) {
    * 
* * bool valid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The valid. */ @java.lang.Override @@ -340,56 +284,37 @@ public boolean getValid() { public static final int INVALID_REASON_FIELD_NUMBER = 2; private int invalidReason_ = 0; /** - * - * *
    * Output only. Reason associated with the response when valid = false.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for invalidReason. */ - @java.lang.Override - public int getInvalidReasonValue() { + @java.lang.Override public int getInvalidReasonValue() { return invalidReason_; } /** - * - * *
    * Output only. Reason associated with the response when valid = false.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The invalidReason. */ - @java.lang.Override - public com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason getInvalidReason() { - com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason result = - com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason.forNumber(invalidReason_); - return result == null - ? com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason.UNRECOGNIZED - : result; + @java.lang.Override public com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason getInvalidReason() { + com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason result = com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason.forNumber(invalidReason_); + return result == null ? com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The timestamp corresponding to the generation of the token.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -397,15 +322,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The timestamp corresponding to the generation of the token.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -413,14 +334,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The timestamp corresponding to the generation of the token.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -428,19 +346,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } public static final int HOSTNAME_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object hostname_ = ""; /** - * - * *
    * Output only. The hostname of the page on which the token was generated (Web
    * keys only).
    * 
* * string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The hostname. */ @java.lang.Override @@ -449,30 +363,30 @@ public java.lang.String getHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; } } /** - * - * *
    * Output only. The hostname of the page on which the token was generated (Web
    * keys only).
    * 
* * string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for hostname. */ @java.lang.Override - public com.google.protobuf.ByteString getHostnameBytes() { + public com.google.protobuf.ByteString + getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hostname_ = b; return b; } else { @@ -481,19 +395,15 @@ public com.google.protobuf.ByteString getHostnameBytes() { } public static final int ANDROID_PACKAGE_NAME_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object androidPackageName_ = ""; /** - * - * *
    * Output only. The name of the Android package with which the token was
    * generated (Android keys only).
    * 
* * string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The androidPackageName. */ @java.lang.Override @@ -502,30 +412,30 @@ public java.lang.String getAndroidPackageName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); androidPackageName_ = s; return s; } } /** - * - * *
    * Output only. The name of the Android package with which the token was
    * generated (Android keys only).
    * 
* * string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for androidPackageName. */ @java.lang.Override - public com.google.protobuf.ByteString getAndroidPackageNameBytes() { + public com.google.protobuf.ByteString + getAndroidPackageNameBytes() { java.lang.Object ref = androidPackageName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); androidPackageName_ = b; return b; } else { @@ -534,19 +444,15 @@ public com.google.protobuf.ByteString getAndroidPackageNameBytes() { } public static final int IOS_BUNDLE_ID_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object iosBundleId_ = ""; /** - * - * *
    * Output only. The ID of the iOS bundle with which the token was generated
    * (iOS keys only).
    * 
* * string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The iosBundleId. */ @java.lang.Override @@ -555,30 +461,30 @@ public java.lang.String getIosBundleId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); iosBundleId_ = s; return s; } } /** - * - * *
    * Output only. The ID of the iOS bundle with which the token was generated
    * (iOS keys only).
    * 
* * string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for iosBundleId. */ @java.lang.Override - public com.google.protobuf.ByteString getIosBundleIdBytes() { + public com.google.protobuf.ByteString + getIosBundleIdBytes() { java.lang.Object ref = iosBundleId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); iosBundleId_ = b; return b; } else { @@ -587,18 +493,14 @@ public com.google.protobuf.ByteString getIosBundleIdBytes() { } public static final int ACTION_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object action_ = ""; /** - * - * *
    * Output only. Action name provided at token generation.
    * 
* * string action = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The action. */ @java.lang.Override @@ -607,29 +509,29 @@ public java.lang.String getAction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); action_ = s; return s; } } /** - * - * *
    * Output only. Action name provided at token generation.
    * 
* * string action = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for action. */ @java.lang.Override - public com.google.protobuf.ByteString getActionBytes() { + public com.google.protobuf.ByteString + getActionBytes() { java.lang.Object ref = action_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); action_ = b; return b; } else { @@ -638,7 +540,6 @@ public com.google.protobuf.ByteString getActionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -650,14 +551,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (valid_ != false) { output.writeBool(1, valid_); } - if (invalidReason_ - != com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason - .INVALID_REASON_UNSPECIFIED - .getNumber()) { + if (invalidReason_ != com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason.INVALID_REASON_UNSPECIFIED.getNumber()) { output.writeEnum(2, invalidReason_); } if (createTime_ != null) { @@ -685,16 +584,16 @@ public int getSerializedSize() { size = 0; if (valid_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, valid_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, valid_); } - if (invalidReason_ - != com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason - .INVALID_REASON_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, invalidReason_); + if (invalidReason_ != com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason.INVALID_REASON_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, invalidReason_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, hostname_); @@ -716,24 +615,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.TokenProperties)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.TokenProperties other = - (com.google.recaptchaenterprise.v1.TokenProperties) obj; + com.google.recaptchaenterprise.v1.TokenProperties other = (com.google.recaptchaenterprise.v1.TokenProperties) obj; - if (getValid() != other.getValid()) return false; + if (getValid() + != other.getValid()) return false; if (invalidReason_ != other.invalidReason_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (!getHostname().equals(other.getHostname())) return false; - if (!getAndroidPackageName().equals(other.getAndroidPackageName())) return false; - if (!getIosBundleId().equals(other.getIosBundleId())) return false; - if (!getAction().equals(other.getAction())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (!getHostname() + .equals(other.getHostname())) return false; + if (!getAndroidPackageName() + .equals(other.getAndroidPackageName())) return false; + if (!getIosBundleId() + .equals(other.getIosBundleId())) return false; + if (!getAction() + .equals(other.getAction())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -746,7 +650,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VALID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValid()); hash = (37 * hash) + INVALID_REASON_FIELD_NUMBER; hash = (53 * hash) + invalidReason_; if (hasCreateTime()) { @@ -767,135 +672,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.TokenProperties parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.TokenProperties parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TokenProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.TokenProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TokenProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.TokenProperties parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.TokenProperties parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.TokenProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.TokenProperties parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TokenProperties parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.TokenProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.TokenProperties parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TokenProperties parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.TokenProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.TokenProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Properties of the provided event token.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TokenProperties} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.TokenProperties) com.google.recaptchaenterprise.v1.TokenPropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TokenProperties.class, - com.google.recaptchaenterprise.v1.TokenProperties.Builder.class); + com.google.recaptchaenterprise.v1.TokenProperties.class, com.google.recaptchaenterprise.v1.TokenProperties.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.TokenProperties.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -915,9 +816,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TokenProperties_descriptor; } @java.lang.Override @@ -936,11 +837,8 @@ public com.google.recaptchaenterprise.v1.TokenProperties build() { @java.lang.Override public com.google.recaptchaenterprise.v1.TokenProperties buildPartial() { - com.google.recaptchaenterprise.v1.TokenProperties result = - new com.google.recaptchaenterprise.v1.TokenProperties(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.TokenProperties result = new com.google.recaptchaenterprise.v1.TokenProperties(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -954,7 +852,9 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.TokenProperties res result.invalidReason_ = invalidReason_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.hostname_ = hostname_; @@ -974,39 +874,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.TokenProperties res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.TokenProperties) { - return mergeFrom((com.google.recaptchaenterprise.v1.TokenProperties) other); + return mergeFrom((com.google.recaptchaenterprise.v1.TokenProperties)other); } else { super.mergeFrom(other); return this; @@ -1014,8 +913,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.TokenProperties other) { - if (other == com.google.recaptchaenterprise.v1.TokenProperties.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.TokenProperties.getDefaultInstance()) return this; if (other.getValid() != false) { setValid(other.getValid()); } @@ -1071,55 +969,49 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - valid_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - invalidReason_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - hostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - action_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 42 - case 66: - { - androidPackageName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 66 - case 74: - { - iosBundleId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + valid_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + invalidReason_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + action_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 42 + case 66: { + androidPackageName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 66 + case 74: { + iosBundleId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1129,13 +1021,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean valid_; + private boolean valid_ ; /** - * - * *
      * Output only. Whether the provided user response token is valid. When valid
      * = false, the reason could be specified in invalid_reason or it could also
@@ -1145,7 +1034,6 @@ public Builder mergeFrom(
      * 
* * bool valid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The valid. */ @java.lang.Override @@ -1153,8 +1041,6 @@ public boolean getValid() { return valid_; } /** - * - * *
      * Output only. Whether the provided user response token is valid. When valid
      * = false, the reason could be specified in invalid_reason or it could also
@@ -1164,7 +1050,6 @@ public boolean getValid() {
      * 
* * bool valid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The valid to set. * @return This builder for chaining. */ @@ -1176,8 +1061,6 @@ public Builder setValid(boolean value) { return this; } /** - * - * *
      * Output only. Whether the provided user response token is valid. When valid
      * = false, the reason could be specified in invalid_reason or it could also
@@ -1187,7 +1070,6 @@ public Builder setValid(boolean value) {
      * 
* * bool valid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearValid() { @@ -1199,33 +1081,22 @@ public Builder clearValid() { private int invalidReason_ = 0; /** - * - * *
      * Output only. Reason associated with the response when valid = false.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for invalidReason. */ - @java.lang.Override - public int getInvalidReasonValue() { + @java.lang.Override public int getInvalidReasonValue() { return invalidReason_; } /** - * - * *
      * Output only. Reason associated with the response when valid = false.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for invalidReason to set. * @return This builder for chaining. */ @@ -1236,42 +1107,28 @@ public Builder setInvalidReasonValue(int value) { return this; } /** - * - * *
      * Output only. Reason associated with the response when valid = false.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The invalidReason. */ @java.lang.Override public com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason getInvalidReason() { - com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason result = - com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason.forNumber(invalidReason_); - return result == null - ? com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason.UNRECOGNIZED - : result; + com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason result = com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason.forNumber(invalidReason_); + return result == null ? com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Reason associated with the response when valid = false.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The invalidReason to set. * @return This builder for chaining. */ - public Builder setInvalidReason( - com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason value) { + public Builder setInvalidReason(com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason value) { if (value == null) { throw new NullPointerException(); } @@ -1281,16 +1138,11 @@ public Builder setInvalidReason( return this; } /** - * - * *
      * Output only. Reason associated with the response when valid = false.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearInvalidReason() { @@ -1302,58 +1154,39 @@ public Builder clearInvalidReason() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The timestamp corresponding to the generation of the token.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The timestamp corresponding to the generation of the token.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp corresponding to the generation of the token.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1369,17 +1202,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp corresponding to the generation of the token.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1390,21 +1220,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp corresponding to the generation of the token.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1417,15 +1243,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp corresponding to the generation of the token.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1438,15 +1260,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The timestamp corresponding to the generation of the token.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1454,48 +1272,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp corresponding to the generation of the token.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The timestamp corresponding to the generation of the token.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1503,21 +1309,19 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private java.lang.Object hostname_ = ""; /** - * - * *
      * Output only. The hostname of the page on which the token was generated (Web
      * keys only).
      * 
* * string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; @@ -1526,22 +1330,21 @@ public java.lang.String getHostname() { } } /** - * - * *
      * Output only. The hostname of the page on which the token was generated (Web
      * keys only).
      * 
* * string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for hostname. */ - public com.google.protobuf.ByteString getHostnameBytes() { + public com.google.protobuf.ByteString + getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hostname_ = b; return b; } else { @@ -1549,37 +1352,30 @@ public com.google.protobuf.ByteString getHostnameBytes() { } } /** - * - * *
      * Output only. The hostname of the page on which the token was generated (Web
      * keys only).
      * 
* * string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The hostname to set. * @return This builder for chaining. */ - public Builder setHostname(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHostname( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } hostname_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. The hostname of the page on which the token was generated (Web
      * keys only).
      * 
* * string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearHostname() { @@ -1589,22 +1385,18 @@ public Builder clearHostname() { return this; } /** - * - * *
      * Output only. The hostname of the page on which the token was generated (Web
      * keys only).
      * 
* * string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for hostname to set. * @return This builder for chaining. */ - public Builder setHostnameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHostnameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hostname_ = value; bitField0_ |= 0x00000008; @@ -1614,21 +1406,19 @@ public Builder setHostnameBytes(com.google.protobuf.ByteString value) { private java.lang.Object androidPackageName_ = ""; /** - * - * *
      * Output only. The name of the Android package with which the token was
      * generated (Android keys only).
      * 
* * string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The androidPackageName. */ public java.lang.String getAndroidPackageName() { java.lang.Object ref = androidPackageName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); androidPackageName_ = s; return s; @@ -1637,22 +1427,21 @@ public java.lang.String getAndroidPackageName() { } } /** - * - * *
      * Output only. The name of the Android package with which the token was
      * generated (Android keys only).
      * 
* * string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for androidPackageName. */ - public com.google.protobuf.ByteString getAndroidPackageNameBytes() { + public com.google.protobuf.ByteString + getAndroidPackageNameBytes() { java.lang.Object ref = androidPackageName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); androidPackageName_ = b; return b; } else { @@ -1660,37 +1449,30 @@ public com.google.protobuf.ByteString getAndroidPackageNameBytes() { } } /** - * - * *
      * Output only. The name of the Android package with which the token was
      * generated (Android keys only).
      * 
* * string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The androidPackageName to set. * @return This builder for chaining. */ - public Builder setAndroidPackageName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAndroidPackageName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } androidPackageName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Output only. The name of the Android package with which the token was
      * generated (Android keys only).
      * 
* * string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearAndroidPackageName() { @@ -1700,22 +1482,18 @@ public Builder clearAndroidPackageName() { return this; } /** - * - * *
      * Output only. The name of the Android package with which the token was
      * generated (Android keys only).
      * 
* * string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for androidPackageName to set. * @return This builder for chaining. */ - public Builder setAndroidPackageNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAndroidPackageNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); androidPackageName_ = value; bitField0_ |= 0x00000010; @@ -1725,21 +1503,19 @@ public Builder setAndroidPackageNameBytes(com.google.protobuf.ByteString value) private java.lang.Object iosBundleId_ = ""; /** - * - * *
      * Output only. The ID of the iOS bundle with which the token was generated
      * (iOS keys only).
      * 
* * string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The iosBundleId. */ public java.lang.String getIosBundleId() { java.lang.Object ref = iosBundleId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); iosBundleId_ = s; return s; @@ -1748,22 +1524,21 @@ public java.lang.String getIosBundleId() { } } /** - * - * *
      * Output only. The ID of the iOS bundle with which the token was generated
      * (iOS keys only).
      * 
* * string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for iosBundleId. */ - public com.google.protobuf.ByteString getIosBundleIdBytes() { + public com.google.protobuf.ByteString + getIosBundleIdBytes() { java.lang.Object ref = iosBundleId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); iosBundleId_ = b; return b; } else { @@ -1771,37 +1546,30 @@ public com.google.protobuf.ByteString getIosBundleIdBytes() { } } /** - * - * *
      * Output only. The ID of the iOS bundle with which the token was generated
      * (iOS keys only).
      * 
* * string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The iosBundleId to set. * @return This builder for chaining. */ - public Builder setIosBundleId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIosBundleId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } iosBundleId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Output only. The ID of the iOS bundle with which the token was generated
      * (iOS keys only).
      * 
* * string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearIosBundleId() { @@ -1811,22 +1579,18 @@ public Builder clearIosBundleId() { return this; } /** - * - * *
      * Output only. The ID of the iOS bundle with which the token was generated
      * (iOS keys only).
      * 
* * string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for iosBundleId to set. * @return This builder for chaining. */ - public Builder setIosBundleIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIosBundleIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); iosBundleId_ = value; bitField0_ |= 0x00000020; @@ -1836,20 +1600,18 @@ public Builder setIosBundleIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object action_ = ""; /** - * - * *
      * Output only. Action name provided at token generation.
      * 
* * string action = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The action. */ public java.lang.String getAction() { java.lang.Object ref = action_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); action_ = s; return s; @@ -1858,21 +1620,20 @@ public java.lang.String getAction() { } } /** - * - * *
      * Output only. Action name provided at token generation.
      * 
* * string action = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for action. */ - public com.google.protobuf.ByteString getActionBytes() { + public com.google.protobuf.ByteString + getActionBytes() { java.lang.Object ref = action_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); action_ = b; return b; } else { @@ -1880,35 +1641,28 @@ public com.google.protobuf.ByteString getActionBytes() { } } /** - * - * *
      * Output only. Action name provided at token generation.
      * 
* * string action = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The action to set. * @return This builder for chaining. */ - public Builder setAction(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAction( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } action_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Output only. Action name provided at token generation.
      * 
* * string action = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearAction() { @@ -1918,30 +1672,26 @@ public Builder clearAction() { return this; } /** - * - * *
      * Output only. Action name provided at token generation.
      * 
* * string action = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for action to set. * @return This builder for chaining. */ - public Builder setActionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setActionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); action_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1951,12 +1701,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.TokenProperties) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.TokenProperties) private static final com.google.recaptchaenterprise.v1.TokenProperties DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.TokenProperties(); } @@ -1965,27 +1715,27 @@ public static com.google.recaptchaenterprise.v1.TokenProperties getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TokenProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TokenProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2000,4 +1750,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.TokenProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenPropertiesOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenPropertiesOrBuilder.java similarity index 73% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenPropertiesOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenPropertiesOrBuilder.java index 1ef770aed63c..05ecaec2a5b7 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenPropertiesOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TokenPropertiesOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface TokenPropertiesOrBuilder - extends +public interface TokenPropertiesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.TokenProperties) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Whether the provided user response token is valid. When valid
    * = false, the reason could be specified in invalid_reason or it could also
@@ -35,181 +17,139 @@ public interface TokenPropertiesOrBuilder
    * 
* * bool valid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The valid. */ boolean getValid(); /** - * - * *
    * Output only. Reason associated with the response when valid = false.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for invalidReason. */ int getInvalidReasonValue(); /** - * - * *
    * Output only. Reason associated with the response when valid = false.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The invalidReason. */ com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason getInvalidReason(); /** - * - * *
    * Output only. The timestamp corresponding to the generation of the token.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The timestamp corresponding to the generation of the token.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The timestamp corresponding to the generation of the token.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The hostname of the page on which the token was generated (Web
    * keys only).
    * 
* * string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The hostname. */ java.lang.String getHostname(); /** - * - * *
    * Output only. The hostname of the page on which the token was generated (Web
    * keys only).
    * 
* * string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for hostname. */ - com.google.protobuf.ByteString getHostnameBytes(); + com.google.protobuf.ByteString + getHostnameBytes(); /** - * - * *
    * Output only. The name of the Android package with which the token was
    * generated (Android keys only).
    * 
* * string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The androidPackageName. */ java.lang.String getAndroidPackageName(); /** - * - * *
    * Output only. The name of the Android package with which the token was
    * generated (Android keys only).
    * 
* * string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for androidPackageName. */ - com.google.protobuf.ByteString getAndroidPackageNameBytes(); + com.google.protobuf.ByteString + getAndroidPackageNameBytes(); /** - * - * *
    * Output only. The ID of the iOS bundle with which the token was generated
    * (iOS keys only).
    * 
* * string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The iosBundleId. */ java.lang.String getIosBundleId(); /** - * - * *
    * Output only. The ID of the iOS bundle with which the token was generated
    * (iOS keys only).
    * 
* * string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for iosBundleId. */ - com.google.protobuf.ByteString getIosBundleIdBytes(); + com.google.protobuf.ByteString + getIosBundleIdBytes(); /** - * - * *
    * Output only. Action name provided at token generation.
    * 
* * string action = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The action. */ java.lang.String getAction(); /** - * - * *
    * Output only. Action name provided at token generation.
    * 
* * string action = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for action. */ - com.google.protobuf.ByteString getActionBytes(); + com.google.protobuf.ByteString + getActionBytes(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionData.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionData.java similarity index 71% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionData.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionData.java index 4a94c85a404f..fcf5f8bea069 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionData.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionData.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * Transaction data associated with a payment protected by reCAPTCHA Enterprise.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TransactionData} */ -public final class TransactionData extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TransactionData extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.TransactionData) TransactionDataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TransactionData.newBuilder() to construct. private TransactionData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TransactionData() { transactionId_ = ""; paymentMethod_ = ""; @@ -49,60 +31,51 @@ private TransactionData() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TransactionData(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TransactionData.class, - com.google.recaptchaenterprise.v1.TransactionData.Builder.class); + com.google.recaptchaenterprise.v1.TransactionData.class, com.google.recaptchaenterprise.v1.TransactionData.Builder.class); } - public interface AddressOrBuilder - extends + public interface AddressOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.TransactionData.Address) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Optional. The recipient name, potentially including information such as
      * "care of".
      * 
* * string recipient = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The recipient. */ java.lang.String getRecipient(); /** - * - * *
      * Optional. The recipient name, potentially including information such as
      * "care of".
      * 
* * string recipient = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for recipient. */ - com.google.protobuf.ByteString getRecipientBytes(); + com.google.protobuf.ByteString + getRecipientBytes(); /** - * - * *
      * Optional. The first lines of the address. The first line generally
      * contains the street name and number, and further lines may include
@@ -110,13 +83,11 @@ public interface AddressOrBuilder
      * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the address. */ - java.util.List getAddressList(); + java.util.List + getAddressList(); /** - * - * *
      * Optional. The first lines of the address. The first line generally
      * contains the street name and number, and further lines may include
@@ -124,13 +95,10 @@ public interface AddressOrBuilder
      * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of address. */ int getAddressCount(); /** - * - * *
      * Optional. The first lines of the address. The first line generally
      * contains the street name and number, and further lines may include
@@ -138,14 +106,11 @@ public interface AddressOrBuilder
      * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The address at the given index. */ java.lang.String getAddress(int index); /** - * - * *
      * Optional. The first lines of the address. The first line generally
      * contains the street name and number, and further lines may include
@@ -153,136 +118,114 @@ public interface AddressOrBuilder
      * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the address at the given index. */ - com.google.protobuf.ByteString getAddressBytes(int index); + com.google.protobuf.ByteString + getAddressBytes(int index); /** - * - * *
      * Optional. The town/city of the address.
      * 
* * string locality = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The locality. */ java.lang.String getLocality(); /** - * - * *
      * Optional. The town/city of the address.
      * 
* * string locality = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for locality. */ - com.google.protobuf.ByteString getLocalityBytes(); + com.google.protobuf.ByteString + getLocalityBytes(); /** - * - * *
      * Optional. The state, province, or otherwise administrative area of the
      * address.
      * 
* * string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The administrativeArea. */ java.lang.String getAdministrativeArea(); /** - * - * *
      * Optional. The state, province, or otherwise administrative area of the
      * address.
      * 
* * string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for administrativeArea. */ - com.google.protobuf.ByteString getAdministrativeAreaBytes(); + com.google.protobuf.ByteString + getAdministrativeAreaBytes(); /** - * - * *
      * Optional. The CLDR country/region of the address.
      * 
* * string region_code = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The regionCode. */ java.lang.String getRegionCode(); /** - * - * *
      * Optional. The CLDR country/region of the address.
      * 
* * string region_code = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for regionCode. */ - com.google.protobuf.ByteString getRegionCodeBytes(); + com.google.protobuf.ByteString + getRegionCodeBytes(); /** - * - * *
      * Optional. The postal or ZIP code of the address.
      * 
* * string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The postalCode. */ java.lang.String getPostalCode(); /** - * - * *
      * Optional. The postal or ZIP code of the address.
      * 
* * string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for postalCode. */ - com.google.protobuf.ByteString getPostalCodeBytes(); + com.google.protobuf.ByteString + getPostalCodeBytes(); } /** - * - * *
    * Structured address format for billing and shipping addresses.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TransactionData.Address} */ - public static final class Address extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Address extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.TransactionData.Address) AddressOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Address.newBuilder() to construct. private Address(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Address() { recipient_ = ""; - address_ = com.google.protobuf.LazyStringArrayList.emptyList(); + address_ = + com.google.protobuf.LazyStringArrayList.emptyList(); locality_ = ""; administrativeArea_ = ""; regionCode_ = ""; @@ -291,39 +234,34 @@ private Address() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Address(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TransactionData.Address.class, - com.google.recaptchaenterprise.v1.TransactionData.Address.Builder.class); + com.google.recaptchaenterprise.v1.TransactionData.Address.class, com.google.recaptchaenterprise.v1.TransactionData.Address.Builder.class); } public static final int RECIPIENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object recipient_ = ""; /** - * - * *
      * Optional. The recipient name, potentially including information such as
      * "care of".
      * 
* * string recipient = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The recipient. */ @java.lang.Override @@ -332,30 +270,30 @@ public java.lang.String getRecipient() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recipient_ = s; return s; } } /** - * - * *
      * Optional. The recipient name, potentially including information such as
      * "care of".
      * 
* * string recipient = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for recipient. */ @java.lang.Override - public com.google.protobuf.ByteString getRecipientBytes() { + public com.google.protobuf.ByteString + getRecipientBytes() { java.lang.Object ref = recipient_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); recipient_ = b; return b; } else { @@ -364,13 +302,10 @@ public com.google.protobuf.ByteString getRecipientBytes() { } public static final int ADDRESS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList address_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
      * Optional. The first lines of the address. The first line generally
      * contains the street name and number, and further lines may include
@@ -378,15 +313,13 @@ public com.google.protobuf.ByteString getRecipientBytes() {
      * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the address. */ - public com.google.protobuf.ProtocolStringList getAddressList() { + public com.google.protobuf.ProtocolStringList + getAddressList() { return address_; } /** - * - * *
      * Optional. The first lines of the address. The first line generally
      * contains the street name and number, and further lines may include
@@ -394,15 +327,12 @@ public com.google.protobuf.ProtocolStringList getAddressList() {
      * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of address. */ public int getAddressCount() { return address_.size(); } /** - * - * *
      * Optional. The first lines of the address. The first line generally
      * contains the street name and number, and further lines may include
@@ -410,7 +340,6 @@ public int getAddressCount() {
      * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The address at the given index. */ @@ -418,8 +347,6 @@ public java.lang.String getAddress(int index) { return address_.get(index); } /** - * - * *
      * Optional. The first lines of the address. The first line generally
      * contains the street name and number, and further lines may include
@@ -427,27 +354,23 @@ public java.lang.String getAddress(int index) {
      * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the address at the given index. */ - public com.google.protobuf.ByteString getAddressBytes(int index) { + public com.google.protobuf.ByteString + getAddressBytes(int index) { return address_.getByteString(index); } public static final int LOCALITY_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object locality_ = ""; /** - * - * *
      * Optional. The town/city of the address.
      * 
* * string locality = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The locality. */ @java.lang.Override @@ -456,29 +379,29 @@ public java.lang.String getLocality() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locality_ = s; return s; } } /** - * - * *
      * Optional. The town/city of the address.
      * 
* * string locality = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for locality. */ @java.lang.Override - public com.google.protobuf.ByteString getLocalityBytes() { + public com.google.protobuf.ByteString + getLocalityBytes() { java.lang.Object ref = locality_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locality_ = b; return b; } else { @@ -487,19 +410,15 @@ public com.google.protobuf.ByteString getLocalityBytes() { } public static final int ADMINISTRATIVE_AREA_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object administrativeArea_ = ""; /** - * - * *
      * Optional. The state, province, or otherwise administrative area of the
      * address.
      * 
* * string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The administrativeArea. */ @java.lang.Override @@ -508,30 +427,30 @@ public java.lang.String getAdministrativeArea() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); administrativeArea_ = s; return s; } } /** - * - * *
      * Optional. The state, province, or otherwise administrative area of the
      * address.
      * 
* * string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for administrativeArea. */ @java.lang.Override - public com.google.protobuf.ByteString getAdministrativeAreaBytes() { + public com.google.protobuf.ByteString + getAdministrativeAreaBytes() { java.lang.Object ref = administrativeArea_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); administrativeArea_ = b; return b; } else { @@ -540,18 +459,14 @@ public com.google.protobuf.ByteString getAdministrativeAreaBytes() { } public static final int REGION_CODE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object regionCode_ = ""; /** - * - * *
      * Optional. The CLDR country/region of the address.
      * 
* * string region_code = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The regionCode. */ @java.lang.Override @@ -560,29 +475,29 @@ public java.lang.String getRegionCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); regionCode_ = s; return s; } } /** - * - * *
      * Optional. The CLDR country/region of the address.
      * 
* * string region_code = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for regionCode. */ @java.lang.Override - public com.google.protobuf.ByteString getRegionCodeBytes() { + public com.google.protobuf.ByteString + getRegionCodeBytes() { java.lang.Object ref = regionCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); regionCode_ = b; return b; } else { @@ -591,18 +506,14 @@ public com.google.protobuf.ByteString getRegionCodeBytes() { } public static final int POSTAL_CODE_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object postalCode_ = ""; /** - * - * *
      * Optional. The postal or ZIP code of the address.
      * 
* * string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The postalCode. */ @java.lang.Override @@ -611,29 +522,29 @@ public java.lang.String getPostalCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postalCode_ = s; return s; } } /** - * - * *
      * Optional. The postal or ZIP code of the address.
      * 
* * string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for postalCode. */ @java.lang.Override - public com.google.protobuf.ByteString getPostalCodeBytes() { + public com.google.protobuf.ByteString + getPostalCodeBytes() { java.lang.Object ref = postalCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); postalCode_ = b; return b; } else { @@ -642,7 +553,6 @@ public com.google.protobuf.ByteString getPostalCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -654,7 +564,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recipient_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipient_); } @@ -713,20 +624,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.TransactionData.Address)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.TransactionData.Address other = - (com.google.recaptchaenterprise.v1.TransactionData.Address) obj; - - if (!getRecipient().equals(other.getRecipient())) return false; - if (!getAddressList().equals(other.getAddressList())) return false; - if (!getLocality().equals(other.getLocality())) return false; - if (!getAdministrativeArea().equals(other.getAdministrativeArea())) return false; - if (!getRegionCode().equals(other.getRegionCode())) return false; - if (!getPostalCode().equals(other.getPostalCode())) return false; + com.google.recaptchaenterprise.v1.TransactionData.Address other = (com.google.recaptchaenterprise.v1.TransactionData.Address) obj; + + if (!getRecipient() + .equals(other.getRecipient())) return false; + if (!getAddressList() + .equals(other.getAddressList())) return false; + if (!getLocality() + .equals(other.getLocality())) return false; + if (!getAdministrativeArea() + .equals(other.getAdministrativeArea())) return false; + if (!getRegionCode() + .equals(other.getRegionCode())) return false; + if (!getPostalCode() + .equals(other.getPostalCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -758,94 +674,89 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.TransactionData.Address parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.TransactionData.Address parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData.Address parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.TransactionData.Address parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData.Address parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.TransactionData.Address parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.TransactionData.Address parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.TransactionData.Address parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.TransactionData.Address parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData.Address parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.TransactionData.Address parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.TransactionData.Address parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData.Address parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.TransactionData.Address parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.TransactionData.Address prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.TransactionData.Address prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -855,47 +766,46 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Structured address format for billing and shipping addresses.
      * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TransactionData.Address} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.TransactionData.Address) com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TransactionData.Address.class, - com.google.recaptchaenterprise.v1.TransactionData.Address.Builder.class); + com.google.recaptchaenterprise.v1.TransactionData.Address.class, com.google.recaptchaenterprise.v1.TransactionData.Address.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.TransactionData.Address.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; recipient_ = ""; - address_ = com.google.protobuf.LazyStringArrayList.emptyList(); + address_ = + com.google.protobuf.LazyStringArrayList.emptyList(); locality_ = ""; administrativeArea_ = ""; regionCode_ = ""; @@ -904,9 +814,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Address_descriptor; } @java.lang.Override @@ -925,11 +835,8 @@ public com.google.recaptchaenterprise.v1.TransactionData.Address build() { @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.Address buildPartial() { - com.google.recaptchaenterprise.v1.TransactionData.Address result = - new com.google.recaptchaenterprise.v1.TransactionData.Address(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.TransactionData.Address result = new com.google.recaptchaenterprise.v1.TransactionData.Address(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -961,41 +868,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.TransactionData.Add public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.TransactionData.Address) { - return mergeFrom((com.google.recaptchaenterprise.v1.TransactionData.Address) other); + return mergeFrom((com.google.recaptchaenterprise.v1.TransactionData.Address)other); } else { super.mergeFrom(other); return this; @@ -1003,8 +907,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.TransactionData.Address other) { - if (other == com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance()) return this; if (!other.getRecipient().isEmpty()) { recipient_ = other.recipient_; bitField0_ |= 0x00000001; @@ -1066,50 +969,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - recipient_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureAddressIsMutable(); - address_.add(s); - break; - } // case 18 - case 26: - { - locality_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - administrativeArea_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - regionCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - postalCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + recipient_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAddressIsMutable(); + address_.add(s); + break; + } // case 18 + case 26: { + locality_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + administrativeArea_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + regionCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + postalCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1119,26 +1015,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object recipient_ = ""; /** - * - * *
        * Optional. The recipient name, potentially including information such as
        * "care of".
        * 
* * string recipient = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The recipient. */ public java.lang.String getRecipient() { java.lang.Object ref = recipient_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recipient_ = s; return s; @@ -1147,22 +1040,21 @@ public java.lang.String getRecipient() { } } /** - * - * *
        * Optional. The recipient name, potentially including information such as
        * "care of".
        * 
* * string recipient = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for recipient. */ - public com.google.protobuf.ByteString getRecipientBytes() { + public com.google.protobuf.ByteString + getRecipientBytes() { java.lang.Object ref = recipient_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); recipient_ = b; return b; } else { @@ -1170,37 +1062,30 @@ public com.google.protobuf.ByteString getRecipientBytes() { } } /** - * - * *
        * Optional. The recipient name, potentially including information such as
        * "care of".
        * 
* * string recipient = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The recipient to set. * @return This builder for chaining. */ - public Builder setRecipient(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecipient( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } recipient_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Optional. The recipient name, potentially including information such as
        * "care of".
        * 
* * string recipient = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRecipient() { @@ -1210,22 +1095,18 @@ public Builder clearRecipient() { return this; } /** - * - * *
        * Optional. The recipient name, potentially including information such as
        * "care of".
        * 
* * string recipient = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for recipient to set. * @return This builder for chaining. */ - public Builder setRecipientBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecipientBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); recipient_ = value; bitField0_ |= 0x00000001; @@ -1235,7 +1116,6 @@ public Builder setRecipientBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList address_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureAddressIsMutable() { if (!address_.isModifiable()) { address_ = new com.google.protobuf.LazyStringArrayList(address_); @@ -1243,8 +1123,6 @@ private void ensureAddressIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
        * Optional. The first lines of the address. The first line generally
        * contains the street name and number, and further lines may include
@@ -1252,16 +1130,14 @@ private void ensureAddressIsMutable() {
        * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the address. */ - public com.google.protobuf.ProtocolStringList getAddressList() { + public com.google.protobuf.ProtocolStringList + getAddressList() { address_.makeImmutable(); return address_; } /** - * - * *
        * Optional. The first lines of the address. The first line generally
        * contains the street name and number, and further lines may include
@@ -1269,15 +1145,12 @@ public com.google.protobuf.ProtocolStringList getAddressList() {
        * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of address. */ public int getAddressCount() { return address_.size(); } /** - * - * *
        * Optional. The first lines of the address. The first line generally
        * contains the street name and number, and further lines may include
@@ -1285,7 +1158,6 @@ public int getAddressCount() {
        * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The address at the given index. */ @@ -1293,8 +1165,6 @@ public java.lang.String getAddress(int index) { return address_.get(index); } /** - * - * *
        * Optional. The first lines of the address. The first line generally
        * contains the street name and number, and further lines may include
@@ -1302,16 +1172,14 @@ public java.lang.String getAddress(int index) {
        * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the address at the given index. */ - public com.google.protobuf.ByteString getAddressBytes(int index) { + public com.google.protobuf.ByteString + getAddressBytes(int index) { return address_.getByteString(index); } /** - * - * *
        * Optional. The first lines of the address. The first line generally
        * contains the street name and number, and further lines may include
@@ -1319,15 +1187,13 @@ public com.google.protobuf.ByteString getAddressBytes(int index) {
        * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The address to set. * @return This builder for chaining. */ - public Builder setAddress(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAddress( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAddressIsMutable(); address_.set(index, value); bitField0_ |= 0x00000002; @@ -1335,8 +1201,6 @@ public Builder setAddress(int index, java.lang.String value) { return this; } /** - * - * *
        * Optional. The first lines of the address. The first line generally
        * contains the street name and number, and further lines may include
@@ -1344,14 +1208,12 @@ public Builder setAddress(int index, java.lang.String value) {
        * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The address to add. * @return This builder for chaining. */ - public Builder addAddress(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAddress( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAddressIsMutable(); address_.add(value); bitField0_ |= 0x00000002; @@ -1359,8 +1221,6 @@ public Builder addAddress(java.lang.String value) { return this; } /** - * - * *
        * Optional. The first lines of the address. The first line generally
        * contains the street name and number, and further lines may include
@@ -1368,20 +1228,19 @@ public Builder addAddress(java.lang.String value) {
        * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The address to add. * @return This builder for chaining. */ - public Builder addAllAddress(java.lang.Iterable values) { + public Builder addAllAddress( + java.lang.Iterable values) { ensureAddressIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, address_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, address_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Optional. The first lines of the address. The first line generally
        * contains the street name and number, and further lines may include
@@ -1389,19 +1248,16 @@ public Builder addAllAddress(java.lang.Iterable values) {
        * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAddress() { - address_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + address_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
        * Optional. The first lines of the address. The first line generally
        * contains the street name and number, and further lines may include
@@ -1409,14 +1265,12 @@ public Builder clearAddress() {
        * 
* * repeated string address = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the address to add. * @return This builder for chaining. */ - public Builder addAddressBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAddressIsMutable(); address_.add(value); @@ -1427,20 +1281,18 @@ public Builder addAddressBytes(com.google.protobuf.ByteString value) { private java.lang.Object locality_ = ""; /** - * - * *
        * Optional. The town/city of the address.
        * 
* * string locality = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The locality. */ public java.lang.String getLocality() { java.lang.Object ref = locality_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locality_ = s; return s; @@ -1449,21 +1301,20 @@ public java.lang.String getLocality() { } } /** - * - * *
        * Optional. The town/city of the address.
        * 
* * string locality = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for locality. */ - public com.google.protobuf.ByteString getLocalityBytes() { + public com.google.protobuf.ByteString + getLocalityBytes() { java.lang.Object ref = locality_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locality_ = b; return b; } else { @@ -1471,35 +1322,28 @@ public com.google.protobuf.ByteString getLocalityBytes() { } } /** - * - * *
        * Optional. The town/city of the address.
        * 
* * string locality = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The locality to set. * @return This builder for chaining. */ - public Builder setLocality(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocality( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } locality_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * Optional. The town/city of the address.
        * 
* * string locality = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLocality() { @@ -1509,21 +1353,17 @@ public Builder clearLocality() { return this; } /** - * - * *
        * Optional. The town/city of the address.
        * 
* * string locality = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for locality to set. * @return This builder for chaining. */ - public Builder setLocalityBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocalityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); locality_ = value; bitField0_ |= 0x00000004; @@ -1533,21 +1373,19 @@ public Builder setLocalityBytes(com.google.protobuf.ByteString value) { private java.lang.Object administrativeArea_ = ""; /** - * - * *
        * Optional. The state, province, or otherwise administrative area of the
        * address.
        * 
* * string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The administrativeArea. */ public java.lang.String getAdministrativeArea() { java.lang.Object ref = administrativeArea_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); administrativeArea_ = s; return s; @@ -1556,22 +1394,21 @@ public java.lang.String getAdministrativeArea() { } } /** - * - * *
        * Optional. The state, province, or otherwise administrative area of the
        * address.
        * 
* * string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for administrativeArea. */ - public com.google.protobuf.ByteString getAdministrativeAreaBytes() { + public com.google.protobuf.ByteString + getAdministrativeAreaBytes() { java.lang.Object ref = administrativeArea_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); administrativeArea_ = b; return b; } else { @@ -1579,37 +1416,30 @@ public com.google.protobuf.ByteString getAdministrativeAreaBytes() { } } /** - * - * *
        * Optional. The state, province, or otherwise administrative area of the
        * address.
        * 
* * string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The administrativeArea to set. * @return This builder for chaining. */ - public Builder setAdministrativeArea(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAdministrativeArea( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } administrativeArea_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
        * Optional. The state, province, or otherwise administrative area of the
        * address.
        * 
* * string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAdministrativeArea() { @@ -1619,22 +1449,18 @@ public Builder clearAdministrativeArea() { return this; } /** - * - * *
        * Optional. The state, province, or otherwise administrative area of the
        * address.
        * 
* * string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for administrativeArea to set. * @return This builder for chaining. */ - public Builder setAdministrativeAreaBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAdministrativeAreaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); administrativeArea_ = value; bitField0_ |= 0x00000008; @@ -1644,20 +1470,18 @@ public Builder setAdministrativeAreaBytes(com.google.protobuf.ByteString value) private java.lang.Object regionCode_ = ""; /** - * - * *
        * Optional. The CLDR country/region of the address.
        * 
* * string region_code = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The regionCode. */ public java.lang.String getRegionCode() { java.lang.Object ref = regionCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); regionCode_ = s; return s; @@ -1666,21 +1490,20 @@ public java.lang.String getRegionCode() { } } /** - * - * *
        * Optional. The CLDR country/region of the address.
        * 
* * string region_code = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for regionCode. */ - public com.google.protobuf.ByteString getRegionCodeBytes() { + public com.google.protobuf.ByteString + getRegionCodeBytes() { java.lang.Object ref = regionCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); regionCode_ = b; return b; } else { @@ -1688,35 +1511,28 @@ public com.google.protobuf.ByteString getRegionCodeBytes() { } } /** - * - * *
        * Optional. The CLDR country/region of the address.
        * 
* * string region_code = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The regionCode to set. * @return This builder for chaining. */ - public Builder setRegionCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRegionCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } regionCode_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
        * Optional. The CLDR country/region of the address.
        * 
* * string region_code = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRegionCode() { @@ -1726,21 +1542,17 @@ public Builder clearRegionCode() { return this; } /** - * - * *
        * Optional. The CLDR country/region of the address.
        * 
* * string region_code = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for regionCode to set. * @return This builder for chaining. */ - public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRegionCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); regionCode_ = value; bitField0_ |= 0x00000010; @@ -1750,20 +1562,18 @@ public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object postalCode_ = ""; /** - * - * *
        * Optional. The postal or ZIP code of the address.
        * 
* * string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The postalCode. */ public java.lang.String getPostalCode() { java.lang.Object ref = postalCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postalCode_ = s; return s; @@ -1772,21 +1582,20 @@ public java.lang.String getPostalCode() { } } /** - * - * *
        * Optional. The postal or ZIP code of the address.
        * 
* * string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for postalCode. */ - public com.google.protobuf.ByteString getPostalCodeBytes() { + public com.google.protobuf.ByteString + getPostalCodeBytes() { java.lang.Object ref = postalCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); postalCode_ = b; return b; } else { @@ -1794,35 +1603,28 @@ public com.google.protobuf.ByteString getPostalCodeBytes() { } } /** - * - * *
        * Optional. The postal or ZIP code of the address.
        * 
* * string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The postalCode to set. * @return This builder for chaining. */ - public Builder setPostalCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPostalCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } postalCode_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
        * Optional. The postal or ZIP code of the address.
        * 
* * string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPostalCode() { @@ -1832,28 +1634,23 @@ public Builder clearPostalCode() { return this; } /** - * - * *
        * Optional. The postal or ZIP code of the address.
        * 
* * string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for postalCode to set. * @return This builder for chaining. */ - public Builder setPostalCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPostalCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); postalCode_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1866,12 +1663,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.TransactionData.Address) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.TransactionData.Address) private static final com.google.recaptchaenterprise.v1.TransactionData.Address DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.TransactionData.Address(); } @@ -1880,28 +1677,27 @@ public static com.google.recaptchaenterprise.v1.TransactionData.Address getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser
PARSER = - new com.google.protobuf.AbstractParser
() { - @java.lang.Override - public Address parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser
() { + @java.lang.Override + public Address parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser
parser() { return PARSER; @@ -1916,16 +1712,14 @@ public com.google.protobuf.Parser
getParserForType() { public com.google.recaptchaenterprise.v1.TransactionData.Address getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface UserOrBuilder - extends + public interface UserOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.TransactionData.User) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Optional. Unique account identifier for this user. If using account
      * defender, this should match the hashed_account_id field. Otherwise, a
@@ -1933,13 +1727,10 @@ public interface UserOrBuilder
      * 
* * string account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The accountId. */ java.lang.String getAccountId(); /** - * - * *
      * Optional. Unique account identifier for this user. If using account
      * defender, this should match the hashed_account_id field. Otherwise, a
@@ -1947,121 +1738,99 @@ public interface UserOrBuilder
      * 
* * string account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for accountId. */ - com.google.protobuf.ByteString getAccountIdBytes(); + com.google.protobuf.ByteString + getAccountIdBytes(); /** - * - * *
      * Optional. The epoch milliseconds of the user's account creation.
      * 
* * int64 creation_ms = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The creationMs. */ long getCreationMs(); /** - * - * *
      * Optional. The email address of the user.
      * 
* * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The email. */ java.lang.String getEmail(); /** - * - * *
      * Optional. The email address of the user.
      * 
* * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for email. */ - com.google.protobuf.ByteString getEmailBytes(); + com.google.protobuf.ByteString + getEmailBytes(); /** - * - * *
      * Optional. Whether the email has been verified to be accessible by the
      * user (OTP or similar).
      * 
* * bool email_verified = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The emailVerified. */ boolean getEmailVerified(); /** - * - * *
      * Optional. The phone number of the user, with country code.
      * 
* * string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The phoneNumber. */ java.lang.String getPhoneNumber(); /** - * - * *
      * Optional. The phone number of the user, with country code.
      * 
* * string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for phoneNumber. */ - com.google.protobuf.ByteString getPhoneNumberBytes(); + com.google.protobuf.ByteString + getPhoneNumberBytes(); /** - * - * *
      * Optional. Whether the phone number has been verified to be accessible by
      * the user (OTP or similar).
      * 
* * bool phone_verified = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The phoneVerified. */ boolean getPhoneVerified(); } /** - * - * *
    * Details about a user's account involved in the transaction.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TransactionData.User} */ - public static final class User extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class User extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.TransactionData.User) UserOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use User.newBuilder() to construct. private User(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private User() { accountId_ = ""; email_ = ""; @@ -2070,32 +1839,28 @@ private User() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new User(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TransactionData.User.class, - com.google.recaptchaenterprise.v1.TransactionData.User.Builder.class); + com.google.recaptchaenterprise.v1.TransactionData.User.class, com.google.recaptchaenterprise.v1.TransactionData.User.Builder.class); } public static final int ACCOUNT_ID_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object accountId_ = ""; /** - * - * *
      * Optional. Unique account identifier for this user. If using account
      * defender, this should match the hashed_account_id field. Otherwise, a
@@ -2103,7 +1868,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The accountId. */ @java.lang.Override @@ -2112,15 +1876,14 @@ public java.lang.String getAccountId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountId_ = s; return s; } } /** - * - * *
      * Optional. Unique account identifier for this user. If using account
      * defender, this should match the hashed_account_id field. Otherwise, a
@@ -2128,15 +1891,16 @@ public java.lang.String getAccountId() {
      * 
* * string account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for accountId. */ @java.lang.Override - public com.google.protobuf.ByteString getAccountIdBytes() { + public com.google.protobuf.ByteString + getAccountIdBytes() { java.lang.Object ref = accountId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accountId_ = b; return b; } else { @@ -2147,14 +1911,11 @@ public com.google.protobuf.ByteString getAccountIdBytes() { public static final int CREATION_MS_FIELD_NUMBER = 1; private long creationMs_ = 0L; /** - * - * *
      * Optional. The epoch milliseconds of the user's account creation.
      * 
* * int64 creation_ms = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The creationMs. */ @java.lang.Override @@ -2163,18 +1924,14 @@ public long getCreationMs() { } public static final int EMAIL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object email_ = ""; /** - * - * *
      * Optional. The email address of the user.
      * 
* * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The email. */ @java.lang.Override @@ -2183,29 +1940,29 @@ public java.lang.String getEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; } } /** - * - * *
      * Optional. The email address of the user.
      * 
* * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for email. */ @java.lang.Override - public com.google.protobuf.ByteString getEmailBytes() { + public com.google.protobuf.ByteString + getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); email_ = b; return b; } else { @@ -2216,15 +1973,12 @@ public com.google.protobuf.ByteString getEmailBytes() { public static final int EMAIL_VERIFIED_FIELD_NUMBER = 3; private boolean emailVerified_ = false; /** - * - * *
      * Optional. Whether the email has been verified to be accessible by the
      * user (OTP or similar).
      * 
* * bool email_verified = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The emailVerified. */ @java.lang.Override @@ -2233,18 +1987,14 @@ public boolean getEmailVerified() { } public static final int PHONE_NUMBER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object phoneNumber_ = ""; /** - * - * *
      * Optional. The phone number of the user, with country code.
      * 
* * string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The phoneNumber. */ @java.lang.Override @@ -2253,29 +2003,29 @@ public java.lang.String getPhoneNumber() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phoneNumber_ = s; return s; } } /** - * - * *
      * Optional. The phone number of the user, with country code.
      * 
* * string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for phoneNumber. */ @java.lang.Override - public com.google.protobuf.ByteString getPhoneNumberBytes() { + public com.google.protobuf.ByteString + getPhoneNumberBytes() { java.lang.Object ref = phoneNumber_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); phoneNumber_ = b; return b; } else { @@ -2286,15 +2036,12 @@ public com.google.protobuf.ByteString getPhoneNumberBytes() { public static final int PHONE_VERIFIED_FIELD_NUMBER = 5; private boolean phoneVerified_ = false; /** - * - * *
      * Optional. Whether the phone number has been verified to be accessible by
      * the user (OTP or similar).
      * 
* * bool phone_verified = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The phoneVerified. */ @java.lang.Override @@ -2303,7 +2050,6 @@ public boolean getPhoneVerified() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2315,7 +2061,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (creationMs_ != 0L) { output.writeInt64(1, creationMs_); } @@ -2344,19 +2091,22 @@ public int getSerializedSize() { size = 0; if (creationMs_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, creationMs_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, creationMs_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, email_); } if (emailVerified_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, emailVerified_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, emailVerified_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phoneNumber_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, phoneNumber_); } if (phoneVerified_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, phoneVerified_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, phoneVerified_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, accountId_); @@ -2369,20 +2119,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.TransactionData.User)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.TransactionData.User other = - (com.google.recaptchaenterprise.v1.TransactionData.User) obj; - - if (!getAccountId().equals(other.getAccountId())) return false; - if (getCreationMs() != other.getCreationMs()) return false; - if (!getEmail().equals(other.getEmail())) return false; - if (getEmailVerified() != other.getEmailVerified()) return false; - if (!getPhoneNumber().equals(other.getPhoneNumber())) return false; - if (getPhoneVerified() != other.getPhoneVerified()) return false; + com.google.recaptchaenterprise.v1.TransactionData.User other = (com.google.recaptchaenterprise.v1.TransactionData.User) obj; + + if (!getAccountId() + .equals(other.getAccountId())) return false; + if (getCreationMs() + != other.getCreationMs()) return false; + if (!getEmail() + .equals(other.getEmail())) return false; + if (getEmailVerified() + != other.getEmailVerified()) return false; + if (!getPhoneNumber() + .equals(other.getPhoneNumber())) return false; + if (getPhoneVerified() + != other.getPhoneVerified()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2397,109 +2152,107 @@ public int hashCode() { hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getAccountId().hashCode(); hash = (37 * hash) + CREATION_MS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCreationMs()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCreationMs()); hash = (37 * hash) + EMAIL_FIELD_NUMBER; hash = (53 * hash) + getEmail().hashCode(); hash = (37 * hash) + EMAIL_VERIFIED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEmailVerified()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEmailVerified()); hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getPhoneNumber().hashCode(); hash = (37 * hash) + PHONE_VERIFIED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPhoneVerified()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPhoneVerified()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.recaptchaenterprise.v1.TransactionData.User parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.TransactionData.User parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData.User parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.TransactionData.User parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData.User parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.TransactionData.User parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.TransactionData.User parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.TransactionData.User parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.TransactionData.User parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData.User parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.TransactionData.User parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.TransactionData.User parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData.User parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.TransactionData.User parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.TransactionData.User prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.TransactionData.User prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2509,41 +2262,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Details about a user's account involved in the transaction.
      * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TransactionData.User} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.TransactionData.User) com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TransactionData.User.class, - com.google.recaptchaenterprise.v1.TransactionData.User.Builder.class); + com.google.recaptchaenterprise.v1.TransactionData.User.class, com.google.recaptchaenterprise.v1.TransactionData.User.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.TransactionData.User.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2558,9 +2309,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_User_descriptor; } @java.lang.Override @@ -2579,11 +2330,8 @@ public com.google.recaptchaenterprise.v1.TransactionData.User build() { @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.User buildPartial() { - com.google.recaptchaenterprise.v1.TransactionData.User result = - new com.google.recaptchaenterprise.v1.TransactionData.User(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.TransactionData.User result = new com.google.recaptchaenterprise.v1.TransactionData.User(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -2614,41 +2362,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.TransactionData.Use public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.TransactionData.User) { - return mergeFrom((com.google.recaptchaenterprise.v1.TransactionData.User) other); + return mergeFrom((com.google.recaptchaenterprise.v1.TransactionData.User)other); } else { super.mergeFrom(other); return this; @@ -2656,8 +2401,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.TransactionData.User other) { - if (other == com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance()) return this; if (!other.getAccountId().isEmpty()) { accountId_ = other.accountId_; bitField0_ |= 0x00000001; @@ -2708,49 +2452,42 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - creationMs_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 8 - case 18: - { - email_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 24: - { - emailVerified_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 24 - case 34: - { - phoneNumber_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 40: - { - phoneVerified_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 40 - case 50: - { - accountId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + creationMs_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 8 + case 18: { + email_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 24: { + emailVerified_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 34: { + phoneNumber_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 40: { + phoneVerified_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 50: { + accountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2760,13 +2497,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object accountId_ = ""; /** - * - * *
        * Optional. Unique account identifier for this user. If using account
        * defender, this should match the hashed_account_id field. Otherwise, a
@@ -2774,13 +2508,13 @@ public Builder mergeFrom(
        * 
* * string account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The accountId. */ public java.lang.String getAccountId() { java.lang.Object ref = accountId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountId_ = s; return s; @@ -2789,8 +2523,6 @@ public java.lang.String getAccountId() { } } /** - * - * *
        * Optional. Unique account identifier for this user. If using account
        * defender, this should match the hashed_account_id field. Otherwise, a
@@ -2798,14 +2530,15 @@ public java.lang.String getAccountId() {
        * 
* * string account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for accountId. */ - public com.google.protobuf.ByteString getAccountIdBytes() { + public com.google.protobuf.ByteString + getAccountIdBytes() { java.lang.Object ref = accountId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accountId_ = b; return b; } else { @@ -2813,8 +2546,6 @@ public com.google.protobuf.ByteString getAccountIdBytes() { } } /** - * - * *
        * Optional. Unique account identifier for this user. If using account
        * defender, this should match the hashed_account_id field. Otherwise, a
@@ -2822,22 +2553,18 @@ public com.google.protobuf.ByteString getAccountIdBytes() {
        * 
* * string account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The accountId to set. * @return This builder for chaining. */ - public Builder setAccountId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAccountId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } accountId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Optional. Unique account identifier for this user. If using account
        * defender, this should match the hashed_account_id field. Otherwise, a
@@ -2845,7 +2572,6 @@ public Builder setAccountId(java.lang.String value) {
        * 
* * string account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAccountId() { @@ -2855,8 +2581,6 @@ public Builder clearAccountId() { return this; } /** - * - * *
        * Optional. Unique account identifier for this user. If using account
        * defender, this should match the hashed_account_id field. Otherwise, a
@@ -2864,14 +2588,12 @@ public Builder clearAccountId() {
        * 
* * string account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for accountId to set. * @return This builder for chaining. */ - public Builder setAccountIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAccountIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); accountId_ = value; bitField0_ |= 0x00000001; @@ -2879,16 +2601,13 @@ public Builder setAccountIdBytes(com.google.protobuf.ByteString value) { return this; } - private long creationMs_; + private long creationMs_ ; /** - * - * *
        * Optional. The epoch milliseconds of the user's account creation.
        * 
* * int64 creation_ms = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The creationMs. */ @java.lang.Override @@ -2896,14 +2615,11 @@ public long getCreationMs() { return creationMs_; } /** - * - * *
        * Optional. The epoch milliseconds of the user's account creation.
        * 
* * int64 creation_ms = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The creationMs to set. * @return This builder for chaining. */ @@ -2915,14 +2631,11 @@ public Builder setCreationMs(long value) { return this; } /** - * - * *
        * Optional. The epoch milliseconds of the user's account creation.
        * 
* * int64 creation_ms = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCreationMs() { @@ -2934,20 +2647,18 @@ public Builder clearCreationMs() { private java.lang.Object email_ = ""; /** - * - * *
        * Optional. The email address of the user.
        * 
* * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The email. */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; @@ -2956,21 +2667,20 @@ public java.lang.String getEmail() { } } /** - * - * *
        * Optional. The email address of the user.
        * 
* * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for email. */ - public com.google.protobuf.ByteString getEmailBytes() { + public com.google.protobuf.ByteString + getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); email_ = b; return b; } else { @@ -2978,35 +2688,28 @@ public com.google.protobuf.ByteString getEmailBytes() { } } /** - * - * *
        * Optional. The email address of the user.
        * 
* * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The email to set. * @return This builder for chaining. */ - public Builder setEmail(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEmail( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } email_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * Optional. The email address of the user.
        * 
* * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEmail() { @@ -3016,21 +2719,17 @@ public Builder clearEmail() { return this; } /** - * - * *
        * Optional. The email address of the user.
        * 
* * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for email to set. * @return This builder for chaining. */ - public Builder setEmailBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); email_ = value; bitField0_ |= 0x00000004; @@ -3038,17 +2737,14 @@ public Builder setEmailBytes(com.google.protobuf.ByteString value) { return this; } - private boolean emailVerified_; + private boolean emailVerified_ ; /** - * - * *
        * Optional. Whether the email has been verified to be accessible by the
        * user (OTP or similar).
        * 
* * bool email_verified = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The emailVerified. */ @java.lang.Override @@ -3056,15 +2752,12 @@ public boolean getEmailVerified() { return emailVerified_; } /** - * - * *
        * Optional. Whether the email has been verified to be accessible by the
        * user (OTP or similar).
        * 
* * bool email_verified = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The emailVerified to set. * @return This builder for chaining. */ @@ -3076,15 +2769,12 @@ public Builder setEmailVerified(boolean value) { return this; } /** - * - * *
        * Optional. Whether the email has been verified to be accessible by the
        * user (OTP or similar).
        * 
* * bool email_verified = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEmailVerified() { @@ -3096,20 +2786,18 @@ public Builder clearEmailVerified() { private java.lang.Object phoneNumber_ = ""; /** - * - * *
        * Optional. The phone number of the user, with country code.
        * 
* * string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The phoneNumber. */ public java.lang.String getPhoneNumber() { java.lang.Object ref = phoneNumber_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phoneNumber_ = s; return s; @@ -3118,21 +2806,20 @@ public java.lang.String getPhoneNumber() { } } /** - * - * *
        * Optional. The phone number of the user, with country code.
        * 
* * string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for phoneNumber. */ - public com.google.protobuf.ByteString getPhoneNumberBytes() { + public com.google.protobuf.ByteString + getPhoneNumberBytes() { java.lang.Object ref = phoneNumber_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); phoneNumber_ = b; return b; } else { @@ -3140,35 +2827,28 @@ public com.google.protobuf.ByteString getPhoneNumberBytes() { } } /** - * - * *
        * Optional. The phone number of the user, with country code.
        * 
* * string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The phoneNumber to set. * @return This builder for chaining. */ - public Builder setPhoneNumber(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhoneNumber( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } phoneNumber_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
        * Optional. The phone number of the user, with country code.
        * 
* * string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPhoneNumber() { @@ -3178,21 +2858,17 @@ public Builder clearPhoneNumber() { return this; } /** - * - * *
        * Optional. The phone number of the user, with country code.
        * 
* * string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for phoneNumber to set. * @return This builder for chaining. */ - public Builder setPhoneNumberBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhoneNumberBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); phoneNumber_ = value; bitField0_ |= 0x00000010; @@ -3200,17 +2876,14 @@ public Builder setPhoneNumberBytes(com.google.protobuf.ByteString value) { return this; } - private boolean phoneVerified_; + private boolean phoneVerified_ ; /** - * - * *
        * Optional. Whether the phone number has been verified to be accessible by
        * the user (OTP or similar).
        * 
* * bool phone_verified = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The phoneVerified. */ @java.lang.Override @@ -3218,15 +2891,12 @@ public boolean getPhoneVerified() { return phoneVerified_; } /** - * - * *
        * Optional. Whether the phone number has been verified to be accessible by
        * the user (OTP or similar).
        * 
* * bool phone_verified = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The phoneVerified to set. * @return This builder for chaining. */ @@ -3238,15 +2908,12 @@ public Builder setPhoneVerified(boolean value) { return this; } /** - * - * *
        * Optional. Whether the phone number has been verified to be accessible by
        * the user (OTP or similar).
        * 
* * bool phone_verified = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPhoneVerified() { @@ -3255,7 +2922,6 @@ public Builder clearPhoneVerified() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3268,12 +2934,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.TransactionData.User) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.TransactionData.User) private static final com.google.recaptchaenterprise.v1.TransactionData.User DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.TransactionData.User(); } @@ -3282,28 +2948,27 @@ public static com.google.recaptchaenterprise.v1.TransactionData.User getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public User parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public User parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3318,111 +2983,92 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.TransactionData.User getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ItemOrBuilder - extends + public interface ItemOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.TransactionData.Item) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Optional. The full name of the item.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Optional. The full name of the item.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * Optional. The value per item that the user is paying, in the transaction
      * currency, after discounts.
      * 
* * double value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The value. */ double getValue(); /** - * - * *
      * Optional. The quantity of this item that is being purchased.
      * 
* * int64 quantity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The quantity. */ long getQuantity(); /** - * - * *
      * Optional. When a merchant is specified, its corresponding account_id.
      * Necessary to populate marketplace-style transactions.
      * 
* * string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The merchantAccountId. */ java.lang.String getMerchantAccountId(); /** - * - * *
      * Optional. When a merchant is specified, its corresponding account_id.
      * Necessary to populate marketplace-style transactions.
      * 
* * string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for merchantAccountId. */ - com.google.protobuf.ByteString getMerchantAccountIdBytes(); + com.google.protobuf.ByteString + getMerchantAccountIdBytes(); } /** - * - * *
    * Line items being purchased in this transaction.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TransactionData.Item} */ - public static final class Item extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Item extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.TransactionData.Item) ItemOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Item.newBuilder() to construct. private Item(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Item() { name_ = ""; merchantAccountId_ = ""; @@ -3430,38 +3076,33 @@ private Item() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Item(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TransactionData.Item.class, - com.google.recaptchaenterprise.v1.TransactionData.Item.Builder.class); + com.google.recaptchaenterprise.v1.TransactionData.Item.class, com.google.recaptchaenterprise.v1.TransactionData.Item.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
      * Optional. The full name of the item.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The name. */ @java.lang.Override @@ -3470,29 +3111,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Optional. The full name of the item.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -3503,15 +3144,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALUE_FIELD_NUMBER = 2; private double value_ = 0D; /** - * - * *
      * Optional. The value per item that the user is paying, in the transaction
      * currency, after discounts.
      * 
* * double value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The value. */ @java.lang.Override @@ -3522,14 +3160,11 @@ public double getValue() { public static final int QUANTITY_FIELD_NUMBER = 3; private long quantity_ = 0L; /** - * - * *
      * Optional. The quantity of this item that is being purchased.
      * 
* * int64 quantity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The quantity. */ @java.lang.Override @@ -3538,19 +3173,15 @@ public long getQuantity() { } public static final int MERCHANT_ACCOUNT_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object merchantAccountId_ = ""; /** - * - * *
      * Optional. When a merchant is specified, its corresponding account_id.
      * Necessary to populate marketplace-style transactions.
      * 
* * string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The merchantAccountId. */ @java.lang.Override @@ -3559,30 +3190,30 @@ public java.lang.String getMerchantAccountId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); merchantAccountId_ = s; return s; } } /** - * - * *
      * Optional. When a merchant is specified, its corresponding account_id.
      * Necessary to populate marketplace-style transactions.
      * 
* * string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for merchantAccountId. */ @java.lang.Override - public com.google.protobuf.ByteString getMerchantAccountIdBytes() { + public com.google.protobuf.ByteString + getMerchantAccountIdBytes() { java.lang.Object ref = merchantAccountId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); merchantAccountId_ = b; return b; } else { @@ -3591,7 +3222,6 @@ public com.google.protobuf.ByteString getMerchantAccountIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3603,7 +3233,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -3629,10 +3260,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (java.lang.Double.doubleToRawLongBits(value_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, value_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, value_); } if (quantity_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, quantity_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, quantity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(merchantAccountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, merchantAccountId_); @@ -3645,19 +3278,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.TransactionData.Item)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.TransactionData.Item other = - (com.google.recaptchaenterprise.v1.TransactionData.Item) obj; + com.google.recaptchaenterprise.v1.TransactionData.Item other = (com.google.recaptchaenterprise.v1.TransactionData.Item) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (java.lang.Double.doubleToLongBits(getValue()) - != java.lang.Double.doubleToLongBits(other.getValue())) return false; - if (getQuantity() != other.getQuantity()) return false; - if (!getMerchantAccountId().equals(other.getMerchantAccountId())) return false; + != java.lang.Double.doubleToLongBits( + other.getValue())) return false; + if (getQuantity() + != other.getQuantity()) return false; + if (!getMerchantAccountId() + .equals(other.getMerchantAccountId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3672,12 +3308,11 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getValue())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getValue())); hash = (37 * hash) + QUANTITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getQuantity()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getQuantity()); hash = (37 * hash) + MERCHANT_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getMerchantAccountId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -3686,94 +3321,89 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.TransactionData.Item parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.TransactionData.Item parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData.Item parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.TransactionData.Item parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData.Item parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.TransactionData.Item parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.TransactionData.Item parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.TransactionData.Item parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.TransactionData.Item parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData.Item parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.TransactionData.Item parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.TransactionData.Item parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData.Item parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.TransactionData.Item parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.TransactionData.Item prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.TransactionData.Item prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3783,41 +3413,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Line items being purchased in this transaction.
      * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TransactionData.Item} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.TransactionData.Item) com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TransactionData.Item.class, - com.google.recaptchaenterprise.v1.TransactionData.Item.Builder.class); + com.google.recaptchaenterprise.v1.TransactionData.Item.class, com.google.recaptchaenterprise.v1.TransactionData.Item.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.TransactionData.Item.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -3830,9 +3458,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_Item_descriptor; } @java.lang.Override @@ -3851,11 +3479,8 @@ public com.google.recaptchaenterprise.v1.TransactionData.Item build() { @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.Item buildPartial() { - com.google.recaptchaenterprise.v1.TransactionData.Item result = - new com.google.recaptchaenterprise.v1.TransactionData.Item(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.TransactionData.Item result = new com.google.recaptchaenterprise.v1.TransactionData.Item(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -3880,41 +3505,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.TransactionData.Ite public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.TransactionData.Item) { - return mergeFrom((com.google.recaptchaenterprise.v1.TransactionData.Item) other); + return mergeFrom((com.google.recaptchaenterprise.v1.TransactionData.Item)other); } else { super.mergeFrom(other); return this; @@ -3922,8 +3544,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.TransactionData.Item other) { - if (other == com.google.recaptchaenterprise.v1.TransactionData.Item.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.TransactionData.Item.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -3966,37 +3587,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 17: - { - value_ = input.readDouble(); - bitField0_ |= 0x00000002; - break; - } // case 17 - case 24: - { - quantity_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - merchantAccountId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 17: { + value_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 24: { + quantity_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + merchantAccountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4006,25 +3622,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
        * Optional. The full name of the item.
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -4033,21 +3646,20 @@ public java.lang.String getName() { } } /** - * - * *
        * Optional. The full name of the item.
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -4055,35 +3667,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Optional. The full name of the item.
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Optional. The full name of the item.
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -4093,21 +3698,17 @@ public Builder clearName() { return this; } /** - * - * *
        * Optional. The full name of the item.
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -4115,17 +3716,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private double value_; + private double value_ ; /** - * - * *
        * Optional. The value per item that the user is paying, in the transaction
        * currency, after discounts.
        * 
* * double value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The value. */ @java.lang.Override @@ -4133,15 +3731,12 @@ public double getValue() { return value_; } /** - * - * *
        * Optional. The value per item that the user is paying, in the transaction
        * currency, after discounts.
        * 
* * double value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The value to set. * @return This builder for chaining. */ @@ -4153,15 +3748,12 @@ public Builder setValue(double value) { return this; } /** - * - * *
        * Optional. The value per item that the user is paying, in the transaction
        * currency, after discounts.
        * 
* * double value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -4171,16 +3763,13 @@ public Builder clearValue() { return this; } - private long quantity_; + private long quantity_ ; /** - * - * *
        * Optional. The quantity of this item that is being purchased.
        * 
* * int64 quantity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The quantity. */ @java.lang.Override @@ -4188,14 +3777,11 @@ public long getQuantity() { return quantity_; } /** - * - * *
        * Optional. The quantity of this item that is being purchased.
        * 
* * int64 quantity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The quantity to set. * @return This builder for chaining. */ @@ -4207,14 +3793,11 @@ public Builder setQuantity(long value) { return this; } /** - * - * *
        * Optional. The quantity of this item that is being purchased.
        * 
* * int64 quantity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearQuantity() { @@ -4226,21 +3809,19 @@ public Builder clearQuantity() { private java.lang.Object merchantAccountId_ = ""; /** - * - * *
        * Optional. When a merchant is specified, its corresponding account_id.
        * Necessary to populate marketplace-style transactions.
        * 
* * string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The merchantAccountId. */ public java.lang.String getMerchantAccountId() { java.lang.Object ref = merchantAccountId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); merchantAccountId_ = s; return s; @@ -4249,22 +3830,21 @@ public java.lang.String getMerchantAccountId() { } } /** - * - * *
        * Optional. When a merchant is specified, its corresponding account_id.
        * Necessary to populate marketplace-style transactions.
        * 
* * string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for merchantAccountId. */ - public com.google.protobuf.ByteString getMerchantAccountIdBytes() { + public com.google.protobuf.ByteString + getMerchantAccountIdBytes() { java.lang.Object ref = merchantAccountId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); merchantAccountId_ = b; return b; } else { @@ -4272,37 +3852,30 @@ public com.google.protobuf.ByteString getMerchantAccountIdBytes() { } } /** - * - * *
        * Optional. When a merchant is specified, its corresponding account_id.
        * Necessary to populate marketplace-style transactions.
        * 
* * string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The merchantAccountId to set. * @return This builder for chaining. */ - public Builder setMerchantAccountId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMerchantAccountId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } merchantAccountId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
        * Optional. When a merchant is specified, its corresponding account_id.
        * Necessary to populate marketplace-style transactions.
        * 
* * string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMerchantAccountId() { @@ -4312,29 +3885,24 @@ public Builder clearMerchantAccountId() { return this; } /** - * - * *
        * Optional. When a merchant is specified, its corresponding account_id.
        * Necessary to populate marketplace-style transactions.
        * 
* * string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for merchantAccountId to set. * @return This builder for chaining. */ - public Builder setMerchantAccountIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMerchantAccountIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); merchantAccountId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4347,12 +3915,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.TransactionData.Item) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.TransactionData.Item) private static final com.google.recaptchaenterprise.v1.TransactionData.Item DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.TransactionData.Item(); } @@ -4361,28 +3929,27 @@ public static com.google.recaptchaenterprise.v1.TransactionData.Item getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Item parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Item parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4397,138 +3964,115 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.TransactionData.Item getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface GatewayInfoOrBuilder - extends + public interface GatewayInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Optional. Name of the gateway service (for example, stripe, square,
      * paypal).
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Optional. Name of the gateway service (for example, stripe, square,
      * paypal).
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * Optional. Gateway response code describing the state of the transaction.
      * 
* * string gateway_response_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The gatewayResponseCode. */ java.lang.String getGatewayResponseCode(); /** - * - * *
      * Optional. Gateway response code describing the state of the transaction.
      * 
* * string gateway_response_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for gatewayResponseCode. */ - com.google.protobuf.ByteString getGatewayResponseCodeBytes(); + com.google.protobuf.ByteString + getGatewayResponseCodeBytes(); /** - * - * *
      * Optional. AVS response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string avs_response_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The avsResponseCode. */ java.lang.String getAvsResponseCode(); /** - * - * *
      * Optional. AVS response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string avs_response_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for avsResponseCode. */ - com.google.protobuf.ByteString getAvsResponseCodeBytes(); + com.google.protobuf.ByteString + getAvsResponseCodeBytes(); /** - * - * *
      * Optional. CVV response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string cvv_response_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The cvvResponseCode. */ java.lang.String getCvvResponseCode(); /** - * - * *
      * Optional. CVV response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string cvv_response_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for cvvResponseCode. */ - com.google.protobuf.ByteString getCvvResponseCodeBytes(); + com.google.protobuf.ByteString + getCvvResponseCodeBytes(); } /** - * - * *
    * Details about the transaction from the gateway.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo} */ - public static final class GatewayInfo extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GatewayInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo) GatewayInfoOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GatewayInfo.newBuilder() to construct. private GatewayInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GatewayInfo() { name_ = ""; gatewayResponseCode_ = ""; @@ -4538,39 +4082,34 @@ private GatewayInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GatewayInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.class, - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder.class); + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.class, com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
      * Optional. Name of the gateway service (for example, stripe, square,
      * paypal).
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The name. */ @java.lang.Override @@ -4579,30 +4118,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Optional. Name of the gateway service (for example, stripe, square,
      * paypal).
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -4611,18 +4150,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int GATEWAY_RESPONSE_CODE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object gatewayResponseCode_ = ""; /** - * - * *
      * Optional. Gateway response code describing the state of the transaction.
      * 
* * string gateway_response_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The gatewayResponseCode. */ @java.lang.Override @@ -4631,29 +4166,29 @@ public java.lang.String getGatewayResponseCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gatewayResponseCode_ = s; return s; } } /** - * - * *
      * Optional. Gateway response code describing the state of the transaction.
      * 
* * string gateway_response_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for gatewayResponseCode. */ @java.lang.Override - public com.google.protobuf.ByteString getGatewayResponseCodeBytes() { + public com.google.protobuf.ByteString + getGatewayResponseCodeBytes() { java.lang.Object ref = gatewayResponseCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gatewayResponseCode_ = b; return b; } else { @@ -4662,19 +4197,15 @@ public com.google.protobuf.ByteString getGatewayResponseCodeBytes() { } public static final int AVS_RESPONSE_CODE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object avsResponseCode_ = ""; /** - * - * *
      * Optional. AVS response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string avs_response_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The avsResponseCode. */ @java.lang.Override @@ -4683,30 +4214,30 @@ public java.lang.String getAvsResponseCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); avsResponseCode_ = s; return s; } } /** - * - * *
      * Optional. AVS response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string avs_response_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for avsResponseCode. */ @java.lang.Override - public com.google.protobuf.ByteString getAvsResponseCodeBytes() { + public com.google.protobuf.ByteString + getAvsResponseCodeBytes() { java.lang.Object ref = avsResponseCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); avsResponseCode_ = b; return b; } else { @@ -4715,19 +4246,15 @@ public com.google.protobuf.ByteString getAvsResponseCodeBytes() { } public static final int CVV_RESPONSE_CODE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object cvvResponseCode_ = ""; /** - * - * *
      * Optional. CVV response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string cvv_response_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The cvvResponseCode. */ @java.lang.Override @@ -4736,30 +4263,30 @@ public java.lang.String getCvvResponseCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cvvResponseCode_ = s; return s; } } /** - * - * *
      * Optional. CVV response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string cvv_response_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for cvvResponseCode. */ @java.lang.Override - public com.google.protobuf.ByteString getCvvResponseCodeBytes() { + public com.google.protobuf.ByteString + getCvvResponseCodeBytes() { java.lang.Object ref = cvvResponseCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cvvResponseCode_ = b; return b; } else { @@ -4768,7 +4295,6 @@ public com.google.protobuf.ByteString getCvvResponseCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4780,7 +4306,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -4822,18 +4349,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo other = - (com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo) obj; + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo other = (com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo) obj; - if (!getName().equals(other.getName())) return false; - if (!getGatewayResponseCode().equals(other.getGatewayResponseCode())) return false; - if (!getAvsResponseCode().equals(other.getAvsResponseCode())) return false; - if (!getCvvResponseCode().equals(other.getCvvResponseCode())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getGatewayResponseCode() + .equals(other.getGatewayResponseCode())) return false; + if (!getAvsResponseCode() + .equals(other.getAvsResponseCode())) return false; + if (!getCvvResponseCode() + .equals(other.getCvvResponseCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4859,94 +4389,89 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4956,41 +4481,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Details about the transaction from the gateway.
      * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo) com.google.recaptchaenterprise.v1.TransactionData.GatewayInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.class, - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder.class); + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.class, com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -5003,14 +4526,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_GatewayInfo_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.getDefaultInstance(); } @@ -5025,17 +4547,13 @@ public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo build() { @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo buildPartial() { - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo result = - new com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo result = new com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo result) { + private void buildPartial0(com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -5055,52 +4573,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo) { - return mergeFrom((com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo) other); + return mergeFrom((com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo other) { - if (other - == com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo other) { + if (other == com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -5147,37 +4659,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - gatewayResponseCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - avsResponseCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - cvvResponseCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + gatewayResponseCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + avsResponseCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + cvvResponseCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5187,26 +4694,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
        * Optional. Name of the gateway service (for example, stripe, square,
        * paypal).
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -5215,22 +4719,21 @@ public java.lang.String getName() { } } /** - * - * *
        * Optional. Name of the gateway service (for example, stripe, square,
        * paypal).
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -5238,37 +4741,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Optional. Name of the gateway service (for example, stripe, square,
        * paypal).
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Optional. Name of the gateway service (for example, stripe, square,
        * paypal).
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -5278,22 +4774,18 @@ public Builder clearName() { return this; } /** - * - * *
        * Optional. Name of the gateway service (for example, stripe, square,
        * paypal).
        * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -5303,20 +4795,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object gatewayResponseCode_ = ""; /** - * - * *
        * Optional. Gateway response code describing the state of the transaction.
        * 
* * string gateway_response_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The gatewayResponseCode. */ public java.lang.String getGatewayResponseCode() { java.lang.Object ref = gatewayResponseCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gatewayResponseCode_ = s; return s; @@ -5325,21 +4815,20 @@ public java.lang.String getGatewayResponseCode() { } } /** - * - * *
        * Optional. Gateway response code describing the state of the transaction.
        * 
* * string gateway_response_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for gatewayResponseCode. */ - public com.google.protobuf.ByteString getGatewayResponseCodeBytes() { + public com.google.protobuf.ByteString + getGatewayResponseCodeBytes() { java.lang.Object ref = gatewayResponseCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gatewayResponseCode_ = b; return b; } else { @@ -5347,35 +4836,28 @@ public com.google.protobuf.ByteString getGatewayResponseCodeBytes() { } } /** - * - * *
        * Optional. Gateway response code describing the state of the transaction.
        * 
* * string gateway_response_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The gatewayResponseCode to set. * @return This builder for chaining. */ - public Builder setGatewayResponseCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGatewayResponseCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } gatewayResponseCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Optional. Gateway response code describing the state of the transaction.
        * 
* * string gateway_response_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearGatewayResponseCode() { @@ -5385,21 +4867,17 @@ public Builder clearGatewayResponseCode() { return this; } /** - * - * *
        * Optional. Gateway response code describing the state of the transaction.
        * 
* * string gateway_response_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for gatewayResponseCode to set. * @return This builder for chaining. */ - public Builder setGatewayResponseCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGatewayResponseCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); gatewayResponseCode_ = value; bitField0_ |= 0x00000002; @@ -5409,21 +4887,19 @@ public Builder setGatewayResponseCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object avsResponseCode_ = ""; /** - * - * *
        * Optional. AVS response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string avs_response_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The avsResponseCode. */ public java.lang.String getAvsResponseCode() { java.lang.Object ref = avsResponseCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); avsResponseCode_ = s; return s; @@ -5432,22 +4908,21 @@ public java.lang.String getAvsResponseCode() { } } /** - * - * *
        * Optional. AVS response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string avs_response_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for avsResponseCode. */ - public com.google.protobuf.ByteString getAvsResponseCodeBytes() { + public com.google.protobuf.ByteString + getAvsResponseCodeBytes() { java.lang.Object ref = avsResponseCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); avsResponseCode_ = b; return b; } else { @@ -5455,37 +4930,30 @@ public com.google.protobuf.ByteString getAvsResponseCodeBytes() { } } /** - * - * *
        * Optional. AVS response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string avs_response_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The avsResponseCode to set. * @return This builder for chaining. */ - public Builder setAvsResponseCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAvsResponseCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } avsResponseCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * Optional. AVS response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string avs_response_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAvsResponseCode() { @@ -5495,22 +4963,18 @@ public Builder clearAvsResponseCode() { return this; } /** - * - * *
        * Optional. AVS response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string avs_response_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for avsResponseCode to set. * @return This builder for chaining. */ - public Builder setAvsResponseCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAvsResponseCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); avsResponseCode_ = value; bitField0_ |= 0x00000004; @@ -5520,21 +4984,19 @@ public Builder setAvsResponseCodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object cvvResponseCode_ = ""; /** - * - * *
        * Optional. CVV response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string cvv_response_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The cvvResponseCode. */ public java.lang.String getCvvResponseCode() { java.lang.Object ref = cvvResponseCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cvvResponseCode_ = s; return s; @@ -5543,22 +5005,21 @@ public java.lang.String getCvvResponseCode() { } } /** - * - * *
        * Optional. CVV response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string cvv_response_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for cvvResponseCode. */ - public com.google.protobuf.ByteString getCvvResponseCodeBytes() { + public com.google.protobuf.ByteString + getCvvResponseCodeBytes() { java.lang.Object ref = cvvResponseCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cvvResponseCode_ = b; return b; } else { @@ -5566,37 +5027,30 @@ public com.google.protobuf.ByteString getCvvResponseCodeBytes() { } } /** - * - * *
        * Optional. CVV response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string cvv_response_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The cvvResponseCode to set. * @return This builder for chaining. */ - public Builder setCvvResponseCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCvvResponseCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } cvvResponseCode_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
        * Optional. CVV response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string cvv_response_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCvvResponseCode() { @@ -5606,29 +5060,24 @@ public Builder clearCvvResponseCode() { return this; } /** - * - * *
        * Optional. CVV response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string cvv_response_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for cvvResponseCode to set. * @return This builder for chaining. */ - public Builder setCvvResponseCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCvvResponseCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cvvResponseCode_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5641,44 +5090,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo) - private static final com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo(); } - public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GatewayInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GatewayInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5690,20 +5136,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int bitField0_; public static final int TRANSACTION_ID_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private volatile java.lang.Object transactionId_ = ""; /** - * - * *
    * Unique identifier for the transaction. This custom identifier can be used
    * to reference this transaction in the future, for example, labeling a refund
@@ -5712,7 +5155,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * optional string transaction_id = 11; - * * @return Whether the transactionId field is set. */ @java.lang.Override @@ -5720,8 +5162,6 @@ public boolean hasTransactionId() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Unique identifier for the transaction. This custom identifier can be used
    * to reference this transaction in the future, for example, labeling a refund
@@ -5730,7 +5170,6 @@ public boolean hasTransactionId() {
    * 
* * optional string transaction_id = 11; - * * @return The transactionId. */ @java.lang.Override @@ -5739,15 +5178,14 @@ public java.lang.String getTransactionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transactionId_ = s; return s; } } /** - * - * *
    * Unique identifier for the transaction. This custom identifier can be used
    * to reference this transaction in the future, for example, labeling a refund
@@ -5756,15 +5194,16 @@ public java.lang.String getTransactionId() {
    * 
* * optional string transaction_id = 11; - * * @return The bytes for transactionId. */ @java.lang.Override - public com.google.protobuf.ByteString getTransactionIdBytes() { + public com.google.protobuf.ByteString + getTransactionIdBytes() { java.lang.Object ref = transactionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); transactionId_ = b; return b; } else { @@ -5773,12 +5212,9 @@ public com.google.protobuf.ByteString getTransactionIdBytes() { } public static final int PAYMENT_METHOD_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object paymentMethod_ = ""; /** - * - * *
    * Optional. The payment method for the transaction. The allowed values are:
    *
@@ -5792,7 +5228,6 @@ public com.google.protobuf.ByteString getTransactionIdBytes() {
    * 
* * string payment_method = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The paymentMethod. */ @java.lang.Override @@ -5801,15 +5236,14 @@ public java.lang.String getPaymentMethod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); paymentMethod_ = s; return s; } } /** - * - * *
    * Optional. The payment method for the transaction. The allowed values are:
    *
@@ -5823,15 +5257,16 @@ public java.lang.String getPaymentMethod() {
    * 
* * string payment_method = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for paymentMethod. */ @java.lang.Override - public com.google.protobuf.ByteString getPaymentMethodBytes() { + public com.google.protobuf.ByteString + getPaymentMethodBytes() { java.lang.Object ref = paymentMethod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); paymentMethod_ = b; return b; } else { @@ -5840,19 +5275,15 @@ public com.google.protobuf.ByteString getPaymentMethodBytes() { } public static final int CARD_BIN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object cardBin_ = ""; /** - * - * *
    * Optional. The Bank Identification Number - generally the first 6 or 8
    * digits of the card.
    * 
* * string card_bin = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The cardBin. */ @java.lang.Override @@ -5861,30 +5292,30 @@ public java.lang.String getCardBin() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cardBin_ = s; return s; } } /** - * - * *
    * Optional. The Bank Identification Number - generally the first 6 or 8
    * digits of the card.
    * 
* * string card_bin = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for cardBin. */ @java.lang.Override - public com.google.protobuf.ByteString getCardBinBytes() { + public com.google.protobuf.ByteString + getCardBinBytes() { java.lang.Object ref = cardBin_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cardBin_ = b; return b; } else { @@ -5893,18 +5324,14 @@ public com.google.protobuf.ByteString getCardBinBytes() { } public static final int CARD_LAST_FOUR_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object cardLastFour_ = ""; /** - * - * *
    * Optional. The last four digits of the card.
    * 
* * string card_last_four = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The cardLastFour. */ @java.lang.Override @@ -5913,29 +5340,29 @@ public java.lang.String getCardLastFour() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cardLastFour_ = s; return s; } } /** - * - * *
    * Optional. The last four digits of the card.
    * 
* * string card_last_four = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for cardLastFour. */ @java.lang.Override - public com.google.protobuf.ByteString getCardLastFourBytes() { + public com.google.protobuf.ByteString + getCardLastFourBytes() { java.lang.Object ref = cardLastFour_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cardLastFour_ = b; return b; } else { @@ -5944,18 +5371,14 @@ public com.google.protobuf.ByteString getCardLastFourBytes() { } public static final int CURRENCY_CODE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object currencyCode_ = ""; /** - * - * *
    * Optional. The currency code in ISO-4217 format.
    * 
* * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The currencyCode. */ @java.lang.Override @@ -5964,29 +5387,29 @@ public java.lang.String getCurrencyCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; } } /** - * - * *
    * Optional. The currency code in ISO-4217 format.
    * 
* * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for currencyCode. */ @java.lang.Override - public com.google.protobuf.ByteString getCurrencyCodeBytes() { + public com.google.protobuf.ByteString + getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -5997,14 +5420,11 @@ public com.google.protobuf.ByteString getCurrencyCodeBytes() { public static final int VALUE_FIELD_NUMBER = 5; private double value_ = 0D; /** - * - * *
    * Optional. The decimal value of the transaction in the specified currency.
    * 
* * double value = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The value. */ @java.lang.Override @@ -6015,15 +5435,12 @@ public double getValue() { public static final int SHIPPING_VALUE_FIELD_NUMBER = 12; private double shippingValue_ = 0D; /** - * - * *
    * Optional. The value of shipping in the specified currency. 0 for free or no
    * shipping.
    * 
* * double shipping_value = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The shippingValue. */ @java.lang.Override @@ -6034,17 +5451,12 @@ public double getShippingValue() { public static final int SHIPPING_ADDRESS_FIELD_NUMBER = 6; private com.google.recaptchaenterprise.v1.TransactionData.Address shippingAddress_; /** - * - * *
    * Optional. Destination address if this transaction involves shipping a
    * physical item.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the shippingAddress field is set. */ @java.lang.Override @@ -6052,58 +5464,39 @@ public boolean hasShippingAddress() { return shippingAddress_ != null; } /** - * - * *
    * Optional. Destination address if this transaction involves shipping a
    * physical item.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The shippingAddress. */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.Address getShippingAddress() { - return shippingAddress_ == null - ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() - : shippingAddress_; + return shippingAddress_ == null ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() : shippingAddress_; } /** - * - * *
    * Optional. Destination address if this transaction involves shipping a
    * physical item.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder - getShippingAddressOrBuilder() { - return shippingAddress_ == null - ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() - : shippingAddress_; + public com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder getShippingAddressOrBuilder() { + return shippingAddress_ == null ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() : shippingAddress_; } public static final int BILLING_ADDRESS_FIELD_NUMBER = 7; private com.google.recaptchaenterprise.v1.TransactionData.Address billingAddress_; /** - * - * *
    * Optional. Address associated with the payment method when applicable.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the billingAddress field is set. */ @java.lang.Override @@ -6111,56 +5504,37 @@ public boolean hasBillingAddress() { return billingAddress_ != null; } /** - * - * *
    * Optional. Address associated with the payment method when applicable.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The billingAddress. */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.Address getBillingAddress() { - return billingAddress_ == null - ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() - : billingAddress_; + return billingAddress_ == null ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() : billingAddress_; } /** - * - * *
    * Optional. Address associated with the payment method when applicable.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder - getBillingAddressOrBuilder() { - return billingAddress_ == null - ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() - : billingAddress_; + public com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder getBillingAddressOrBuilder() { + return billingAddress_ == null ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() : billingAddress_; } public static final int USER_FIELD_NUMBER = 8; private com.google.recaptchaenterprise.v1.TransactionData.User user_; /** - * - * *
    * Optional. Information about the user paying/initiating the transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the user field is set. */ @java.lang.Override @@ -6168,117 +5542,83 @@ public boolean hasUser() { return user_ != null; } /** - * - * *
    * Optional. Information about the user paying/initiating the transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The user. */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.User getUser() { - return user_ == null - ? com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance() - : user_; + return user_ == null ? com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance() : user_; } /** - * - * *
    * Optional. Information about the user paying/initiating the transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder getUserOrBuilder() { - return user_ == null - ? com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance() - : user_; + return user_ == null ? com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance() : user_; } public static final int MERCHANTS_FIELD_NUMBER = 13; - @SuppressWarnings("serial") private java.util.List merchants_; /** - * - * *
    * Optional. Information about the user or users fulfilling the transaction.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.List getMerchantsList() { return merchants_; } /** - * - * *
    * Optional. Information about the user or users fulfilling the transaction.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getMerchantsOrBuilderList() { return merchants_; } /** - * - * *
    * Optional. Information about the user or users fulfilling the transaction.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getMerchantsCount() { return merchants_.size(); } /** - * - * *
    * Optional. Information about the user or users fulfilling the transaction.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.User getMerchants(int index) { return merchants_.get(index); } /** - * - * *
    * Optional. Information about the user or users fulfilling the transaction.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder getMerchantsOrBuilder( @@ -6287,80 +5627,59 @@ public com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder getMercha } public static final int ITEMS_FIELD_NUMBER = 14; - @SuppressWarnings("serial") private java.util.List items_; /** - * - * *
    * Optional. Items purchased in this transaction.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.List getItemsList() { return items_; } /** - * - * *
    * Optional. Items purchased in this transaction.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getItemsOrBuilderList() { return items_; } /** - * - * *
    * Optional. Items purchased in this transaction.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getItemsCount() { return items_.size(); } /** - * - * *
    * Optional. Items purchased in this transaction.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.Item getItems(int index) { return items_.get(index); } /** - * - * *
    * Optional. Items purchased in this transaction.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder getItemsOrBuilder( @@ -6371,17 +5690,12 @@ public com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder getItemsO public static final int GATEWAY_INFO_FIELD_NUMBER = 10; private com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo gatewayInfo_; /** - * - * *
    * Optional. Information about the payment gateway's response to the
    * transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gatewayInfo field is set. */ @java.lang.Override @@ -6389,47 +5703,32 @@ public boolean hasGatewayInfo() { return gatewayInfo_ != null; } /** - * - * *
    * Optional. Information about the payment gateway's response to the
    * transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The gatewayInfo. */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo getGatewayInfo() { - return gatewayInfo_ == null - ? com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.getDefaultInstance() - : gatewayInfo_; + return gatewayInfo_ == null ? com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.getDefaultInstance() : gatewayInfo_; } /** - * - * *
    * Optional. Information about the payment gateway's response to the
    * transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfoOrBuilder - getGatewayInfoOrBuilder() { - return gatewayInfo_ == null - ? com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.getDefaultInstance() - : gatewayInfo_; + public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfoOrBuilder getGatewayInfoOrBuilder() { + return gatewayInfo_ == null ? com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.getDefaultInstance() : gatewayInfo_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6441,7 +5740,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(paymentMethod_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, paymentMethod_); } @@ -6503,31 +5803,39 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, currencyCode_); } if (java.lang.Double.doubleToRawLongBits(value_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, value_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(5, value_); } if (shippingAddress_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getShippingAddress()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getShippingAddress()); } if (billingAddress_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getBillingAddress()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getBillingAddress()); } if (user_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUser()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getUser()); } if (gatewayInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getGatewayInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getGatewayInfo()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, transactionId_); } if (java.lang.Double.doubleToRawLongBits(shippingValue_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(12, shippingValue_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(12, shippingValue_); } for (int i = 0; i < merchants_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, merchants_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, merchants_.get(i)); } for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, items_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, items_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6537,43 +5845,55 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.TransactionData)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.TransactionData other = - (com.google.recaptchaenterprise.v1.TransactionData) obj; + com.google.recaptchaenterprise.v1.TransactionData other = (com.google.recaptchaenterprise.v1.TransactionData) obj; if (hasTransactionId() != other.hasTransactionId()) return false; if (hasTransactionId()) { - if (!getTransactionId().equals(other.getTransactionId())) return false; - } - if (!getPaymentMethod().equals(other.getPaymentMethod())) return false; - if (!getCardBin().equals(other.getCardBin())) return false; - if (!getCardLastFour().equals(other.getCardLastFour())) return false; - if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; + if (!getTransactionId() + .equals(other.getTransactionId())) return false; + } + if (!getPaymentMethod() + .equals(other.getPaymentMethod())) return false; + if (!getCardBin() + .equals(other.getCardBin())) return false; + if (!getCardLastFour() + .equals(other.getCardLastFour())) return false; + if (!getCurrencyCode() + .equals(other.getCurrencyCode())) return false; if (java.lang.Double.doubleToLongBits(getValue()) - != java.lang.Double.doubleToLongBits(other.getValue())) return false; + != java.lang.Double.doubleToLongBits( + other.getValue())) return false; if (java.lang.Double.doubleToLongBits(getShippingValue()) - != java.lang.Double.doubleToLongBits(other.getShippingValue())) return false; + != java.lang.Double.doubleToLongBits( + other.getShippingValue())) return false; if (hasShippingAddress() != other.hasShippingAddress()) return false; if (hasShippingAddress()) { - if (!getShippingAddress().equals(other.getShippingAddress())) return false; + if (!getShippingAddress() + .equals(other.getShippingAddress())) return false; } if (hasBillingAddress() != other.hasBillingAddress()) return false; if (hasBillingAddress()) { - if (!getBillingAddress().equals(other.getBillingAddress())) return false; + if (!getBillingAddress() + .equals(other.getBillingAddress())) return false; } if (hasUser() != other.hasUser()) return false; if (hasUser()) { - if (!getUser().equals(other.getUser())) return false; + if (!getUser() + .equals(other.getUser())) return false; } - if (!getMerchantsList().equals(other.getMerchantsList())) return false; - if (!getItemsList().equals(other.getItemsList())) return false; + if (!getMerchantsList() + .equals(other.getMerchantsList())) return false; + if (!getItemsList() + .equals(other.getItemsList())) return false; if (hasGatewayInfo() != other.hasGatewayInfo()) return false; if (hasGatewayInfo()) { - if (!getGatewayInfo().equals(other.getGatewayInfo())) return false; + if (!getGatewayInfo() + .equals(other.getGatewayInfo())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -6599,14 +5919,11 @@ public int hashCode() { hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; hash = (53 * hash) + getCurrencyCode().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getValue())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getValue())); hash = (37 * hash) + SHIPPING_VALUE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getShippingValue())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getShippingValue())); if (hasShippingAddress()) { hash = (37 * hash) + SHIPPING_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getShippingAddress().hashCode(); @@ -6637,135 +5954,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.TransactionData parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.TransactionData parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.TransactionData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.TransactionData parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.TransactionData parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.TransactionData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.TransactionData parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.TransactionData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.TransactionData parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionData parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.TransactionData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.TransactionData prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Transaction data associated with a payment protected by reCAPTCHA Enterprise.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TransactionData} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.TransactionData) com.google.recaptchaenterprise.v1.TransactionDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TransactionData.class, - com.google.recaptchaenterprise.v1.TransactionData.Builder.class); + com.google.recaptchaenterprise.v1.TransactionData.class, com.google.recaptchaenterprise.v1.TransactionData.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.TransactionData.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -6815,9 +6128,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionData_descriptor; } @java.lang.Override @@ -6836,18 +6149,14 @@ public com.google.recaptchaenterprise.v1.TransactionData build() { @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionData buildPartial() { - com.google.recaptchaenterprise.v1.TransactionData result = - new com.google.recaptchaenterprise.v1.TransactionData(this); + com.google.recaptchaenterprise.v1.TransactionData result = new com.google.recaptchaenterprise.v1.TransactionData(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.recaptchaenterprise.v1.TransactionData result) { + private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1.TransactionData result) { if (merchantsBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0)) { merchants_ = java.util.Collections.unmodifiableList(merchants_); @@ -6894,19 +6203,24 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.TransactionData res result.shippingValue_ = shippingValue_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.shippingAddress_ = - shippingAddressBuilder_ == null ? shippingAddress_ : shippingAddressBuilder_.build(); + result.shippingAddress_ = shippingAddressBuilder_ == null + ? shippingAddress_ + : shippingAddressBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { - result.billingAddress_ = - billingAddressBuilder_ == null ? billingAddress_ : billingAddressBuilder_.build(); + result.billingAddress_ = billingAddressBuilder_ == null + ? billingAddress_ + : billingAddressBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { - result.user_ = userBuilder_ == null ? user_ : userBuilder_.build(); + result.user_ = userBuilder_ == null + ? user_ + : userBuilder_.build(); } if (((from_bitField0_ & 0x00001000) != 0)) { - result.gatewayInfo_ = - gatewayInfoBuilder_ == null ? gatewayInfo_ : gatewayInfoBuilder_.build(); + result.gatewayInfo_ = gatewayInfoBuilder_ == null + ? gatewayInfo_ + : gatewayInfoBuilder_.build(); } result.bitField0_ |= to_bitField0_; } @@ -6915,39 +6229,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.TransactionData res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.TransactionData) { - return mergeFrom((com.google.recaptchaenterprise.v1.TransactionData) other); + return mergeFrom((com.google.recaptchaenterprise.v1.TransactionData)other); } else { super.mergeFrom(other); return this; @@ -6955,8 +6268,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.TransactionData other) { - if (other == com.google.recaptchaenterprise.v1.TransactionData.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.TransactionData.getDefaultInstance()) return this; if (other.hasTransactionId()) { transactionId_ = other.transactionId_; bitField0_ |= 0x00000001; @@ -7015,10 +6327,9 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.TransactionData other merchantsBuilder_ = null; merchants_ = other.merchants_; bitField0_ = (bitField0_ & ~0x00000400); - merchantsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMerchantsFieldBuilder() - : null; + merchantsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMerchantsFieldBuilder() : null; } else { merchantsBuilder_.addAllMessages(other.merchants_); } @@ -7042,10 +6353,9 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.TransactionData other itemsBuilder_ = null; items_ = other.items_; bitField0_ = (bitField0_ & ~0x00000800); - itemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getItemsFieldBuilder() - : null; + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getItemsFieldBuilder() : null; } else { itemsBuilder_.addAllMessages(other.items_); } @@ -7080,107 +6390,101 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - paymentMethod_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: - { - cardBin_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - cardLastFour_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: - { - currencyCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 41: - { - value_ = input.readDouble(); - bitField0_ |= 0x00000020; - break; - } // case 41 - case 50: - { - input.readMessage(getShippingAddressFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 50 - case 58: - { - input.readMessage(getBillingAddressFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 58 - case 66: - { - input.readMessage(getUserFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 66 - case 82: - { - input.readMessage(getGatewayInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 82 - case 90: - { - transactionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 90 - case 97: - { - shippingValue_ = input.readDouble(); - bitField0_ |= 0x00000040; - break; - } // case 97 - case 106: - { - com.google.recaptchaenterprise.v1.TransactionData.User m = - input.readMessage( - com.google.recaptchaenterprise.v1.TransactionData.User.parser(), - extensionRegistry); - if (merchantsBuilder_ == null) { - ensureMerchantsIsMutable(); - merchants_.add(m); - } else { - merchantsBuilder_.addMessage(m); - } - break; - } // case 106 - case 114: - { - com.google.recaptchaenterprise.v1.TransactionData.Item m = - input.readMessage( - com.google.recaptchaenterprise.v1.TransactionData.Item.parser(), - extensionRegistry); - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(m); - } else { - itemsBuilder_.addMessage(m); - } - break; - } // case 114 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + paymentMethod_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: { + cardBin_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: { + cardLastFour_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: { + currencyCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 41: { + value_ = input.readDouble(); + bitField0_ |= 0x00000020; + break; + } // case 41 + case 50: { + input.readMessage( + getShippingAddressFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 50 + case 58: { + input.readMessage( + getBillingAddressFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 58 + case 66: { + input.readMessage( + getUserFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 66 + case 82: { + input.readMessage( + getGatewayInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 82 + case 90: { + transactionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 90 + case 97: { + shippingValue_ = input.readDouble(); + bitField0_ |= 0x00000040; + break; + } // case 97 + case 106: { + com.google.recaptchaenterprise.v1.TransactionData.User m = + input.readMessage( + com.google.recaptchaenterprise.v1.TransactionData.User.parser(), + extensionRegistry); + if (merchantsBuilder_ == null) { + ensureMerchantsIsMutable(); + merchants_.add(m); + } else { + merchantsBuilder_.addMessage(m); + } + break; + } // case 106 + case 114: { + com.google.recaptchaenterprise.v1.TransactionData.Item m = + input.readMessage( + com.google.recaptchaenterprise.v1.TransactionData.Item.parser(), + extensionRegistry); + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(m); + } else { + itemsBuilder_.addMessage(m); + } + break; + } // case 114 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -7190,13 +6494,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object transactionId_ = ""; /** - * - * *
      * Unique identifier for the transaction. This custom identifier can be used
      * to reference this transaction in the future, for example, labeling a refund
@@ -7205,15 +6506,12 @@ public Builder mergeFrom(
      * 
* * optional string transaction_id = 11; - * * @return Whether the transactionId field is set. */ public boolean hasTransactionId() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Unique identifier for the transaction. This custom identifier can be used
      * to reference this transaction in the future, for example, labeling a refund
@@ -7222,13 +6520,13 @@ public boolean hasTransactionId() {
      * 
* * optional string transaction_id = 11; - * * @return The transactionId. */ public java.lang.String getTransactionId() { java.lang.Object ref = transactionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transactionId_ = s; return s; @@ -7237,8 +6535,6 @@ public java.lang.String getTransactionId() { } } /** - * - * *
      * Unique identifier for the transaction. This custom identifier can be used
      * to reference this transaction in the future, for example, labeling a refund
@@ -7247,14 +6543,15 @@ public java.lang.String getTransactionId() {
      * 
* * optional string transaction_id = 11; - * * @return The bytes for transactionId. */ - public com.google.protobuf.ByteString getTransactionIdBytes() { + public com.google.protobuf.ByteString + getTransactionIdBytes() { java.lang.Object ref = transactionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); transactionId_ = b; return b; } else { @@ -7262,8 +6559,6 @@ public com.google.protobuf.ByteString getTransactionIdBytes() { } } /** - * - * *
      * Unique identifier for the transaction. This custom identifier can be used
      * to reference this transaction in the future, for example, labeling a refund
@@ -7272,22 +6567,18 @@ public com.google.protobuf.ByteString getTransactionIdBytes() {
      * 
* * optional string transaction_id = 11; - * * @param value The transactionId to set. * @return This builder for chaining. */ - public Builder setTransactionId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTransactionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } transactionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Unique identifier for the transaction. This custom identifier can be used
      * to reference this transaction in the future, for example, labeling a refund
@@ -7296,7 +6587,6 @@ public Builder setTransactionId(java.lang.String value) {
      * 
* * optional string transaction_id = 11; - * * @return This builder for chaining. */ public Builder clearTransactionId() { @@ -7306,8 +6596,6 @@ public Builder clearTransactionId() { return this; } /** - * - * *
      * Unique identifier for the transaction. This custom identifier can be used
      * to reference this transaction in the future, for example, labeling a refund
@@ -7316,14 +6604,12 @@ public Builder clearTransactionId() {
      * 
* * optional string transaction_id = 11; - * * @param value The bytes for transactionId to set. * @return This builder for chaining. */ - public Builder setTransactionIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTransactionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); transactionId_ = value; bitField0_ |= 0x00000001; @@ -7333,8 +6619,6 @@ public Builder setTransactionIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object paymentMethod_ = ""; /** - * - * *
      * Optional. The payment method for the transaction. The allowed values are:
      *
@@ -7348,13 +6632,13 @@ public Builder setTransactionIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string payment_method = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The paymentMethod. */ public java.lang.String getPaymentMethod() { java.lang.Object ref = paymentMethod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); paymentMethod_ = s; return s; @@ -7363,8 +6647,6 @@ public java.lang.String getPaymentMethod() { } } /** - * - * *
      * Optional. The payment method for the transaction. The allowed values are:
      *
@@ -7378,14 +6660,15 @@ public java.lang.String getPaymentMethod() {
      * 
* * string payment_method = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for paymentMethod. */ - public com.google.protobuf.ByteString getPaymentMethodBytes() { + public com.google.protobuf.ByteString + getPaymentMethodBytes() { java.lang.Object ref = paymentMethod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); paymentMethod_ = b; return b; } else { @@ -7393,8 +6676,6 @@ public com.google.protobuf.ByteString getPaymentMethodBytes() { } } /** - * - * *
      * Optional. The payment method for the transaction. The allowed values are:
      *
@@ -7408,22 +6689,18 @@ public com.google.protobuf.ByteString getPaymentMethodBytes() {
      * 
* * string payment_method = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The paymentMethod to set. * @return This builder for chaining. */ - public Builder setPaymentMethod(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPaymentMethod( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } paymentMethod_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - /** - * - * + /** *
      * Optional. The payment method for the transaction. The allowed values are:
      *
@@ -7437,7 +6714,6 @@ public Builder setPaymentMethod(java.lang.String value) {
      * 
* * string payment_method = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPaymentMethod() { @@ -7447,8 +6723,6 @@ public Builder clearPaymentMethod() { return this; } /** - * - * *
      * Optional. The payment method for the transaction. The allowed values are:
      *
@@ -7462,14 +6736,12 @@ public Builder clearPaymentMethod() {
      * 
* * string payment_method = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for paymentMethod to set. * @return This builder for chaining. */ - public Builder setPaymentMethodBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPaymentMethodBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); paymentMethod_ = value; bitField0_ |= 0x00000002; @@ -7479,21 +6751,19 @@ public Builder setPaymentMethodBytes(com.google.protobuf.ByteString value) { private java.lang.Object cardBin_ = ""; /** - * - * *
      * Optional. The Bank Identification Number - generally the first 6 or 8
      * digits of the card.
      * 
* * string card_bin = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The cardBin. */ public java.lang.String getCardBin() { java.lang.Object ref = cardBin_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cardBin_ = s; return s; @@ -7502,22 +6772,21 @@ public java.lang.String getCardBin() { } } /** - * - * *
      * Optional. The Bank Identification Number - generally the first 6 or 8
      * digits of the card.
      * 
* * string card_bin = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for cardBin. */ - public com.google.protobuf.ByteString getCardBinBytes() { + public com.google.protobuf.ByteString + getCardBinBytes() { java.lang.Object ref = cardBin_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cardBin_ = b; return b; } else { @@ -7525,37 +6794,30 @@ public com.google.protobuf.ByteString getCardBinBytes() { } } /** - * - * *
      * Optional. The Bank Identification Number - generally the first 6 or 8
      * digits of the card.
      * 
* * string card_bin = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The cardBin to set. * @return This builder for chaining. */ - public Builder setCardBin(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCardBin( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } cardBin_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. The Bank Identification Number - generally the first 6 or 8
      * digits of the card.
      * 
* * string card_bin = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCardBin() { @@ -7565,22 +6827,18 @@ public Builder clearCardBin() { return this; } /** - * - * *
      * Optional. The Bank Identification Number - generally the first 6 or 8
      * digits of the card.
      * 
* * string card_bin = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for cardBin to set. * @return This builder for chaining. */ - public Builder setCardBinBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCardBinBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cardBin_ = value; bitField0_ |= 0x00000004; @@ -7590,20 +6848,18 @@ public Builder setCardBinBytes(com.google.protobuf.ByteString value) { private java.lang.Object cardLastFour_ = ""; /** - * - * *
      * Optional. The last four digits of the card.
      * 
* * string card_last_four = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The cardLastFour. */ public java.lang.String getCardLastFour() { java.lang.Object ref = cardLastFour_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cardLastFour_ = s; return s; @@ -7612,21 +6868,20 @@ public java.lang.String getCardLastFour() { } } /** - * - * *
      * Optional. The last four digits of the card.
      * 
* * string card_last_four = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for cardLastFour. */ - public com.google.protobuf.ByteString getCardLastFourBytes() { + public com.google.protobuf.ByteString + getCardLastFourBytes() { java.lang.Object ref = cardLastFour_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cardLastFour_ = b; return b; } else { @@ -7634,35 +6889,28 @@ public com.google.protobuf.ByteString getCardLastFourBytes() { } } /** - * - * *
      * Optional. The last four digits of the card.
      * 
* * string card_last_four = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The cardLastFour to set. * @return This builder for chaining. */ - public Builder setCardLastFour(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCardLastFour( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } cardLastFour_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. The last four digits of the card.
      * 
* * string card_last_four = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCardLastFour() { @@ -7672,21 +6920,17 @@ public Builder clearCardLastFour() { return this; } /** - * - * *
      * Optional. The last four digits of the card.
      * 
* * string card_last_four = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for cardLastFour to set. * @return This builder for chaining. */ - public Builder setCardLastFourBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCardLastFourBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cardLastFour_ = value; bitField0_ |= 0x00000008; @@ -7696,20 +6940,18 @@ public Builder setCardLastFourBytes(com.google.protobuf.ByteString value) { private java.lang.Object currencyCode_ = ""; /** - * - * *
      * Optional. The currency code in ISO-4217 format.
      * 
* * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The currencyCode. */ public java.lang.String getCurrencyCode() { java.lang.Object ref = currencyCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; @@ -7718,21 +6960,20 @@ public java.lang.String getCurrencyCode() { } } /** - * - * *
      * Optional. The currency code in ISO-4217 format.
      * 
* * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for currencyCode. */ - public com.google.protobuf.ByteString getCurrencyCodeBytes() { + public com.google.protobuf.ByteString + getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -7740,35 +6981,28 @@ public com.google.protobuf.ByteString getCurrencyCodeBytes() { } } /** - * - * *
      * Optional. The currency code in ISO-4217 format.
      * 
* * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The currencyCode to set. * @return This builder for chaining. */ - public Builder setCurrencyCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCurrencyCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } currencyCode_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Optional. The currency code in ISO-4217 format.
      * 
* * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCurrencyCode() { @@ -7778,21 +7012,17 @@ public Builder clearCurrencyCode() { return this; } /** - * - * *
      * Optional. The currency code in ISO-4217 format.
      * 
* * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for currencyCode to set. * @return This builder for chaining. */ - public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCurrencyCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); currencyCode_ = value; bitField0_ |= 0x00000010; @@ -7800,16 +7030,13 @@ public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { return this; } - private double value_; + private double value_ ; /** - * - * *
      * Optional. The decimal value of the transaction in the specified currency.
      * 
* * double value = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The value. */ @java.lang.Override @@ -7817,14 +7044,11 @@ public double getValue() { return value_; } /** - * - * *
      * Optional. The decimal value of the transaction in the specified currency.
      * 
* * double value = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The value to set. * @return This builder for chaining. */ @@ -7836,14 +7060,11 @@ public Builder setValue(double value) { return this; } /** - * - * *
      * Optional. The decimal value of the transaction in the specified currency.
      * 
* * double value = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -7853,17 +7074,14 @@ public Builder clearValue() { return this; } - private double shippingValue_; + private double shippingValue_ ; /** - * - * *
      * Optional. The value of shipping in the specified currency. 0 for free or no
      * shipping.
      * 
* * double shipping_value = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The shippingValue. */ @java.lang.Override @@ -7871,15 +7089,12 @@ public double getShippingValue() { return shippingValue_; } /** - * - * *
      * Optional. The value of shipping in the specified currency. 0 for free or no
      * shipping.
      * 
* * double shipping_value = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The shippingValue to set. * @return This builder for chaining. */ @@ -7891,15 +7106,12 @@ public Builder setShippingValue(double value) { return this; } /** - * - * *
      * Optional. The value of shipping in the specified currency. 0 for free or no
      * shipping.
      * 
* * double shipping_value = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearShippingValue() { @@ -7911,64 +7123,44 @@ public Builder clearShippingValue() { private com.google.recaptchaenterprise.v1.TransactionData.Address shippingAddress_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.Address, - com.google.recaptchaenterprise.v1.TransactionData.Address.Builder, - com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder> - shippingAddressBuilder_; + com.google.recaptchaenterprise.v1.TransactionData.Address, com.google.recaptchaenterprise.v1.TransactionData.Address.Builder, com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder> shippingAddressBuilder_; /** - * - * *
      * Optional. Destination address if this transaction involves shipping a
      * physical item.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the shippingAddress field is set. */ public boolean hasShippingAddress() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Optional. Destination address if this transaction involves shipping a
      * physical item.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The shippingAddress. */ public com.google.recaptchaenterprise.v1.TransactionData.Address getShippingAddress() { if (shippingAddressBuilder_ == null) { - return shippingAddress_ == null - ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() - : shippingAddress_; + return shippingAddress_ == null ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() : shippingAddress_; } else { return shippingAddressBuilder_.getMessage(); } } /** - * - * *
      * Optional. Destination address if this transaction involves shipping a
      * physical item.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setShippingAddress( - com.google.recaptchaenterprise.v1.TransactionData.Address value) { + public Builder setShippingAddress(com.google.recaptchaenterprise.v1.TransactionData.Address value) { if (shippingAddressBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7982,16 +7174,12 @@ public Builder setShippingAddress( return this; } /** - * - * *
      * Optional. Destination address if this transaction involves shipping a
      * physical item.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setShippingAddress( com.google.recaptchaenterprise.v1.TransactionData.Address.Builder builderForValue) { @@ -8005,24 +7193,18 @@ public Builder setShippingAddress( return this; } /** - * - * *
      * Optional. Destination address if this transaction involves shipping a
      * physical item.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeShippingAddress( - com.google.recaptchaenterprise.v1.TransactionData.Address value) { + public Builder mergeShippingAddress(com.google.recaptchaenterprise.v1.TransactionData.Address value) { if (shippingAddressBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && shippingAddress_ != null - && shippingAddress_ - != com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + shippingAddress_ != null && + shippingAddress_ != com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance()) { getShippingAddressBuilder().mergeFrom(value); } else { shippingAddress_ = value; @@ -8035,16 +7217,12 @@ public Builder mergeShippingAddress( return this; } /** - * - * *
      * Optional. Destination address if this transaction involves shipping a
      * physical item.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearShippingAddress() { bitField0_ = (bitField0_ & ~0x00000080); @@ -8057,69 +7235,51 @@ public Builder clearShippingAddress() { return this; } /** - * - * *
      * Optional. Destination address if this transaction involves shipping a
      * physical item.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.recaptchaenterprise.v1.TransactionData.Address.Builder - getShippingAddressBuilder() { + public com.google.recaptchaenterprise.v1.TransactionData.Address.Builder getShippingAddressBuilder() { bitField0_ |= 0x00000080; onChanged(); return getShippingAddressFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Destination address if this transaction involves shipping a
      * physical item.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder - getShippingAddressOrBuilder() { + public com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder getShippingAddressOrBuilder() { if (shippingAddressBuilder_ != null) { return shippingAddressBuilder_.getMessageOrBuilder(); } else { - return shippingAddress_ == null - ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() - : shippingAddress_; + return shippingAddress_ == null ? + com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() : shippingAddress_; } } /** - * - * *
      * Optional. Destination address if this transaction involves shipping a
      * physical item.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.Address, - com.google.recaptchaenterprise.v1.TransactionData.Address.Builder, - com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder> + com.google.recaptchaenterprise.v1.TransactionData.Address, com.google.recaptchaenterprise.v1.TransactionData.Address.Builder, com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder> getShippingAddressFieldBuilder() { if (shippingAddressBuilder_ == null) { - shippingAddressBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.Address, - com.google.recaptchaenterprise.v1.TransactionData.Address.Builder, - com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder>( - getShippingAddress(), getParentForChildren(), isClean()); + shippingAddressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.TransactionData.Address, com.google.recaptchaenterprise.v1.TransactionData.Address.Builder, com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder>( + getShippingAddress(), + getParentForChildren(), + isClean()); shippingAddress_ = null; } return shippingAddressBuilder_; @@ -8127,61 +7287,41 @@ public Builder clearShippingAddress() { private com.google.recaptchaenterprise.v1.TransactionData.Address billingAddress_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.Address, - com.google.recaptchaenterprise.v1.TransactionData.Address.Builder, - com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder> - billingAddressBuilder_; + com.google.recaptchaenterprise.v1.TransactionData.Address, com.google.recaptchaenterprise.v1.TransactionData.Address.Builder, com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder> billingAddressBuilder_; /** - * - * *
      * Optional. Address associated with the payment method when applicable.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the billingAddress field is set. */ public boolean hasBillingAddress() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Optional. Address associated with the payment method when applicable.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The billingAddress. */ public com.google.recaptchaenterprise.v1.TransactionData.Address getBillingAddress() { if (billingAddressBuilder_ == null) { - return billingAddress_ == null - ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() - : billingAddress_; + return billingAddress_ == null ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() : billingAddress_; } else { return billingAddressBuilder_.getMessage(); } } /** - * - * *
      * Optional. Address associated with the payment method when applicable.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setBillingAddress( - com.google.recaptchaenterprise.v1.TransactionData.Address value) { + public Builder setBillingAddress(com.google.recaptchaenterprise.v1.TransactionData.Address value) { if (billingAddressBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8195,15 +7335,11 @@ public Builder setBillingAddress( return this; } /** - * - * *
      * Optional. Address associated with the payment method when applicable.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setBillingAddress( com.google.recaptchaenterprise.v1.TransactionData.Address.Builder builderForValue) { @@ -8217,23 +7353,17 @@ public Builder setBillingAddress( return this; } /** - * - * *
      * Optional. Address associated with the payment method when applicable.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeBillingAddress( - com.google.recaptchaenterprise.v1.TransactionData.Address value) { + public Builder mergeBillingAddress(com.google.recaptchaenterprise.v1.TransactionData.Address value) { if (billingAddressBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && billingAddress_ != null - && billingAddress_ - != com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + billingAddress_ != null && + billingAddress_ != com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance()) { getBillingAddressBuilder().mergeFrom(value); } else { billingAddress_ = value; @@ -8246,15 +7376,11 @@ public Builder mergeBillingAddress( return this; } /** - * - * *
      * Optional. Address associated with the payment method when applicable.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearBillingAddress() { bitField0_ = (bitField0_ & ~0x00000100); @@ -8267,66 +7393,48 @@ public Builder clearBillingAddress() { return this; } /** - * - * *
      * Optional. Address associated with the payment method when applicable.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.recaptchaenterprise.v1.TransactionData.Address.Builder - getBillingAddressBuilder() { + public com.google.recaptchaenterprise.v1.TransactionData.Address.Builder getBillingAddressBuilder() { bitField0_ |= 0x00000100; onChanged(); return getBillingAddressFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Address associated with the payment method when applicable.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder - getBillingAddressOrBuilder() { + public com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder getBillingAddressOrBuilder() { if (billingAddressBuilder_ != null) { return billingAddressBuilder_.getMessageOrBuilder(); } else { - return billingAddress_ == null - ? com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() - : billingAddress_; + return billingAddress_ == null ? + com.google.recaptchaenterprise.v1.TransactionData.Address.getDefaultInstance() : billingAddress_; } } /** - * - * *
      * Optional. Address associated with the payment method when applicable.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.Address, - com.google.recaptchaenterprise.v1.TransactionData.Address.Builder, - com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder> + com.google.recaptchaenterprise.v1.TransactionData.Address, com.google.recaptchaenterprise.v1.TransactionData.Address.Builder, com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder> getBillingAddressFieldBuilder() { if (billingAddressBuilder_ == null) { - billingAddressBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.Address, - com.google.recaptchaenterprise.v1.TransactionData.Address.Builder, - com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder>( - getBillingAddress(), getParentForChildren(), isClean()); + billingAddressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.TransactionData.Address, com.google.recaptchaenterprise.v1.TransactionData.Address.Builder, com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder>( + getBillingAddress(), + getParentForChildren(), + isClean()); billingAddress_ = null; } return billingAddressBuilder_; @@ -8334,58 +7442,39 @@ public Builder clearBillingAddress() { private com.google.recaptchaenterprise.v1.TransactionData.User user_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.User, - com.google.recaptchaenterprise.v1.TransactionData.User.Builder, - com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder> - userBuilder_; + com.google.recaptchaenterprise.v1.TransactionData.User, com.google.recaptchaenterprise.v1.TransactionData.User.Builder, com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder> userBuilder_; /** - * - * *
      * Optional. Information about the user paying/initiating the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the user field is set. */ public boolean hasUser() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * Optional. Information about the user paying/initiating the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The user. */ public com.google.recaptchaenterprise.v1.TransactionData.User getUser() { if (userBuilder_ == null) { - return user_ == null - ? com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance() - : user_; + return user_ == null ? com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance() : user_; } else { return userBuilder_.getMessage(); } } /** - * - * *
      * Optional. Information about the user paying/initiating the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUser(com.google.recaptchaenterprise.v1.TransactionData.User value) { if (userBuilder_ == null) { @@ -8401,15 +7490,11 @@ public Builder setUser(com.google.recaptchaenterprise.v1.TransactionData.User va return this; } /** - * - * *
      * Optional. Information about the user paying/initiating the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUser( com.google.recaptchaenterprise.v1.TransactionData.User.Builder builderForValue) { @@ -8423,22 +7508,17 @@ public Builder setUser( return this; } /** - * - * *
      * Optional. Information about the user paying/initiating the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUser(com.google.recaptchaenterprise.v1.TransactionData.User value) { if (userBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && user_ != null - && user_ - != com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + user_ != null && + user_ != com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance()) { getUserBuilder().mergeFrom(value); } else { user_ = value; @@ -8451,15 +7531,11 @@ public Builder mergeUser(com.google.recaptchaenterprise.v1.TransactionData.User return this; } /** - * - * *
      * Optional. Information about the user paying/initiating the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUser() { bitField0_ = (bitField0_ & ~0x00000200); @@ -8472,15 +7548,11 @@ public Builder clearUser() { return this; } /** - * - * *
      * Optional. Information about the user paying/initiating the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.TransactionData.User.Builder getUserBuilder() { bitField0_ |= 0x00000200; @@ -8488,84 +7560,61 @@ public com.google.recaptchaenterprise.v1.TransactionData.User.Builder getUserBui return getUserFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Information about the user paying/initiating the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder getUserOrBuilder() { if (userBuilder_ != null) { return userBuilder_.getMessageOrBuilder(); } else { - return user_ == null - ? com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance() - : user_; + return user_ == null ? + com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance() : user_; } } /** - * - * *
      * Optional. Information about the user paying/initiating the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.User, - com.google.recaptchaenterprise.v1.TransactionData.User.Builder, - com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder> + com.google.recaptchaenterprise.v1.TransactionData.User, com.google.recaptchaenterprise.v1.TransactionData.User.Builder, com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder> getUserFieldBuilder() { if (userBuilder_ == null) { - userBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.User, - com.google.recaptchaenterprise.v1.TransactionData.User.Builder, - com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder>( - getUser(), getParentForChildren(), isClean()); + userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.TransactionData.User, com.google.recaptchaenterprise.v1.TransactionData.User.Builder, com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder>( + getUser(), + getParentForChildren(), + isClean()); user_ = null; } return userBuilder_; } private java.util.List merchants_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMerchantsIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { - merchants_ = - new java.util.ArrayList( - merchants_); + merchants_ = new java.util.ArrayList(merchants_); bitField0_ |= 0x00000400; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.User, - com.google.recaptchaenterprise.v1.TransactionData.User.Builder, - com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder> - merchantsBuilder_; + com.google.recaptchaenterprise.v1.TransactionData.User, com.google.recaptchaenterprise.v1.TransactionData.User.Builder, com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder> merchantsBuilder_; /** - * - * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getMerchantsList() { + public java.util.List getMerchantsList() { if (merchantsBuilder_ == null) { return java.util.Collections.unmodifiableList(merchants_); } else { @@ -8573,15 +7622,11 @@ private void ensureMerchantsIsMutable() { } } /** - * - * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public int getMerchantsCount() { if (merchantsBuilder_ == null) { @@ -8591,15 +7636,11 @@ public int getMerchantsCount() { } } /** - * - * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.TransactionData.User getMerchants(int index) { if (merchantsBuilder_ == null) { @@ -8609,15 +7650,11 @@ public com.google.recaptchaenterprise.v1.TransactionData.User getMerchants(int i } } /** - * - * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setMerchants( int index, com.google.recaptchaenterprise.v1.TransactionData.User value) { @@ -8634,15 +7671,11 @@ public Builder setMerchants( return this; } /** - * - * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setMerchants( int index, com.google.recaptchaenterprise.v1.TransactionData.User.Builder builderForValue) { @@ -8656,15 +7689,11 @@ public Builder setMerchants( return this; } /** - * - * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addMerchants(com.google.recaptchaenterprise.v1.TransactionData.User value) { if (merchantsBuilder_ == null) { @@ -8680,15 +7709,11 @@ public Builder addMerchants(com.google.recaptchaenterprise.v1.TransactionData.Us return this; } /** - * - * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addMerchants( int index, com.google.recaptchaenterprise.v1.TransactionData.User value) { @@ -8705,15 +7730,11 @@ public Builder addMerchants( return this; } /** - * - * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addMerchants( com.google.recaptchaenterprise.v1.TransactionData.User.Builder builderForValue) { @@ -8727,15 +7748,11 @@ public Builder addMerchants( return this; } /** - * - * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addMerchants( int index, com.google.recaptchaenterprise.v1.TransactionData.User.Builder builderForValue) { @@ -8749,22 +7766,18 @@ public Builder addMerchants( return this; } /** - * - * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllMerchants( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (merchantsBuilder_ == null) { ensureMerchantsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, merchants_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, merchants_); onChanged(); } else { merchantsBuilder_.addAllMessages(values); @@ -8772,15 +7785,11 @@ public Builder addAllMerchants( return this; } /** - * - * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearMerchants() { if (merchantsBuilder_ == null) { @@ -8793,15 +7802,11 @@ public Builder clearMerchants() { return this; } /** - * - * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeMerchants(int index) { if (merchantsBuilder_ == null) { @@ -8814,52 +7819,39 @@ public Builder removeMerchants(int index) { return this; } /** - * - * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.TransactionData.User.Builder getMerchantsBuilder( int index) { return getMerchantsFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder getMerchantsOrBuilder( int index) { if (merchantsBuilder_ == null) { - return merchants_.get(index); - } else { + return merchants_.get(index); } else { return merchantsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getMerchantsOrBuilderList() { + public java.util.List + getMerchantsOrBuilderList() { if (merchantsBuilder_ != null) { return merchantsBuilder_.getMessageOrBuilderList(); } else { @@ -8867,97 +7859,72 @@ public com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder getMercha } } /** - * - * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.TransactionData.User.Builder addMerchantsBuilder() { - return getMerchantsFieldBuilder() - .addBuilder(com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance()); + return getMerchantsFieldBuilder().addBuilder( + com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance()); } /** - * - * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.TransactionData.User.Builder addMerchantsBuilder( int index) { - return getMerchantsFieldBuilder() - .addBuilder( - index, com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance()); + return getMerchantsFieldBuilder().addBuilder( + index, com.google.recaptchaenterprise.v1.TransactionData.User.getDefaultInstance()); } /** - * - * *
      * Optional. Information about the user or users fulfilling the transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getMerchantsBuilderList() { + public java.util.List + getMerchantsBuilderList() { return getMerchantsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.User, - com.google.recaptchaenterprise.v1.TransactionData.User.Builder, - com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder> + com.google.recaptchaenterprise.v1.TransactionData.User, com.google.recaptchaenterprise.v1.TransactionData.User.Builder, com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder> getMerchantsFieldBuilder() { if (merchantsBuilder_ == null) { - merchantsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.User, - com.google.recaptchaenterprise.v1.TransactionData.User.Builder, - com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder>( - merchants_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); + merchantsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1.TransactionData.User, com.google.recaptchaenterprise.v1.TransactionData.User.Builder, com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder>( + merchants_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); merchants_ = null; } return merchantsBuilder_; } private java.util.List items_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000800) != 0)) { - items_ = - new java.util.ArrayList(items_); + items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000800; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.Item, - com.google.recaptchaenterprise.v1.TransactionData.Item.Builder, - com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder> - itemsBuilder_; + com.google.recaptchaenterprise.v1.TransactionData.Item, com.google.recaptchaenterprise.v1.TransactionData.Item.Builder, com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder> itemsBuilder_; /** - * - * *
      * Optional. Items purchased in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { @@ -8967,15 +7934,11 @@ public java.util.List ge } } /** - * - * *
      * Optional. Items purchased in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public int getItemsCount() { if (itemsBuilder_ == null) { @@ -8985,15 +7948,11 @@ public int getItemsCount() { } } /** - * - * *
      * Optional. Items purchased in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.TransactionData.Item getItems(int index) { if (itemsBuilder_ == null) { @@ -9003,15 +7962,11 @@ public com.google.recaptchaenterprise.v1.TransactionData.Item getItems(int index } } /** - * - * *
      * Optional. Items purchased in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setItems( int index, com.google.recaptchaenterprise.v1.TransactionData.Item value) { @@ -9028,15 +7983,11 @@ public Builder setItems( return this; } /** - * - * *
      * Optional. Items purchased in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setItems( int index, com.google.recaptchaenterprise.v1.TransactionData.Item.Builder builderForValue) { @@ -9050,15 +8001,11 @@ public Builder setItems( return this; } /** - * - * *
      * Optional. Items purchased in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addItems(com.google.recaptchaenterprise.v1.TransactionData.Item value) { if (itemsBuilder_ == null) { @@ -9074,15 +8021,11 @@ public Builder addItems(com.google.recaptchaenterprise.v1.TransactionData.Item v return this; } /** - * - * *
      * Optional. Items purchased in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addItems( int index, com.google.recaptchaenterprise.v1.TransactionData.Item value) { @@ -9099,15 +8042,11 @@ public Builder addItems( return this; } /** - * - * *
      * Optional. Items purchased in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addItems( com.google.recaptchaenterprise.v1.TransactionData.Item.Builder builderForValue) { @@ -9121,15 +8060,11 @@ public Builder addItems( return this; } /** - * - * *
      * Optional. Items purchased in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addItems( int index, com.google.recaptchaenterprise.v1.TransactionData.Item.Builder builderForValue) { @@ -9143,22 +8078,18 @@ public Builder addItems( return this; } /** - * - * *
      * Optional. Items purchased in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllItems( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); onChanged(); } else { itemsBuilder_.addAllMessages(values); @@ -9166,15 +8097,11 @@ public Builder addAllItems( return this; } /** - * - * *
      * Optional. Items purchased in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearItems() { if (itemsBuilder_ == null) { @@ -9187,15 +8114,11 @@ public Builder clearItems() { return this; } /** - * - * *
      * Optional. Items purchased in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { @@ -9208,52 +8131,39 @@ public Builder removeItems(int index) { return this; } /** - * - * *
      * Optional. Items purchased in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.TransactionData.Item.Builder getItemsBuilder( int index) { return getItemsFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Items purchased in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder getItemsOrBuilder( int index) { if (itemsBuilder_ == null) { - return items_.get(index); - } else { + return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Items purchased in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getItemsOrBuilderList() { + public java.util.List + getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { @@ -9261,65 +8171,49 @@ public com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder getItemsO } } /** - * - * *
      * Optional. Items purchased in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.TransactionData.Item.Builder addItemsBuilder() { - return getItemsFieldBuilder() - .addBuilder(com.google.recaptchaenterprise.v1.TransactionData.Item.getDefaultInstance()); + return getItemsFieldBuilder().addBuilder( + com.google.recaptchaenterprise.v1.TransactionData.Item.getDefaultInstance()); } /** - * - * *
      * Optional. Items purchased in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.recaptchaenterprise.v1.TransactionData.Item.Builder addItemsBuilder( int index) { - return getItemsFieldBuilder() - .addBuilder( - index, com.google.recaptchaenterprise.v1.TransactionData.Item.getDefaultInstance()); + return getItemsFieldBuilder().addBuilder( + index, com.google.recaptchaenterprise.v1.TransactionData.Item.getDefaultInstance()); } /** - * - * *
      * Optional. Items purchased in this transaction.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getItemsBuilderList() { + public java.util.List + getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.Item, - com.google.recaptchaenterprise.v1.TransactionData.Item.Builder, - com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder> + com.google.recaptchaenterprise.v1.TransactionData.Item, com.google.recaptchaenterprise.v1.TransactionData.Item.Builder, com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { - itemsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.Item, - com.google.recaptchaenterprise.v1.TransactionData.Item.Builder, - com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder>( - items_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1.TransactionData.Item, com.google.recaptchaenterprise.v1.TransactionData.Item.Builder, com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder>( + items_, + ((bitField0_ & 0x00000800) != 0), + getParentForChildren(), + isClean()); items_ = null; } return itemsBuilder_; @@ -9327,64 +8221,44 @@ public com.google.recaptchaenterprise.v1.TransactionData.Item.Builder addItemsBu private com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo gatewayInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo, - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder, - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfoOrBuilder> - gatewayInfoBuilder_; + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo, com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder, com.google.recaptchaenterprise.v1.TransactionData.GatewayInfoOrBuilder> gatewayInfoBuilder_; /** - * - * *
      * Optional. Information about the payment gateway's response to the
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gatewayInfo field is set. */ public boolean hasGatewayInfo() { return ((bitField0_ & 0x00001000) != 0); } /** - * - * *
      * Optional. Information about the payment gateway's response to the
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The gatewayInfo. */ public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo getGatewayInfo() { if (gatewayInfoBuilder_ == null) { - return gatewayInfo_ == null - ? com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.getDefaultInstance() - : gatewayInfo_; + return gatewayInfo_ == null ? com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.getDefaultInstance() : gatewayInfo_; } else { return gatewayInfoBuilder_.getMessage(); } } /** - * - * *
      * Optional. Information about the payment gateway's response to the
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setGatewayInfo( - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo value) { + public Builder setGatewayInfo(com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo value) { if (gatewayInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9398,16 +8272,12 @@ public Builder setGatewayInfo( return this; } /** - * - * *
      * Optional. Information about the payment gateway's response to the
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGatewayInfo( com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder builderForValue) { @@ -9421,25 +8291,18 @@ public Builder setGatewayInfo( return this; } /** - * - * *
      * Optional. Information about the payment gateway's response to the
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeGatewayInfo( - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo value) { + public Builder mergeGatewayInfo(com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo value) { if (gatewayInfoBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && gatewayInfo_ != null - && gatewayInfo_ - != com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo - .getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) && + gatewayInfo_ != null && + gatewayInfo_ != com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.getDefaultInstance()) { getGatewayInfoBuilder().mergeFrom(value); } else { gatewayInfo_ = value; @@ -9452,16 +8315,12 @@ public Builder mergeGatewayInfo( return this; } /** - * - * *
      * Optional. Information about the payment gateway's response to the
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearGatewayInfo() { bitField0_ = (bitField0_ & ~0x00001000); @@ -9474,76 +8333,58 @@ public Builder clearGatewayInfo() { return this; } /** - * - * *
      * Optional. Information about the payment gateway's response to the
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder - getGatewayInfoBuilder() { + public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder getGatewayInfoBuilder() { bitField0_ |= 0x00001000; onChanged(); return getGatewayInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Information about the payment gateway's response to the
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfoOrBuilder - getGatewayInfoOrBuilder() { + public com.google.recaptchaenterprise.v1.TransactionData.GatewayInfoOrBuilder getGatewayInfoOrBuilder() { if (gatewayInfoBuilder_ != null) { return gatewayInfoBuilder_.getMessageOrBuilder(); } else { - return gatewayInfo_ == null - ? com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.getDefaultInstance() - : gatewayInfo_; + return gatewayInfo_ == null ? + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.getDefaultInstance() : gatewayInfo_; } } /** - * - * *
      * Optional. Information about the payment gateway's response to the
      * transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo, - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder, - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfoOrBuilder> + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo, com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder, com.google.recaptchaenterprise.v1.TransactionData.GatewayInfoOrBuilder> getGatewayInfoFieldBuilder() { if (gatewayInfoBuilder_ == null) { - gatewayInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo, - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder, - com.google.recaptchaenterprise.v1.TransactionData.GatewayInfoOrBuilder>( - getGatewayInfo(), getParentForChildren(), isClean()); + gatewayInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo, com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo.Builder, com.google.recaptchaenterprise.v1.TransactionData.GatewayInfoOrBuilder>( + getGatewayInfo(), + getParentForChildren(), + isClean()); gatewayInfo_ = null; } return gatewayInfoBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -9553,12 +8394,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.TransactionData) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.TransactionData) private static final com.google.recaptchaenterprise.v1.TransactionData DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.TransactionData(); } @@ -9567,27 +8408,27 @@ public static com.google.recaptchaenterprise.v1.TransactionData getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransactionData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransactionData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9602,4 +8443,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.TransactionData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionDataOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionDataOrBuilder.java similarity index 64% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionDataOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionDataOrBuilder.java index e8dcf0d16e07..d1b8e2c756e9 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionDataOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionDataOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface TransactionDataOrBuilder - extends +public interface TransactionDataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.TransactionData) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Unique identifier for the transaction. This custom identifier can be used
    * to reference this transaction in the future, for example, labeling a refund
@@ -34,13 +16,10 @@ public interface TransactionDataOrBuilder
    * 
* * optional string transaction_id = 11; - * * @return Whether the transactionId field is set. */ boolean hasTransactionId(); /** - * - * *
    * Unique identifier for the transaction. This custom identifier can be used
    * to reference this transaction in the future, for example, labeling a refund
@@ -49,13 +28,10 @@ public interface TransactionDataOrBuilder
    * 
* * optional string transaction_id = 11; - * * @return The transactionId. */ java.lang.String getTransactionId(); /** - * - * *
    * Unique identifier for the transaction. This custom identifier can be used
    * to reference this transaction in the future, for example, labeling a refund
@@ -64,14 +40,12 @@ public interface TransactionDataOrBuilder
    * 
* * optional string transaction_id = 11; - * * @return The bytes for transactionId. */ - com.google.protobuf.ByteString getTransactionIdBytes(); + com.google.protobuf.ByteString + getTransactionIdBytes(); /** - * - * *
    * Optional. The payment method for the transaction. The allowed values are:
    *
@@ -85,13 +59,10 @@ public interface TransactionDataOrBuilder
    * 
* * string payment_method = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The paymentMethod. */ java.lang.String getPaymentMethod(); /** - * - * *
    * Optional. The payment method for the transaction. The allowed values are:
    *
@@ -105,406 +76,293 @@ public interface TransactionDataOrBuilder
    * 
* * string payment_method = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for paymentMethod. */ - com.google.protobuf.ByteString getPaymentMethodBytes(); + com.google.protobuf.ByteString + getPaymentMethodBytes(); /** - * - * *
    * Optional. The Bank Identification Number - generally the first 6 or 8
    * digits of the card.
    * 
* * string card_bin = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The cardBin. */ java.lang.String getCardBin(); /** - * - * *
    * Optional. The Bank Identification Number - generally the first 6 or 8
    * digits of the card.
    * 
* * string card_bin = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for cardBin. */ - com.google.protobuf.ByteString getCardBinBytes(); + com.google.protobuf.ByteString + getCardBinBytes(); /** - * - * *
    * Optional. The last four digits of the card.
    * 
* * string card_last_four = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The cardLastFour. */ java.lang.String getCardLastFour(); /** - * - * *
    * Optional. The last four digits of the card.
    * 
* * string card_last_four = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for cardLastFour. */ - com.google.protobuf.ByteString getCardLastFourBytes(); + com.google.protobuf.ByteString + getCardLastFourBytes(); /** - * - * *
    * Optional. The currency code in ISO-4217 format.
    * 
* * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The currencyCode. */ java.lang.String getCurrencyCode(); /** - * - * *
    * Optional. The currency code in ISO-4217 format.
    * 
* * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for currencyCode. */ - com.google.protobuf.ByteString getCurrencyCodeBytes(); + com.google.protobuf.ByteString + getCurrencyCodeBytes(); /** - * - * *
    * Optional. The decimal value of the transaction in the specified currency.
    * 
* * double value = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The value. */ double getValue(); /** - * - * *
    * Optional. The value of shipping in the specified currency. 0 for free or no
    * shipping.
    * 
* * double shipping_value = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The shippingValue. */ double getShippingValue(); /** - * - * *
    * Optional. Destination address if this transaction involves shipping a
    * physical item.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the shippingAddress field is set. */ boolean hasShippingAddress(); /** - * - * *
    * Optional. Destination address if this transaction involves shipping a
    * physical item.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The shippingAddress. */ com.google.recaptchaenterprise.v1.TransactionData.Address getShippingAddress(); /** - * - * *
    * Optional. Destination address if this transaction involves shipping a
    * physical item.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder getShippingAddressOrBuilder(); /** - * - * *
    * Optional. Address associated with the payment method when applicable.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the billingAddress field is set. */ boolean hasBillingAddress(); /** - * - * *
    * Optional. Address associated with the payment method when applicable.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The billingAddress. */ com.google.recaptchaenterprise.v1.TransactionData.Address getBillingAddress(); /** - * - * *
    * Optional. Address associated with the payment method when applicable.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.recaptchaenterprise.v1.TransactionData.AddressOrBuilder getBillingAddressOrBuilder(); /** - * - * *
    * Optional. Information about the user paying/initiating the transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the user field is set. */ boolean hasUser(); /** - * - * *
    * Optional. Information about the user paying/initiating the transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The user. */ com.google.recaptchaenterprise.v1.TransactionData.User getUser(); /** - * - * *
    * Optional. Information about the user paying/initiating the transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder getUserOrBuilder(); /** - * - * *
    * Optional. Information about the user or users fulfilling the transaction.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getMerchantsList(); + java.util.List + getMerchantsList(); /** - * - * *
    * Optional. Information about the user or users fulfilling the transaction.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.recaptchaenterprise.v1.TransactionData.User getMerchants(int index); /** - * - * *
    * Optional. Information about the user or users fulfilling the transaction.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ int getMerchantsCount(); /** - * - * *
    * Optional. Information about the user or users fulfilling the transaction.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getMerchantsOrBuilderList(); /** - * - * *
    * Optional. Information about the user or users fulfilling the transaction.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder getMerchantsOrBuilder(int index); + com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder getMerchantsOrBuilder( + int index); /** - * - * *
    * Optional. Items purchased in this transaction.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getItemsList(); + java.util.List + getItemsList(); /** - * - * *
    * Optional. Items purchased in this transaction.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.recaptchaenterprise.v1.TransactionData.Item getItems(int index); /** - * - * *
    * Optional. Items purchased in this transaction.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ int getItemsCount(); /** - * - * *
    * Optional. Items purchased in this transaction.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getItemsOrBuilderList(); /** - * - * *
    * Optional. Items purchased in this transaction.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder getItemsOrBuilder(int index); + com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder getItemsOrBuilder( + int index); /** - * - * *
    * Optional. Information about the payment gateway's response to the
    * transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gatewayInfo field is set. */ boolean hasGatewayInfo(); /** - * - * *
    * Optional. Information about the payment gateway's response to the
    * transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The gatewayInfo. */ com.google.recaptchaenterprise.v1.TransactionData.GatewayInfo getGatewayInfo(); /** - * - * *
    * Optional. Information about the payment gateway's response to the
    * transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.recaptchaenterprise.v1.TransactionData.GatewayInfoOrBuilder getGatewayInfoOrBuilder(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEvent.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEvent.java similarity index 73% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEvent.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEvent.java index 7e325d0b3640..3a1c8c56876d 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEvent.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEvent.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * Describes an event in the lifecycle of a payment transaction.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TransactionEvent} */ -public final class TransactionEvent extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TransactionEvent extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.TransactionEvent) TransactionEventOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TransactionEvent.newBuilder() to construct. private TransactionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TransactionEvent() { eventType_ = 0; reason_ = ""; @@ -44,38 +26,34 @@ private TransactionEvent() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TransactionEvent(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TransactionEvent.class, - com.google.recaptchaenterprise.v1.TransactionEvent.Builder.class); + com.google.recaptchaenterprise.v1.TransactionEvent.class, com.google.recaptchaenterprise.v1.TransactionEvent.Builder.class); } /** - * - * *
    * Enum that represents an event in the payment transaction lifecycle.
    * 
* * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType} */ - public enum TransactionEventType implements com.google.protobuf.ProtocolMessageEnum { + public enum TransactionEventType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default, unspecified event type.
      * 
@@ -84,8 +62,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE */ TRANSACTION_EVENT_TYPE_UNSPECIFIED(0), /** - * - * *
      * Indicates that the transaction is approved by the merchant. The
      * accompanying reasons can include terms such as 'INHOUSE', 'ACCERTIFY',
@@ -96,8 +72,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     MERCHANT_APPROVE(1),
     /**
-     *
-     *
      * 
      * Indicates that the transaction is denied and concluded due to risks
      * detected by the merchant. The accompanying reasons can include terms such
@@ -108,8 +82,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     MERCHANT_DENY(2),
     /**
-     *
-     *
      * 
      * Indicates that the transaction is being evaluated by a human, due to
      * suspicion or risk.
@@ -119,8 +91,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     MANUAL_REVIEW(3),
     /**
-     *
-     *
      * 
      * Indicates that the authorization attempt with the card issuer succeeded.
      * 
@@ -129,8 +99,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE */ AUTHORIZATION(4), /** - * - * *
      * Indicates that the authorization attempt with the card issuer failed.
      * The accompanying reasons can include Visa's '54' indicating that the card
@@ -141,8 +109,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     AUTHORIZATION_DECLINE(5),
     /**
-     *
-     *
      * 
      * Indicates that the transaction is completed because the funds were
      * settled.
@@ -152,8 +118,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     PAYMENT_CAPTURE(6),
     /**
-     *
-     *
      * 
      * Indicates that the transaction could not be completed because the funds
      * were not settled.
@@ -163,8 +127,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     PAYMENT_CAPTURE_DECLINE(7),
     /**
-     *
-     *
      * 
      * Indicates that the transaction has been canceled. Specify the reason
      * for the cancellation. For example, 'INSUFFICIENT_INVENTORY'.
@@ -174,8 +136,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     CANCEL(8),
     /**
-     *
-     *
      * 
      * Indicates that the merchant has received a chargeback inquiry due to
      * fraud for the transaction, requesting additional information before a
@@ -187,8 +147,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     CHARGEBACK_INQUIRY(9),
     /**
-     *
-     *
      * 
      * Indicates that the merchant has received a chargeback alert due to fraud
      * for the transaction. The process of resolving the dispute without
@@ -199,8 +157,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     CHARGEBACK_ALERT(10),
     /**
-     *
-     *
      * 
      * Indicates that a fraud notification is issued for the transaction, sent
      * by the payment instrument's issuing bank because the transaction appears
@@ -213,8 +169,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     FRAUD_NOTIFICATION(11),
     /**
-     *
-     *
      * 
      * Indicates that the merchant is informed by the payment network that the
      * transaction has entered the chargeback process due to fraud. Reason code
@@ -226,8 +180,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     CHARGEBACK(12),
     /**
-     *
-     *
      * 
      * Indicates that the transaction has entered the chargeback process due to
      * fraud, and that the merchant has chosen to enter representment. Reason
@@ -239,8 +191,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     CHARGEBACK_REPRESENTMENT(13),
     /**
-     *
-     *
      * 
      * Indicates that the transaction has had a fraud chargeback which was
      * illegitimate and was reversed as a result. For partial chargebacks, we
@@ -251,8 +201,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     CHARGEBACK_REVERSE(14),
     /**
-     *
-     *
      * 
      * Indicates that the merchant has received a refund for a completed
      * transaction. For partial refunds, we recommend that you include an amount
@@ -264,8 +212,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     REFUND_REQUEST(15),
     /**
-     *
-     *
      * 
      * Indicates that the merchant has received a refund request for this
      * transaction, but that they have declined it. For partial refunds, we
@@ -277,8 +223,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     REFUND_DECLINE(16),
     /**
-     *
-     *
      * 
      * Indicates that the completed transaction was refunded by the merchant.
      * For partial refunds, we recommend that you include an amount in the
@@ -290,8 +234,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     REFUND(17),
     /**
-     *
-     *
      * 
      * Indicates that the completed transaction was refunded by the merchant,
      * and that this refund was reversed. For partial refunds, we recommend that
@@ -305,8 +247,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
     ;
 
     /**
-     *
-     *
      * 
      * Default, unspecified event type.
      * 
@@ -315,8 +255,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE */ public static final int TRANSACTION_EVENT_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Indicates that the transaction is approved by the merchant. The
      * accompanying reasons can include terms such as 'INHOUSE', 'ACCERTIFY',
@@ -327,8 +265,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int MERCHANT_APPROVE_VALUE = 1;
     /**
-     *
-     *
      * 
      * Indicates that the transaction is denied and concluded due to risks
      * detected by the merchant. The accompanying reasons can include terms such
@@ -339,8 +275,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int MERCHANT_DENY_VALUE = 2;
     /**
-     *
-     *
      * 
      * Indicates that the transaction is being evaluated by a human, due to
      * suspicion or risk.
@@ -350,8 +284,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int MANUAL_REVIEW_VALUE = 3;
     /**
-     *
-     *
      * 
      * Indicates that the authorization attempt with the card issuer succeeded.
      * 
@@ -360,8 +292,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE */ public static final int AUTHORIZATION_VALUE = 4; /** - * - * *
      * Indicates that the authorization attempt with the card issuer failed.
      * The accompanying reasons can include Visa's '54' indicating that the card
@@ -372,8 +302,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int AUTHORIZATION_DECLINE_VALUE = 5;
     /**
-     *
-     *
      * 
      * Indicates that the transaction is completed because the funds were
      * settled.
@@ -383,8 +311,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int PAYMENT_CAPTURE_VALUE = 6;
     /**
-     *
-     *
      * 
      * Indicates that the transaction could not be completed because the funds
      * were not settled.
@@ -394,8 +320,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int PAYMENT_CAPTURE_DECLINE_VALUE = 7;
     /**
-     *
-     *
      * 
      * Indicates that the transaction has been canceled. Specify the reason
      * for the cancellation. For example, 'INSUFFICIENT_INVENTORY'.
@@ -405,8 +329,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int CANCEL_VALUE = 8;
     /**
-     *
-     *
      * 
      * Indicates that the merchant has received a chargeback inquiry due to
      * fraud for the transaction, requesting additional information before a
@@ -418,8 +340,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int CHARGEBACK_INQUIRY_VALUE = 9;
     /**
-     *
-     *
      * 
      * Indicates that the merchant has received a chargeback alert due to fraud
      * for the transaction. The process of resolving the dispute without
@@ -430,8 +350,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int CHARGEBACK_ALERT_VALUE = 10;
     /**
-     *
-     *
      * 
      * Indicates that a fraud notification is issued for the transaction, sent
      * by the payment instrument's issuing bank because the transaction appears
@@ -444,8 +362,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int FRAUD_NOTIFICATION_VALUE = 11;
     /**
-     *
-     *
      * 
      * Indicates that the merchant is informed by the payment network that the
      * transaction has entered the chargeback process due to fraud. Reason code
@@ -457,8 +373,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int CHARGEBACK_VALUE = 12;
     /**
-     *
-     *
      * 
      * Indicates that the transaction has entered the chargeback process due to
      * fraud, and that the merchant has chosen to enter representment. Reason
@@ -470,8 +384,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int CHARGEBACK_REPRESENTMENT_VALUE = 13;
     /**
-     *
-     *
      * 
      * Indicates that the transaction has had a fraud chargeback which was
      * illegitimate and was reversed as a result. For partial chargebacks, we
@@ -482,8 +394,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int CHARGEBACK_REVERSE_VALUE = 14;
     /**
-     *
-     *
      * 
      * Indicates that the merchant has received a refund for a completed
      * transaction. For partial refunds, we recommend that you include an amount
@@ -495,8 +405,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int REFUND_REQUEST_VALUE = 15;
     /**
-     *
-     *
      * 
      * Indicates that the merchant has received a refund request for this
      * transaction, but that they have declined it. For partial refunds, we
@@ -508,8 +416,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int REFUND_DECLINE_VALUE = 16;
     /**
-     *
-     *
      * 
      * Indicates that the completed transaction was refunded by the merchant.
      * For partial refunds, we recommend that you include an amount in the
@@ -521,8 +427,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int REFUND_VALUE = 17;
     /**
-     *
-     *
      * 
      * Indicates that the completed transaction was refunded by the merchant,
      * and that this refund was reversed. For partial refunds, we recommend that
@@ -533,6 +437,7 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int REFUND_REVERSE_VALUE = 18;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -557,46 +462,26 @@ public static TransactionEventType valueOf(int value) {
      */
     public static TransactionEventType forNumber(int value) {
       switch (value) {
-        case 0:
-          return TRANSACTION_EVENT_TYPE_UNSPECIFIED;
-        case 1:
-          return MERCHANT_APPROVE;
-        case 2:
-          return MERCHANT_DENY;
-        case 3:
-          return MANUAL_REVIEW;
-        case 4:
-          return AUTHORIZATION;
-        case 5:
-          return AUTHORIZATION_DECLINE;
-        case 6:
-          return PAYMENT_CAPTURE;
-        case 7:
-          return PAYMENT_CAPTURE_DECLINE;
-        case 8:
-          return CANCEL;
-        case 9:
-          return CHARGEBACK_INQUIRY;
-        case 10:
-          return CHARGEBACK_ALERT;
-        case 11:
-          return FRAUD_NOTIFICATION;
-        case 12:
-          return CHARGEBACK;
-        case 13:
-          return CHARGEBACK_REPRESENTMENT;
-        case 14:
-          return CHARGEBACK_REVERSE;
-        case 15:
-          return REFUND_REQUEST;
-        case 16:
-          return REFUND_DECLINE;
-        case 17:
-          return REFUND;
-        case 18:
-          return REFUND_REVERSE;
-        default:
-          return null;
+        case 0: return TRANSACTION_EVENT_TYPE_UNSPECIFIED;
+        case 1: return MERCHANT_APPROVE;
+        case 2: return MERCHANT_DENY;
+        case 3: return MANUAL_REVIEW;
+        case 4: return AUTHORIZATION;
+        case 5: return AUTHORIZATION_DECLINE;
+        case 6: return PAYMENT_CAPTURE;
+        case 7: return PAYMENT_CAPTURE_DECLINE;
+        case 8: return CANCEL;
+        case 9: return CHARGEBACK_INQUIRY;
+        case 10: return CHARGEBACK_ALERT;
+        case 11: return FRAUD_NOTIFICATION;
+        case 12: return CHARGEBACK;
+        case 13: return CHARGEBACK_REPRESENTMENT;
+        case 14: return CHARGEBACK_REVERSE;
+        case 15: return REFUND_REQUEST;
+        case 16: return REFUND_DECLINE;
+        case 17: return REFUND;
+        case 18: return REFUND_REVERSE;
+        default: return null;
       }
     }
 
@@ -604,31 +489,29 @@ public static TransactionEventType forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        TransactionEventType> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public TransactionEventType findValueByNumber(int number) {
+              return TransactionEventType.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public TransactionEventType findValueByNumber(int number) {
-                return TransactionEventType.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.recaptchaenterprise.v1.TransactionEvent.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.recaptchaenterprise.v1.TransactionEvent.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final TransactionEventType[] VALUES = values();
@@ -636,7 +519,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static TransactionEventType valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -656,52 +540,33 @@ private TransactionEventType(int value) {
   public static final int EVENT_TYPE_FIELD_NUMBER = 1;
   private int eventType_ = 0;
   /**
-   *
-   *
    * 
    * Optional. The type of this transaction event.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for eventType. */ - @java.lang.Override - public int getEventTypeValue() { + @java.lang.Override public int getEventTypeValue() { return eventType_; } /** - * - * *
    * Optional. The type of this transaction event.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The eventType. */ - @java.lang.Override - public com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType getEventType() { - com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType result = - com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType.forNumber( - eventType_); - return result == null - ? com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType getEventType() { + com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType result = com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType.forNumber(eventType_); + return result == null ? com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType.UNRECOGNIZED : result; } public static final int REASON_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object reason_ = ""; /** - * - * *
    * Optional. The reason or standardized code that corresponds with this
    * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -709,7 +574,6 @@ public com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType g
    * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The reason. */ @java.lang.Override @@ -718,15 +582,14 @@ public java.lang.String getReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reason_ = s; return s; } } /** - * - * *
    * Optional. The reason or standardized code that corresponds with this
    * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -734,15 +597,16 @@ public java.lang.String getReason() {
    * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for reason. */ @java.lang.Override - public com.google.protobuf.ByteString getReasonBytes() { + public com.google.protobuf.ByteString + getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reason_ = b; return b; } else { @@ -753,8 +617,6 @@ public com.google.protobuf.ByteString getReasonBytes() { public static final int VALUE_FIELD_NUMBER = 3; private double value_ = 0D; /** - * - * *
    * Optional. The value that corresponds with this transaction event, if one
    * exists. For example, a refund event where $5.00 was refunded. Currency is
@@ -762,7 +624,6 @@ public com.google.protobuf.ByteString getReasonBytes() {
    * 
* * double value = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The value. */ @java.lang.Override @@ -773,16 +634,12 @@ public double getValue() { public static final int EVENT_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp eventTime_; /** - * - * *
    * Optional. Timestamp when this transaction event occurred; otherwise assumed
    * to be the time of the API call.
    * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the eventTime field is set. */ @java.lang.Override @@ -790,16 +647,12 @@ public boolean hasEventTime() { return eventTime_ != null; } /** - * - * *
    * Optional. Timestamp when this transaction event occurred; otherwise assumed
    * to be the time of the API call.
    * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The eventTime. */ @java.lang.Override @@ -807,15 +660,12 @@ public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } /** - * - * *
    * Optional. Timestamp when this transaction event occurred; otherwise assumed
    * to be the time of the API call.
    * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { @@ -823,7 +673,6 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -835,11 +684,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (eventType_ - != com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType - .TRANSACTION_EVENT_TYPE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (eventType_ != com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType.TRANSACTION_EVENT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, eventType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { @@ -860,20 +707,20 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (eventType_ - != com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType - .TRANSACTION_EVENT_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, eventType_); + if (eventType_ != com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType.TRANSACTION_EVENT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, eventType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, reason_); } if (java.lang.Double.doubleToRawLongBits(value_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, value_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, value_); } if (eventTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEventTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getEventTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -883,21 +730,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.TransactionEvent)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.TransactionEvent other = - (com.google.recaptchaenterprise.v1.TransactionEvent) obj; + com.google.recaptchaenterprise.v1.TransactionEvent other = (com.google.recaptchaenterprise.v1.TransactionEvent) obj; if (eventType_ != other.eventType_) return false; - if (!getReason().equals(other.getReason())) return false; + if (!getReason() + .equals(other.getReason())) return false; if (java.lang.Double.doubleToLongBits(getValue()) - != java.lang.Double.doubleToLongBits(other.getValue())) return false; + != java.lang.Double.doubleToLongBits( + other.getValue())) return false; if (hasEventTime() != other.hasEventTime()) return false; if (hasEventTime()) { - if (!getEventTime().equals(other.getEventTime())) return false; + if (!getEventTime() + .equals(other.getEventTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -915,9 +764,8 @@ public int hashCode() { hash = (37 * hash) + REASON_FIELD_NUMBER; hash = (53 * hash) + getReason().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getValue())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getValue())); if (hasEventTime()) { hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER; hash = (53 * hash) + getEventTime().hashCode(); @@ -928,135 +776,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.TransactionEvent parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.TransactionEvent parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.TransactionEvent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.TransactionEvent parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.TransactionEvent parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.TransactionEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.TransactionEvent parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionEvent parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.TransactionEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.TransactionEvent parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.TransactionEvent parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.TransactionEvent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.TransactionEvent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Describes an event in the lifecycle of a payment transaction.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.TransactionEvent} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.TransactionEvent) com.google.recaptchaenterprise.v1.TransactionEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.TransactionEvent.class, - com.google.recaptchaenterprise.v1.TransactionEvent.Builder.class); + com.google.recaptchaenterprise.v1.TransactionEvent.class, com.google.recaptchaenterprise.v1.TransactionEvent.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.TransactionEvent.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1073,9 +917,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_TransactionEvent_descriptor; } @java.lang.Override @@ -1094,11 +938,8 @@ public com.google.recaptchaenterprise.v1.TransactionEvent build() { @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionEvent buildPartial() { - com.google.recaptchaenterprise.v1.TransactionEvent result = - new com.google.recaptchaenterprise.v1.TransactionEvent(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.TransactionEvent result = new com.google.recaptchaenterprise.v1.TransactionEvent(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1115,7 +956,9 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.TransactionEvent re result.value_ = value_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.eventTime_ = eventTimeBuilder_ == null ? eventTime_ : eventTimeBuilder_.build(); + result.eventTime_ = eventTimeBuilder_ == null + ? eventTime_ + : eventTimeBuilder_.build(); } } @@ -1123,39 +966,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.TransactionEvent re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.TransactionEvent) { - return mergeFrom((com.google.recaptchaenterprise.v1.TransactionEvent) other); + return mergeFrom((com.google.recaptchaenterprise.v1.TransactionEvent)other); } else { super.mergeFrom(other); return this; @@ -1163,8 +1005,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.TransactionEvent other) { - if (other == com.google.recaptchaenterprise.v1.TransactionEvent.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.TransactionEvent.getDefaultInstance()) return this; if (other.eventType_ != 0) { setEventTypeValue(other.getEventTypeValue()); } @@ -1205,37 +1046,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - eventType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - reason_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 25: - { - value_ = input.readDouble(); - bitField0_ |= 0x00000004; - break; - } // case 25 - case 34: - { - input.readMessage(getEventTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + eventType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + reason_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 25: { + value_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 34: { + input.readMessage( + getEventTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1245,38 +1083,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int eventType_ = 0; /** - * - * *
      * Optional. The type of this transaction event.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for eventType. */ - @java.lang.Override - public int getEventTypeValue() { + @java.lang.Override public int getEventTypeValue() { return eventType_; } /** - * - * *
      * Optional. The type of this transaction event.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for eventType to set. * @return This builder for chaining. */ @@ -1287,43 +1113,28 @@ public Builder setEventTypeValue(int value) { return this; } /** - * - * *
      * Optional. The type of this transaction event.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The eventType. */ @java.lang.Override public com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType getEventType() { - com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType result = - com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType.forNumber( - eventType_); - return result == null - ? com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType.UNRECOGNIZED - : result; + com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType result = com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType.forNumber(eventType_); + return result == null ? com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The type of this transaction event.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param value The eventType to set. * @return This builder for chaining. */ - public Builder setEventType( - com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType value) { + public Builder setEventType(com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType value) { if (value == null) { throw new NullPointerException(); } @@ -1333,16 +1144,11 @@ public Builder setEventType( return this; } /** - * - * *
      * Optional. The type of this transaction event.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearEventType() { @@ -1354,8 +1160,6 @@ public Builder clearEventType() { private java.lang.Object reason_ = ""; /** - * - * *
      * Optional. The reason or standardized code that corresponds with this
      * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -1363,13 +1167,13 @@ public Builder clearEventType() {
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The reason. */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reason_ = s; return s; @@ -1378,8 +1182,6 @@ public java.lang.String getReason() { } } /** - * - * *
      * Optional. The reason or standardized code that corresponds with this
      * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -1387,14 +1189,15 @@ public java.lang.String getReason() {
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for reason. */ - public com.google.protobuf.ByteString getReasonBytes() { + public com.google.protobuf.ByteString + getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reason_ = b; return b; } else { @@ -1402,8 +1205,6 @@ public com.google.protobuf.ByteString getReasonBytes() { } } /** - * - * *
      * Optional. The reason or standardized code that corresponds with this
      * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -1411,22 +1212,18 @@ public com.google.protobuf.ByteString getReasonBytes() {
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The reason to set. * @return This builder for chaining. */ - public Builder setReason(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReason( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } reason_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The reason or standardized code that corresponds with this
      * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -1434,7 +1231,6 @@ public Builder setReason(java.lang.String value) {
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearReason() { @@ -1444,8 +1240,6 @@ public Builder clearReason() { return this; } /** - * - * *
      * Optional. The reason or standardized code that corresponds with this
      * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -1453,14 +1247,12 @@ public Builder clearReason() {
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for reason to set. * @return This builder for chaining. */ - public Builder setReasonBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReasonBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reason_ = value; bitField0_ |= 0x00000002; @@ -1468,10 +1260,8 @@ public Builder setReasonBytes(com.google.protobuf.ByteString value) { return this; } - private double value_; + private double value_ ; /** - * - * *
      * Optional. The value that corresponds with this transaction event, if one
      * exists. For example, a refund event where $5.00 was refunded. Currency is
@@ -1479,7 +1269,6 @@ public Builder setReasonBytes(com.google.protobuf.ByteString value) {
      * 
* * double value = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The value. */ @java.lang.Override @@ -1487,8 +1276,6 @@ public double getValue() { return value_; } /** - * - * *
      * Optional. The value that corresponds with this transaction event, if one
      * exists. For example, a refund event where $5.00 was refunded. Currency is
@@ -1496,7 +1283,6 @@ public double getValue() {
      * 
* * double value = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The value to set. * @return This builder for chaining. */ @@ -1508,8 +1294,6 @@ public Builder setValue(double value) { return this; } /** - * - * *
      * Optional. The value that corresponds with this transaction event, if one
      * exists. For example, a refund event where $5.00 was refunded. Currency is
@@ -1517,7 +1301,6 @@ public Builder setValue(double value) {
      * 
* * double value = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -1529,37 +1312,26 @@ public Builder clearValue() { private com.google.protobuf.Timestamp eventTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - eventTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> eventTimeBuilder_; /** - * - * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the eventTime field is set. */ public boolean hasEventTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The eventTime. */ public com.google.protobuf.Timestamp getEventTime() { @@ -1570,15 +1342,12 @@ public com.google.protobuf.Timestamp getEventTime() { } } /** - * - * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEventTime(com.google.protobuf.Timestamp value) { if (eventTimeBuilder_ == null) { @@ -1594,17 +1363,15 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEventTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (eventTimeBuilder_ == null) { eventTime_ = builderForValue.build(); } else { @@ -1615,21 +1382,18 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { if (eventTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && eventTime_ != null - && eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + eventTime_ != null && + eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEventTimeBuilder().mergeFrom(value); } else { eventTime_ = value; @@ -1642,15 +1406,12 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearEventTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1663,15 +1424,12 @@ public Builder clearEventTime() { return this; } /** - * - * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { bitField0_ |= 0x00000008; @@ -1679,53 +1437,45 @@ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { return getEventTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { if (eventTimeBuilder_ != null) { return eventTimeBuilder_.getMessageOrBuilder(); } else { - return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + return eventTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } } /** - * - * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEventTimeFieldBuilder() { if (eventTimeBuilder_ == null) { - eventTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEventTime(), getParentForChildren(), isClean()); + eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEventTime(), + getParentForChildren(), + isClean()); eventTime_ = null; } return eventTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1735,12 +1485,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.TransactionEvent) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.TransactionEvent) private static final com.google.recaptchaenterprise.v1.TransactionEvent DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.TransactionEvent(); } @@ -1749,27 +1499,27 @@ public static com.google.recaptchaenterprise.v1.TransactionEvent getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransactionEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransactionEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1784,4 +1534,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.TransactionEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEventOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEventOrBuilder.java similarity index 67% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEventOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEventOrBuilder.java index c7c2951203d5..9ceebf50bd5c 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEventOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/TransactionEventOrBuilder.java @@ -1,60 +1,32 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface TransactionEventOrBuilder - extends +public interface TransactionEventOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.TransactionEvent) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The type of this transaction event.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for eventType. */ int getEventTypeValue(); /** - * - * *
    * Optional. The type of this transaction event.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The eventType. */ com.google.recaptchaenterprise.v1.TransactionEvent.TransactionEventType getEventType(); /** - * - * *
    * Optional. The reason or standardized code that corresponds with this
    * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -62,13 +34,10 @@ public interface TransactionEventOrBuilder
    * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The reason. */ java.lang.String getReason(); /** - * - * *
    * Optional. The reason or standardized code that corresponds with this
    * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -76,14 +45,12 @@ public interface TransactionEventOrBuilder
    * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for reason. */ - com.google.protobuf.ByteString getReasonBytes(); + com.google.protobuf.ByteString + getReasonBytes(); /** - * - * *
    * Optional. The value that corresponds with this transaction event, if one
    * exists. For example, a refund event where $5.00 was refunded. Currency is
@@ -91,49 +58,37 @@ public interface TransactionEventOrBuilder
    * 
* * double value = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The value. */ double getValue(); /** - * - * *
    * Optional. Timestamp when this transaction event occurred; otherwise assumed
    * to be the time of the API call.
    * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the eventTime field is set. */ boolean hasEventTime(); /** - * - * *
    * Optional. Timestamp when this transaction event occurred; otherwise assumed
    * to be the time of the API call.
    * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The eventTime. */ com.google.protobuf.Timestamp getEventTime(); /** - * - * *
    * Optional. Timestamp when this transaction event occurred; otherwise assumed
    * to be the time of the API call.
    * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequest.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequest.java similarity index 63% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequest.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequest.java index 55090f693999..86c9b8139755 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequest.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequest.java @@ -1,78 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * The update firewall policy request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.UpdateFirewallPolicyRequest} */ -public final class UpdateFirewallPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateFirewallPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.UpdateFirewallPolicyRequest) UpdateFirewallPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateFirewallPolicyRequest.newBuilder() to construct. private UpdateFirewallPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateFirewallPolicyRequest() {} + private UpdateFirewallPolicyRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateFirewallPolicyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.class, - com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.Builder.class); + com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.class, com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.Builder.class); } public static final int FIREWALL_POLICY_FIELD_NUMBER = 1; private com.google.recaptchaenterprise.v1.FirewallPolicy firewallPolicy_; /** - * - * *
    * Required. The policy to update.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the firewallPolicy field is set. */ @java.lang.Override @@ -80,55 +57,38 @@ public boolean hasFirewallPolicy() { return firewallPolicy_ != null; } /** - * - * *
    * Required. The policy to update.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The firewallPolicy. */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy() { - return firewallPolicy_ == null - ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() - : firewallPolicy_; + return firewallPolicy_ == null ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() : firewallPolicy_; } /** - * - * *
    * Required. The policy to update.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPolicyOrBuilder() { - return firewallPolicy_ == null - ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() - : firewallPolicy_; + return firewallPolicy_ == null ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() : firewallPolicy_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. The mask to control which fields of the policy get updated. If
    * the mask is not present, all fields will be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -136,16 +96,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. The mask to control which fields of the policy get updated. If
    * the mask is not present, all fields will be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -153,15 +109,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. The mask to control which fields of the policy get updated. If
    * the mask is not present, all fields will be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -169,7 +122,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +133,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (firewallPolicy_ != null) { output.writeMessage(1, getFirewallPolicy()); } @@ -198,10 +151,12 @@ public int getSerializedSize() { size = 0; if (firewallPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFirewallPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getFirewallPolicy()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -211,21 +166,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest other = - (com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest) obj; + com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest other = (com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest) obj; if (hasFirewallPolicy() != other.hasFirewallPolicy()) return false; if (hasFirewallPolicy()) { - if (!getFirewallPolicy().equals(other.getFirewallPolicy())) return false; + if (!getFirewallPolicy() + .equals(other.getFirewallPolicy())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -252,136 +208,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The update firewall policy request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.UpdateFirewallPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.UpdateFirewallPolicyRequest) com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.class, - com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.Builder.class); + com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.class, com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -400,14 +351,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.getDefaultInstance(); } @@ -422,24 +372,23 @@ public com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest buildPartial() { - com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest result = - new com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest result = new com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest result) { + private void buildPartial0(com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.firewallPolicy_ = - firewallPolicyBuilder_ == null ? firewallPolicy_ : firewallPolicyBuilder_.build(); + result.firewallPolicy_ = firewallPolicyBuilder_ == null + ? firewallPolicy_ + : firewallPolicyBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -447,39 +396,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest) other); + return mergeFrom((com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -487,9 +435,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest other) { - if (other - == com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest.getDefaultInstance()) return this; if (other.hasFirewallPolicy()) { mergeFirewallPolicy(other.getFirewallPolicy()); } @@ -522,25 +468,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getFirewallPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getFirewallPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -550,63 +497,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.recaptchaenterprise.v1.FirewallPolicy firewallPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicy, - com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, - com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> - firewallPolicyBuilder_; + com.google.recaptchaenterprise.v1.FirewallPolicy, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> firewallPolicyBuilder_; /** - * - * *
      * Required. The policy to update.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the firewallPolicy field is set. */ public boolean hasFirewallPolicy() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The policy to update.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The firewallPolicy. */ public com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy() { if (firewallPolicyBuilder_ == null) { - return firewallPolicy_ == null - ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() - : firewallPolicy_; + return firewallPolicy_ == null ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() : firewallPolicy_; } else { return firewallPolicyBuilder_.getMessage(); } } /** - * - * *
      * Required. The policy to update.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFirewallPolicy(com.google.recaptchaenterprise.v1.FirewallPolicy value) { if (firewallPolicyBuilder_ == null) { @@ -622,15 +549,11 @@ public Builder setFirewallPolicy(com.google.recaptchaenterprise.v1.FirewallPolic return this; } /** - * - * *
      * Required. The policy to update.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFirewallPolicy( com.google.recaptchaenterprise.v1.FirewallPolicy.Builder builderForValue) { @@ -644,22 +567,17 @@ public Builder setFirewallPolicy( return this; } /** - * - * *
      * Required. The policy to update.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeFirewallPolicy(com.google.recaptchaenterprise.v1.FirewallPolicy value) { if (firewallPolicyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && firewallPolicy_ != null - && firewallPolicy_ - != com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + firewallPolicy_ != null && + firewallPolicy_ != com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance()) { getFirewallPolicyBuilder().mergeFrom(value); } else { firewallPolicy_ = value; @@ -672,15 +590,11 @@ public Builder mergeFirewallPolicy(com.google.recaptchaenterprise.v1.FirewallPol return this; } /** - * - * *
      * Required. The policy to update.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearFirewallPolicy() { bitField0_ = (bitField0_ & ~0x00000001); @@ -693,15 +607,11 @@ public Builder clearFirewallPolicy() { return this; } /** - * - * *
      * Required. The policy to update.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.recaptchaenterprise.v1.FirewallPolicy.Builder getFirewallPolicyBuilder() { bitField0_ |= 0x00000001; @@ -709,48 +619,36 @@ public com.google.recaptchaenterprise.v1.FirewallPolicy.Builder getFirewallPolic return getFirewallPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The policy to update.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPolicyOrBuilder() { if (firewallPolicyBuilder_ != null) { return firewallPolicyBuilder_.getMessageOrBuilder(); } else { - return firewallPolicy_ == null - ? com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() - : firewallPolicy_; + return firewallPolicy_ == null ? + com.google.recaptchaenterprise.v1.FirewallPolicy.getDefaultInstance() : firewallPolicy_; } } /** - * - * *
      * Required. The policy to update.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicy, - com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, - com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> + com.google.recaptchaenterprise.v1.FirewallPolicy, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder> getFirewallPolicyFieldBuilder() { if (firewallPolicyBuilder_ == null) { - firewallPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.FirewallPolicy, - com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, - com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder>( - getFirewallPolicy(), getParentForChildren(), isClean()); + firewallPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FirewallPolicy, com.google.recaptchaenterprise.v1.FirewallPolicy.Builder, com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder>( + getFirewallPolicy(), + getParentForChildren(), + isClean()); firewallPolicy_ = null; } return firewallPolicyBuilder_; @@ -758,58 +656,42 @@ public com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPoli private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. The mask to control which fields of the policy get updated. If
      * the mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Optional. The mask to control which fields of the policy get updated. If
      * the mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. The mask to control which fields of the policy get updated. If
      * the mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -825,17 +707,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. The mask to control which fields of the policy get updated. If
      * the mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -846,21 +726,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. The mask to control which fields of the policy get updated. If
      * the mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -873,15 +750,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. The mask to control which fields of the policy get updated. If
      * the mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -894,15 +768,12 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. The mask to control which fields of the policy get updated. If
      * the mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -910,55 +781,45 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The mask to control which fields of the policy get updated. If
      * the mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. The mask to control which fields of the policy get updated. If
      * the mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -968,13 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.UpdateFirewallPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.UpdateFirewallPolicyRequest) - private static final com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest(); } @@ -983,27 +843,27 @@ public static com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateFirewallPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFirewallPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1018,4 +878,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.recaptchaenterprise.v1.UpdateFirewallPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequestOrBuilder.java similarity index 57% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequestOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequestOrBuilder.java index d3d370999177..d2ae393fdc52 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequestOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateFirewallPolicyRequestOrBuilder.java @@ -1,107 +1,66 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface UpdateFirewallPolicyRequestOrBuilder - extends +public interface UpdateFirewallPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.UpdateFirewallPolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The policy to update.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the firewallPolicy field is set. */ boolean hasFirewallPolicy(); /** - * - * *
    * Required. The policy to update.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The firewallPolicy. */ com.google.recaptchaenterprise.v1.FirewallPolicy getFirewallPolicy(); /** - * - * *
    * Required. The policy to update.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.recaptchaenterprise.v1.FirewallPolicyOrBuilder getFirewallPolicyOrBuilder(); /** - * - * *
    * Optional. The mask to control which fields of the policy get updated. If
    * the mask is not present, all fields will be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. The mask to control which fields of the policy get updated. If
    * the mask is not present, all fields will be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. The mask to control which fields of the policy get updated. If
    * the mask is not present, all fields will be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequest.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequest.java similarity index 65% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequest.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequest.java index 7c188e738a0b..2fa18150854a 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequest.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequest.java @@ -1,78 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * The update key request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.UpdateKeyRequest} */ -public final class UpdateKeyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateKeyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.UpdateKeyRequest) UpdateKeyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateKeyRequest.newBuilder() to construct. private UpdateKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateKeyRequest() {} + private UpdateKeyRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateKeyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.UpdateKeyRequest.class, - com.google.recaptchaenterprise.v1.UpdateKeyRequest.Builder.class); + com.google.recaptchaenterprise.v1.UpdateKeyRequest.class, com.google.recaptchaenterprise.v1.UpdateKeyRequest.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private com.google.recaptchaenterprise.v1.Key key_; /** - * - * *
    * Required. The key to update.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the key field is set. */ @java.lang.Override @@ -80,16 +57,11 @@ public boolean hasKey() { return key_ != null; } /** - * - * *
    * Required. The key to update.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The key. */ @java.lang.Override @@ -97,15 +69,11 @@ public com.google.recaptchaenterprise.v1.Key getKey() { return key_ == null ? com.google.recaptchaenterprise.v1.Key.getDefaultInstance() : key_; } /** - * - * *
    * Required. The key to update.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeyOrBuilder() { @@ -115,16 +83,12 @@ public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeyOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. The mask to control which fields of the key get updated. If the
    * mask is not present, all fields will be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -132,16 +96,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. The mask to control which fields of the key get updated. If the
    * mask is not present, all fields will be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -149,15 +109,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. The mask to control which fields of the key get updated. If the
    * mask is not present, all fields will be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -165,7 +122,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +133,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (key_ != null) { output.writeMessage(1, getKey()); } @@ -194,10 +151,12 @@ public int getSerializedSize() { size = 0; if (key_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKey()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getKey()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -207,21 +166,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.UpdateKeyRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.UpdateKeyRequest other = - (com.google.recaptchaenterprise.v1.UpdateKeyRequest) obj; + com.google.recaptchaenterprise.v1.UpdateKeyRequest other = (com.google.recaptchaenterprise.v1.UpdateKeyRequest) obj; if (hasKey() != other.hasKey()) return false; if (hasKey()) { - if (!getKey().equals(other.getKey())) return false; + if (!getKey() + .equals(other.getKey())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -248,135 +208,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.UpdateKeyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.UpdateKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The update key request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.UpdateKeyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.UpdateKeyRequest) com.google.recaptchaenterprise.v1.UpdateKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.UpdateKeyRequest.class, - com.google.recaptchaenterprise.v1.UpdateKeyRequest.Builder.class); + com.google.recaptchaenterprise.v1.UpdateKeyRequest.class, com.google.recaptchaenterprise.v1.UpdateKeyRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.UpdateKeyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -395,9 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor; } @java.lang.Override @@ -416,11 +372,8 @@ public com.google.recaptchaenterprise.v1.UpdateKeyRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1.UpdateKeyRequest buildPartial() { - com.google.recaptchaenterprise.v1.UpdateKeyRequest result = - new com.google.recaptchaenterprise.v1.UpdateKeyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.UpdateKeyRequest result = new com.google.recaptchaenterprise.v1.UpdateKeyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -428,10 +381,14 @@ public com.google.recaptchaenterprise.v1.UpdateKeyRequest buildPartial() { private void buildPartial0(com.google.recaptchaenterprise.v1.UpdateKeyRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.key_ = keyBuilder_ == null ? key_ : keyBuilder_.build(); + result.key_ = keyBuilder_ == null + ? key_ + : keyBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -439,39 +396,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.UpdateKeyRequest re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.UpdateKeyRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1.UpdateKeyRequest) other); + return mergeFrom((com.google.recaptchaenterprise.v1.UpdateKeyRequest)other); } else { super.mergeFrom(other); return this; @@ -479,8 +435,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.UpdateKeyRequest other) { - if (other == com.google.recaptchaenterprise.v1.UpdateKeyRequest.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.UpdateKeyRequest.getDefaultInstance()) return this; if (other.hasKey()) { mergeKey(other.getKey()); } @@ -513,25 +468,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getKeyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getKeyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -541,42 +497,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.recaptchaenterprise.v1.Key key_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.Key, - com.google.recaptchaenterprise.v1.Key.Builder, - com.google.recaptchaenterprise.v1.KeyOrBuilder> - keyBuilder_; + com.google.recaptchaenterprise.v1.Key, com.google.recaptchaenterprise.v1.Key.Builder, com.google.recaptchaenterprise.v1.KeyOrBuilder> keyBuilder_; /** - * - * *
      * Required. The key to update.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the key field is set. */ public boolean hasKey() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The key to update.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The key. */ public com.google.recaptchaenterprise.v1.Key getKey() { @@ -587,15 +529,11 @@ public com.google.recaptchaenterprise.v1.Key getKey() { } } /** - * - * *
      * Required. The key to update.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setKey(com.google.recaptchaenterprise.v1.Key value) { if (keyBuilder_ == null) { @@ -611,17 +549,14 @@ public Builder setKey(com.google.recaptchaenterprise.v1.Key value) { return this; } /** - * - * *
      * Required. The key to update.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setKey(com.google.recaptchaenterprise.v1.Key.Builder builderForValue) { + public Builder setKey( + com.google.recaptchaenterprise.v1.Key.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); } else { @@ -632,21 +567,17 @@ public Builder setKey(com.google.recaptchaenterprise.v1.Key.Builder builderForVa return this; } /** - * - * *
      * Required. The key to update.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeKey(com.google.recaptchaenterprise.v1.Key value) { if (keyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && key_ != null - && key_ != com.google.recaptchaenterprise.v1.Key.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + key_ != null && + key_ != com.google.recaptchaenterprise.v1.Key.getDefaultInstance()) { getKeyBuilder().mergeFrom(value); } else { key_ = value; @@ -659,15 +590,11 @@ public Builder mergeKey(com.google.recaptchaenterprise.v1.Key value) { return this; } /** - * - * *
      * Required. The key to update.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); @@ -680,15 +607,11 @@ public Builder clearKey() { return this; } /** - * - * *
      * Required. The key to update.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.recaptchaenterprise.v1.Key.Builder getKeyBuilder() { bitField0_ |= 0x00000001; @@ -696,46 +619,36 @@ public com.google.recaptchaenterprise.v1.Key.Builder getKeyBuilder() { return getKeyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The key to update.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { - return key_ == null ? com.google.recaptchaenterprise.v1.Key.getDefaultInstance() : key_; + return key_ == null ? + com.google.recaptchaenterprise.v1.Key.getDefaultInstance() : key_; } } /** - * - * *
      * Required. The key to update.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.Key, - com.google.recaptchaenterprise.v1.Key.Builder, - com.google.recaptchaenterprise.v1.KeyOrBuilder> + com.google.recaptchaenterprise.v1.Key, com.google.recaptchaenterprise.v1.Key.Builder, com.google.recaptchaenterprise.v1.KeyOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { - keyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1.Key, - com.google.recaptchaenterprise.v1.Key.Builder, - com.google.recaptchaenterprise.v1.KeyOrBuilder>( - getKey(), getParentForChildren(), isClean()); + keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.Key, com.google.recaptchaenterprise.v1.Key.Builder, com.google.recaptchaenterprise.v1.KeyOrBuilder>( + getKey(), + getParentForChildren(), + isClean()); key_ = null; } return keyBuilder_; @@ -743,58 +656,42 @@ public com.google.recaptchaenterprise.v1.KeyOrBuilder getKeyOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. The mask to control which fields of the key get updated. If the
      * mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Optional. The mask to control which fields of the key get updated. If the
      * mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. The mask to control which fields of the key get updated. If the
      * mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -810,17 +707,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. The mask to control which fields of the key get updated. If the
      * mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -831,21 +726,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. The mask to control which fields of the key get updated. If the
      * mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -858,15 +750,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. The mask to control which fields of the key get updated. If the
      * mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -879,15 +768,12 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. The mask to control which fields of the key get updated. If the
      * mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -895,55 +781,45 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The mask to control which fields of the key get updated. If the
      * mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. The mask to control which fields of the key get updated. If the
      * mask is not present, all fields will be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -953,12 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.UpdateKeyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.UpdateKeyRequest) private static final com.google.recaptchaenterprise.v1.UpdateKeyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.UpdateKeyRequest(); } @@ -967,27 +843,27 @@ public static com.google.recaptchaenterprise.v1.UpdateKeyRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1002,4 +878,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.UpdateKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequestOrBuilder.java similarity index 57% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequestOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequestOrBuilder.java index ebe5d6dc9f6f..ffc63479d0ab 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequestOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/UpdateKeyRequestOrBuilder.java @@ -1,107 +1,66 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface UpdateKeyRequestOrBuilder - extends +public interface UpdateKeyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.UpdateKeyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The key to update.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the key field is set. */ boolean hasKey(); /** - * - * *
    * Required. The key to update.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The key. */ com.google.recaptchaenterprise.v1.Key getKey(); /** - * - * *
    * Required. The key to update.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.recaptchaenterprise.v1.KeyOrBuilder getKeyOrBuilder(); /** - * - * *
    * Optional. The mask to control which fields of the key get updated. If the
    * mask is not present, all fields will be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. The mask to control which fields of the key get updated. If the
    * mask is not present, all fields will be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. The mask to control which fields of the key get updated. If the
    * mask is not present, all fields will be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettings.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettings.java similarity index 64% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettings.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettings.java index ddd73cf573bc..1c46c727ab83 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettings.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettings.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * Settings specific to keys that can be used for WAF (Web Application
  * Firewall).
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.recaptchaenterprise.v1.WafSettings}
  */
-public final class WafSettings extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class WafSettings extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.WafSettings)
     WafSettingsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use WafSettings.newBuilder() to construct.
   private WafSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private WafSettings() {
     wafService_ = 0;
     wafFeature_ = 0;
@@ -45,28 +27,25 @@ private WafSettings() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new WafSettings();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-        .internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-        .internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_fieldAccessorTable
+    return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.recaptchaenterprise.v1.WafSettings.class,
-            com.google.recaptchaenterprise.v1.WafSettings.Builder.class);
+            com.google.recaptchaenterprise.v1.WafSettings.class, com.google.recaptchaenterprise.v1.WafSettings.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Supported WAF features. For more information, see
    * https://cloud.google.com/recaptcha-enterprise/docs/usecase#comparison_of_features.
@@ -74,10 +53,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature}
    */
-  public enum WafFeature implements com.google.protobuf.ProtocolMessageEnum {
+  public enum WafFeature
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Undefined feature.
      * 
@@ -86,8 +64,6 @@ public enum WafFeature implements com.google.protobuf.ProtocolMessageEnum { */ WAF_FEATURE_UNSPECIFIED(0), /** - * - * *
      * Redirects suspicious traffic to reCAPTCHA.
      * 
@@ -96,8 +72,6 @@ public enum WafFeature implements com.google.protobuf.ProtocolMessageEnum { */ CHALLENGE_PAGE(1), /** - * - * *
      * Use reCAPTCHA session-tokens to protect the whole user session on the
      * site's domain.
@@ -107,8 +81,6 @@ public enum WafFeature implements com.google.protobuf.ProtocolMessageEnum {
      */
     SESSION_TOKEN(2),
     /**
-     *
-     *
      * 
      * Use reCAPTCHA action-tokens to protect user actions.
      * 
@@ -117,8 +89,6 @@ public enum WafFeature implements com.google.protobuf.ProtocolMessageEnum { */ ACTION_TOKEN(3), /** - * - * *
      * Use reCAPTCHA WAF express protection to protect any content other than
      * web pages, like APIs and IoT devices.
@@ -131,8 +101,6 @@ public enum WafFeature implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Undefined feature.
      * 
@@ -141,8 +109,6 @@ public enum WafFeature implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WAF_FEATURE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Redirects suspicious traffic to reCAPTCHA.
      * 
@@ -151,8 +117,6 @@ public enum WafFeature implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHALLENGE_PAGE_VALUE = 1; /** - * - * *
      * Use reCAPTCHA session-tokens to protect the whole user session on the
      * site's domain.
@@ -162,8 +126,6 @@ public enum WafFeature implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SESSION_TOKEN_VALUE = 2;
     /**
-     *
-     *
      * 
      * Use reCAPTCHA action-tokens to protect user actions.
      * 
@@ -172,8 +134,6 @@ public enum WafFeature implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTION_TOKEN_VALUE = 3; /** - * - * *
      * Use reCAPTCHA WAF express protection to protect any content other than
      * web pages, like APIs and IoT devices.
@@ -183,6 +143,7 @@ public enum WafFeature implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int EXPRESS_VALUE = 5;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -207,53 +168,51 @@ public static WafFeature valueOf(int value) {
      */
     public static WafFeature forNumber(int value) {
       switch (value) {
-        case 0:
-          return WAF_FEATURE_UNSPECIFIED;
-        case 1:
-          return CHALLENGE_PAGE;
-        case 2:
-          return SESSION_TOKEN;
-        case 3:
-          return ACTION_TOKEN;
-        case 5:
-          return EXPRESS;
-        default:
-          return null;
+        case 0: return WAF_FEATURE_UNSPECIFIED;
+        case 1: return CHALLENGE_PAGE;
+        case 2: return SESSION_TOKEN;
+        case 3: return ACTION_TOKEN;
+        case 5: return EXPRESS;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        WafFeature> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public WafFeature findValueByNumber(int number) {
+              return WafFeature.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public WafFeature findValueByNumber(int number) {
-            return WafFeature.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.recaptchaenterprise.v1.WafSettings.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final WafFeature[] VALUES = values();
 
-    public static WafFeature valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static WafFeature valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -271,18 +230,15 @@ private WafFeature(int value) {
   }
 
   /**
-   *
-   *
    * 
    * Web Application Firewalls supported by reCAPTCHA Enterprise.
    * 
* * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.WafSettings.WafService} */ - public enum WafService implements com.google.protobuf.ProtocolMessageEnum { + public enum WafService + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Undefined WAF
      * 
@@ -291,8 +247,6 @@ public enum WafService implements com.google.protobuf.ProtocolMessageEnum { */ WAF_SERVICE_UNSPECIFIED(0), /** - * - * *
      * Cloud Armor
      * 
@@ -301,8 +255,6 @@ public enum WafService implements com.google.protobuf.ProtocolMessageEnum { */ CA(1), /** - * - * *
      * Fastly
      * 
@@ -314,8 +266,6 @@ public enum WafService implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Undefined WAF
      * 
@@ -324,8 +274,6 @@ public enum WafService implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WAF_SERVICE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Cloud Armor
      * 
@@ -334,8 +282,6 @@ public enum WafService implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CA_VALUE = 1; /** - * - * *
      * Fastly
      * 
@@ -344,6 +290,7 @@ public enum WafService implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FASTLY_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -368,49 +315,49 @@ public static WafService valueOf(int value) { */ public static WafService forNumber(int value) { switch (value) { - case 0: - return WAF_SERVICE_UNSPECIFIED; - case 1: - return CA; - case 3: - return FASTLY; - default: - return null; + case 0: return WAF_SERVICE_UNSPECIFIED; + case 1: return CA; + case 3: return FASTLY; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + WafService> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public WafService findValueByNumber(int number) { + return WafService.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public WafService findValueByNumber(int number) { - return WafService.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.recaptchaenterprise.v1.WafSettings.getDescriptor().getEnumTypes().get(1); } private static final WafService[] VALUES = values(); - public static WafService valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static WafService valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -430,87 +377,56 @@ private WafService(int value) { public static final int WAF_SERVICE_FIELD_NUMBER = 1; private int wafService_ = 0; /** - * - * *
    * Required. The WAF service that uses this key.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for wafService. */ - @java.lang.Override - public int getWafServiceValue() { + @java.lang.Override public int getWafServiceValue() { return wafService_; } /** - * - * *
    * Required. The WAF service that uses this key.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The wafService. */ - @java.lang.Override - public com.google.recaptchaenterprise.v1.WafSettings.WafService getWafService() { - com.google.recaptchaenterprise.v1.WafSettings.WafService result = - com.google.recaptchaenterprise.v1.WafSettings.WafService.forNumber(wafService_); - return result == null - ? com.google.recaptchaenterprise.v1.WafSettings.WafService.UNRECOGNIZED - : result; + @java.lang.Override public com.google.recaptchaenterprise.v1.WafSettings.WafService getWafService() { + com.google.recaptchaenterprise.v1.WafSettings.WafService result = com.google.recaptchaenterprise.v1.WafSettings.WafService.forNumber(wafService_); + return result == null ? com.google.recaptchaenterprise.v1.WafSettings.WafService.UNRECOGNIZED : result; } public static final int WAF_FEATURE_FIELD_NUMBER = 2; private int wafFeature_ = 0; /** - * - * *
    * Required. The WAF feature for which this key is enabled.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for wafFeature. */ - @java.lang.Override - public int getWafFeatureValue() { + @java.lang.Override public int getWafFeatureValue() { return wafFeature_; } /** - * - * *
    * Required. The WAF feature for which this key is enabled.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The wafFeature. */ - @java.lang.Override - public com.google.recaptchaenterprise.v1.WafSettings.WafFeature getWafFeature() { - com.google.recaptchaenterprise.v1.WafSettings.WafFeature result = - com.google.recaptchaenterprise.v1.WafSettings.WafFeature.forNumber(wafFeature_); - return result == null - ? com.google.recaptchaenterprise.v1.WafSettings.WafFeature.UNRECOGNIZED - : result; + @java.lang.Override public com.google.recaptchaenterprise.v1.WafSettings.WafFeature getWafFeature() { + com.google.recaptchaenterprise.v1.WafSettings.WafFeature result = com.google.recaptchaenterprise.v1.WafSettings.WafFeature.forNumber(wafFeature_); + return result == null ? com.google.recaptchaenterprise.v1.WafSettings.WafFeature.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -522,15 +438,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (wafService_ - != com.google.recaptchaenterprise.v1.WafSettings.WafService.WAF_SERVICE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (wafService_ != com.google.recaptchaenterprise.v1.WafSettings.WafService.WAF_SERVICE_UNSPECIFIED.getNumber()) { output.writeEnum(1, wafService_); } - if (wafFeature_ - != com.google.recaptchaenterprise.v1.WafSettings.WafFeature.WAF_FEATURE_UNSPECIFIED - .getNumber()) { + if (wafFeature_ != com.google.recaptchaenterprise.v1.WafSettings.WafFeature.WAF_FEATURE_UNSPECIFIED.getNumber()) { output.writeEnum(2, wafFeature_); } getUnknownFields().writeTo(output); @@ -542,15 +455,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (wafService_ - != com.google.recaptchaenterprise.v1.WafSettings.WafService.WAF_SERVICE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, wafService_); + if (wafService_ != com.google.recaptchaenterprise.v1.WafSettings.WafService.WAF_SERVICE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, wafService_); } - if (wafFeature_ - != com.google.recaptchaenterprise.v1.WafSettings.WafFeature.WAF_FEATURE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, wafFeature_); + if (wafFeature_ != com.google.recaptchaenterprise.v1.WafSettings.WafFeature.WAF_FEATURE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, wafFeature_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -560,13 +471,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.WafSettings)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.WafSettings other = - (com.google.recaptchaenterprise.v1.WafSettings) obj; + com.google.recaptchaenterprise.v1.WafSettings other = (com.google.recaptchaenterprise.v1.WafSettings) obj; if (wafService_ != other.wafService_) return false; if (wafFeature_ != other.wafFeature_) return false; @@ -590,104 +500,99 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.WafSettings parseFrom(java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.WafSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.WafSettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.WafSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.WafSettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.WafSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.WafSettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.WafSettings parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.WafSettings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.WafSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.WafSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.WafSettings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.WafSettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.WafSettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.WafSettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Settings specific to keys that can be used for WAF (Web Application
    * Firewall).
@@ -695,32 +600,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.recaptchaenterprise.v1.WafSettings}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.WafSettings)
       com.google.recaptchaenterprise.v1.WafSettingsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-          .internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-          .internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_fieldAccessorTable
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.recaptchaenterprise.v1.WafSettings.class,
-              com.google.recaptchaenterprise.v1.WafSettings.Builder.class);
+              com.google.recaptchaenterprise.v1.WafSettings.class, com.google.recaptchaenterprise.v1.WafSettings.Builder.class);
     }
 
     // Construct using com.google.recaptchaenterprise.v1.WafSettings.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -731,9 +637,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto
-          .internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor;
     }
 
     @java.lang.Override
@@ -752,11 +658,8 @@ public com.google.recaptchaenterprise.v1.WafSettings build() {
 
     @java.lang.Override
     public com.google.recaptchaenterprise.v1.WafSettings buildPartial() {
-      com.google.recaptchaenterprise.v1.WafSettings result =
-          new com.google.recaptchaenterprise.v1.WafSettings(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.recaptchaenterprise.v1.WafSettings result = new com.google.recaptchaenterprise.v1.WafSettings(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -775,39 +678,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.WafSettings result)
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.recaptchaenterprise.v1.WafSettings) {
-        return mergeFrom((com.google.recaptchaenterprise.v1.WafSettings) other);
+        return mergeFrom((com.google.recaptchaenterprise.v1.WafSettings)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -848,25 +750,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                wafService_ = input.readEnum();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 16:
-              {
-                wafFeature_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              wafService_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 16: {
+              wafFeature_ = input.readEnum();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -876,38 +775,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private int wafService_ = 0;
     /**
-     *
-     *
      * 
      * Required. The WAF service that uses this key.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for wafService. */ - @java.lang.Override - public int getWafServiceValue() { + @java.lang.Override public int getWafServiceValue() { return wafService_; } /** - * - * *
      * Required. The WAF service that uses this key.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for wafService to set. * @return This builder for chaining. */ @@ -918,37 +805,24 @@ public Builder setWafServiceValue(int value) { return this; } /** - * - * *
      * Required. The WAF service that uses this key.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The wafService. */ @java.lang.Override public com.google.recaptchaenterprise.v1.WafSettings.WafService getWafService() { - com.google.recaptchaenterprise.v1.WafSettings.WafService result = - com.google.recaptchaenterprise.v1.WafSettings.WafService.forNumber(wafService_); - return result == null - ? com.google.recaptchaenterprise.v1.WafSettings.WafService.UNRECOGNIZED - : result; + com.google.recaptchaenterprise.v1.WafSettings.WafService result = com.google.recaptchaenterprise.v1.WafSettings.WafService.forNumber(wafService_); + return result == null ? com.google.recaptchaenterprise.v1.WafSettings.WafService.UNRECOGNIZED : result; } /** - * - * *
      * Required. The WAF service that uses this key.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The wafService to set. * @return This builder for chaining. */ @@ -962,16 +836,11 @@ public Builder setWafService(com.google.recaptchaenterprise.v1.WafSettings.WafSe return this; } /** - * - * *
      * Required. The WAF service that uses this key.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearWafService() { @@ -983,33 +852,22 @@ public Builder clearWafService() { private int wafFeature_ = 0; /** - * - * *
      * Required. The WAF feature for which this key is enabled.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for wafFeature. */ - @java.lang.Override - public int getWafFeatureValue() { + @java.lang.Override public int getWafFeatureValue() { return wafFeature_; } /** - * - * *
      * Required. The WAF feature for which this key is enabled.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for wafFeature to set. * @return This builder for chaining. */ @@ -1020,37 +878,24 @@ public Builder setWafFeatureValue(int value) { return this; } /** - * - * *
      * Required. The WAF feature for which this key is enabled.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The wafFeature. */ @java.lang.Override public com.google.recaptchaenterprise.v1.WafSettings.WafFeature getWafFeature() { - com.google.recaptchaenterprise.v1.WafSettings.WafFeature result = - com.google.recaptchaenterprise.v1.WafSettings.WafFeature.forNumber(wafFeature_); - return result == null - ? com.google.recaptchaenterprise.v1.WafSettings.WafFeature.UNRECOGNIZED - : result; + com.google.recaptchaenterprise.v1.WafSettings.WafFeature result = com.google.recaptchaenterprise.v1.WafSettings.WafFeature.forNumber(wafFeature_); + return result == null ? com.google.recaptchaenterprise.v1.WafSettings.WafFeature.UNRECOGNIZED : result; } /** - * - * *
      * Required. The WAF feature for which this key is enabled.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The wafFeature to set. * @return This builder for chaining. */ @@ -1064,16 +909,11 @@ public Builder setWafFeature(com.google.recaptchaenterprise.v1.WafSettings.WafFe return this; } /** - * - * *
      * Required. The WAF feature for which this key is enabled.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearWafFeature() { @@ -1082,9 +922,9 @@ public Builder clearWafFeature() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1094,12 +934,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.WafSettings) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.WafSettings) private static final com.google.recaptchaenterprise.v1.WafSettings DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.WafSettings(); } @@ -1108,27 +948,27 @@ public static com.google.recaptchaenterprise.v1.WafSettings getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WafSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WafSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1143,4 +983,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.WafSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettingsOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettingsOrBuilder.java new file mode 100644 index 000000000000..ac15fba5ab1f --- /dev/null +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WafSettingsOrBuilder.java @@ -0,0 +1,47 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1; + +public interface WafSettingsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.WafSettings) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The WAF service that uses this key.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The enum numeric value on the wire for wafService. + */ + int getWafServiceValue(); + /** + *
+   * Required. The WAF service that uses this key.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The wafService. + */ + com.google.recaptchaenterprise.v1.WafSettings.WafService getWafService(); + + /** + *
+   * Required. The WAF feature for which this key is enabled.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The enum numeric value on the wire for wafFeature. + */ + int getWafFeatureValue(); + /** + *
+   * Required. The WAF feature for which this key is enabled.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The wafFeature. + */ + com.google.recaptchaenterprise.v1.WafSettings.WafFeature getWafFeature(); +} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettings.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettings.java similarity index 70% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettings.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettings.java index a4fcfcaf626b..c6dc0e03762f 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettings.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettings.java @@ -1,82 +1,61 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; /** - * - * *
  * Settings specific to keys that can be used by websites.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.WebKeySettings} */ -public final class WebKeySettings extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WebKeySettings extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.WebKeySettings) WebKeySettingsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WebKeySettings.newBuilder() to construct. private WebKeySettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WebKeySettings() { - allowedDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + allowedDomains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); integrationType_ = 0; challengeSecurityPreference_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WebKeySettings(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.WebKeySettings.class, - com.google.recaptchaenterprise.v1.WebKeySettings.Builder.class); + com.google.recaptchaenterprise.v1.WebKeySettings.class, com.google.recaptchaenterprise.v1.WebKeySettings.Builder.class); } /** - * - * *
    * Enum that represents the integration types for web keys.
    * 
* * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType} */ - public enum IntegrationType implements com.google.protobuf.ProtocolMessageEnum { + public enum IntegrationType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default type that indicates this enum hasn't been specified. This is not
      * a valid IntegrationType, one of the other types must be specified
@@ -87,8 +66,6 @@ public enum IntegrationType implements com.google.protobuf.ProtocolMessageEnum {
      */
     INTEGRATION_TYPE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * Only used to produce scores. It doesn't display the "I'm not a robot"
      * checkbox and never shows captcha challenges.
@@ -98,8 +75,6 @@ public enum IntegrationType implements com.google.protobuf.ProtocolMessageEnum {
      */
     SCORE(1),
     /**
-     *
-     *
      * 
      * Displays the "I'm not a robot" checkbox and may show captcha challenges
      * after it is checked.
@@ -109,8 +84,6 @@ public enum IntegrationType implements com.google.protobuf.ProtocolMessageEnum {
      */
     CHECKBOX(2),
     /**
-     *
-     *
      * 
      * Doesn't display the "I'm not a robot" checkbox, but may show captcha
      * challenges after risk analysis.
@@ -123,8 +96,6 @@ public enum IntegrationType implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default type that indicates this enum hasn't been specified. This is not
      * a valid IntegrationType, one of the other types must be specified
@@ -135,8 +106,6 @@ public enum IntegrationType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int INTEGRATION_TYPE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * Only used to produce scores. It doesn't display the "I'm not a robot"
      * checkbox and never shows captcha challenges.
@@ -146,8 +115,6 @@ public enum IntegrationType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SCORE_VALUE = 1;
     /**
-     *
-     *
      * 
      * Displays the "I'm not a robot" checkbox and may show captcha challenges
      * after it is checked.
@@ -157,8 +124,6 @@ public enum IntegrationType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CHECKBOX_VALUE = 2;
     /**
-     *
-     *
      * 
      * Doesn't display the "I'm not a robot" checkbox, but may show captcha
      * challenges after risk analysis.
@@ -168,6 +133,7 @@ public enum IntegrationType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int INVISIBLE_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -192,44 +158,40 @@ public static IntegrationType valueOf(int value) {
      */
     public static IntegrationType forNumber(int value) {
       switch (value) {
-        case 0:
-          return INTEGRATION_TYPE_UNSPECIFIED;
-        case 1:
-          return SCORE;
-        case 2:
-          return CHECKBOX;
-        case 3:
-          return INVISIBLE;
-        default:
-          return null;
+        case 0: return INTEGRATION_TYPE_UNSPECIFIED;
+        case 1: return SCORE;
+        case 2: return CHECKBOX;
+        case 3: return INVISIBLE;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        IntegrationType> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public IntegrationType findValueByNumber(int number) {
+              return IntegrationType.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public IntegrationType findValueByNumber(int number) {
-                return IntegrationType.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.recaptchaenterprise.v1.WebKeySettings.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -238,7 +200,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static IntegrationType valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -256,20 +219,16 @@ private IntegrationType(int value) {
   }
 
   /**
-   *
-   *
    * 
    * Enum that represents the possible challenge frequency and difficulty
    * configurations for a web key.
    * 
* - * Protobuf enum {@code - * google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference} + * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference} */ - public enum ChallengeSecurityPreference implements com.google.protobuf.ProtocolMessageEnum { + public enum ChallengeSecurityPreference + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default type that indicates this enum hasn't been specified.
      * 
@@ -278,8 +237,6 @@ public enum ChallengeSecurityPreference implements com.google.protobuf.ProtocolM */ CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED(0), /** - * - * *
      * Key tends to show fewer and easier challenges.
      * 
@@ -288,8 +245,6 @@ public enum ChallengeSecurityPreference implements com.google.protobuf.ProtocolM */ USABILITY(1), /** - * - * *
      * Key tends to show balanced (in amount and difficulty) challenges.
      * 
@@ -298,8 +253,6 @@ public enum ChallengeSecurityPreference implements com.google.protobuf.ProtocolM */ BALANCE(2), /** - * - * *
      * Key tends to show more and harder challenges.
      * 
@@ -311,8 +264,6 @@ public enum ChallengeSecurityPreference implements com.google.protobuf.ProtocolM ; /** - * - * *
      * Default type that indicates this enum hasn't been specified.
      * 
@@ -321,8 +272,6 @@ public enum ChallengeSecurityPreference implements com.google.protobuf.ProtocolM */ public static final int CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Key tends to show fewer and easier challenges.
      * 
@@ -331,8 +280,6 @@ public enum ChallengeSecurityPreference implements com.google.protobuf.ProtocolM */ public static final int USABILITY_VALUE = 1; /** - * - * *
      * Key tends to show balanced (in amount and difficulty) challenges.
      * 
@@ -341,8 +288,6 @@ public enum ChallengeSecurityPreference implements com.google.protobuf.ProtocolM */ public static final int BALANCE_VALUE = 2; /** - * - * *
      * Key tends to show more and harder challenges.
      * 
@@ -351,6 +296,7 @@ public enum ChallengeSecurityPreference implements com.google.protobuf.ProtocolM */ public static final int SECURITY_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -375,16 +321,11 @@ public static ChallengeSecurityPreference valueOf(int value) { */ public static ChallengeSecurityPreference forNumber(int value) { switch (value) { - case 0: - return CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED; - case 1: - return USABILITY; - case 2: - return BALANCE; - case 3: - return SECURITY; - default: - return null; + case 0: return CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED; + case 1: return USABILITY; + case 2: return BALANCE; + case 3: return SECURITY; + default: return null; } } @@ -392,28 +333,28 @@ public static ChallengeSecurityPreference forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + ChallengeSecurityPreference> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ChallengeSecurityPreference findValueByNumber(int number) { + return ChallengeSecurityPreference.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ChallengeSecurityPreference findValueByNumber(int number) { - return ChallengeSecurityPreference.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.recaptchaenterprise.v1.WebKeySettings.getDescriptor().getEnumTypes().get(1); } @@ -422,7 +363,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static ChallengeSecurityPreference valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -442,14 +384,11 @@ private ChallengeSecurityPreference(int value) { public static final int ALLOW_ALL_DOMAINS_FIELD_NUMBER = 3; private boolean allowAllDomains_ = false; /** - * - * *
    * Optional. If set to true, it means allowed_domains will not be enforced.
    * 
* * bool allow_all_domains = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowAllDomains. */ @java.lang.Override @@ -458,13 +397,10 @@ public boolean getAllowAllDomains() { } public static final int ALLOWED_DOMAINS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList allowedDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. Domains or subdomains of websites allowed to use the key. All
    * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -473,15 +409,13 @@ public boolean getAllowAllDomains() {
    * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the allowedDomains. */ - public com.google.protobuf.ProtocolStringList getAllowedDomainsList() { + public com.google.protobuf.ProtocolStringList + getAllowedDomainsList() { return allowedDomains_; } /** - * - * *
    * Optional. Domains or subdomains of websites allowed to use the key. All
    * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -490,15 +424,12 @@ public com.google.protobuf.ProtocolStringList getAllowedDomainsList() {
    * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of allowedDomains. */ public int getAllowedDomainsCount() { return allowedDomains_.size(); } /** - * - * *
    * Optional. Domains or subdomains of websites allowed to use the key. All
    * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -507,7 +438,6 @@ public int getAllowedDomainsCount() {
    * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The allowedDomains at the given index. */ @@ -515,8 +445,6 @@ public java.lang.String getAllowedDomains(int index) { return allowedDomains_.get(index); } /** - * - * *
    * Optional. Domains or subdomains of websites allowed to use the key. All
    * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -525,26 +453,23 @@ public java.lang.String getAllowedDomains(int index) {
    * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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) { + public com.google.protobuf.ByteString + getAllowedDomainsBytes(int index) { return allowedDomains_.getByteString(index); } public static final int ALLOW_AMP_TRAFFIC_FIELD_NUMBER = 2; private boolean allowAmpTraffic_ = false; /** - * - * *
    * Optional. If set to true, the key can be used on AMP (Accelerated Mobile
    * Pages) websites. This is supported only for the SCORE integration type.
    * 
* * bool allow_amp_traffic = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowAmpTraffic. */ @java.lang.Override @@ -555,94 +480,60 @@ public boolean getAllowAmpTraffic() { public static final int INTEGRATION_TYPE_FIELD_NUMBER = 4; private int integrationType_ = 0; /** - * - * *
    * Required. Describes how this key is integrated with the website.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for integrationType. */ - @java.lang.Override - public int getIntegrationTypeValue() { + @java.lang.Override public int getIntegrationTypeValue() { return integrationType_; } /** - * - * *
    * Required. Describes how this key is integrated with the website.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The integrationType. */ - @java.lang.Override - public com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType getIntegrationType() { - com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType result = - com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType.forNumber( - integrationType_); - return result == null - ? com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType getIntegrationType() { + com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType result = com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType.forNumber(integrationType_); + return result == null ? com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType.UNRECOGNIZED : result; } public static final int CHALLENGE_SECURITY_PREFERENCE_FIELD_NUMBER = 5; private int challengeSecurityPreference_ = 0; /** - * - * *
    * Optional. Settings for the frequency and difficulty at which this key
    * triggers captcha challenges. This should only be specified for
    * IntegrationTypes CHECKBOX and INVISIBLE.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for challengeSecurityPreference. */ - @java.lang.Override - public int getChallengeSecurityPreferenceValue() { + @java.lang.Override public int getChallengeSecurityPreferenceValue() { return challengeSecurityPreference_; } /** - * - * *
    * Optional. Settings for the frequency and difficulty at which this key
    * triggers captcha challenges. This should only be specified for
    * IntegrationTypes CHECKBOX and INVISIBLE.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The challengeSecurityPreference. */ - @java.lang.Override - public com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference - getChallengeSecurityPreference() { - com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference result = - com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference.forNumber( - challengeSecurityPreference_); - return result == null - ? com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference.UNRECOGNIZED - : result; + @java.lang.Override public com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference getChallengeSecurityPreference() { + com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference result = com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference.forNumber(challengeSecurityPreference_); + return result == null ? com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -654,7 +545,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < allowedDomains_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, allowedDomains_.getRaw(i)); } @@ -664,16 +556,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (allowAllDomains_ != false) { output.writeBool(3, allowAllDomains_); } - if (integrationType_ - != com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType - .INTEGRATION_TYPE_UNSPECIFIED - .getNumber()) { + if (integrationType_ != com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType.INTEGRATION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, integrationType_); } - if (challengeSecurityPreference_ - != com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference - .CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED - .getNumber()) { + if (challengeSecurityPreference_ != com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference.CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED.getNumber()) { output.writeEnum(5, challengeSecurityPreference_); } getUnknownFields().writeTo(output); @@ -694,23 +580,20 @@ public int getSerializedSize() { size += 1 * getAllowedDomainsList().size(); } if (allowAmpTraffic_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, allowAmpTraffic_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, allowAmpTraffic_); } if (allowAllDomains_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, allowAllDomains_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, allowAllDomains_); } - if (integrationType_ - != com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType - .INTEGRATION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, integrationType_); + if (integrationType_ != com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType.INTEGRATION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, integrationType_); } - if (challengeSecurityPreference_ - != com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference - .CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED - .getNumber()) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(5, challengeSecurityPreference_); + if (challengeSecurityPreference_ != com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference.CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, challengeSecurityPreference_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -720,17 +603,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1.WebKeySettings)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1.WebKeySettings other = - (com.google.recaptchaenterprise.v1.WebKeySettings) obj; + com.google.recaptchaenterprise.v1.WebKeySettings other = (com.google.recaptchaenterprise.v1.WebKeySettings) obj; - if (getAllowAllDomains() != other.getAllowAllDomains()) return false; - if (!getAllowedDomainsList().equals(other.getAllowedDomainsList())) return false; - if (getAllowAmpTraffic() != other.getAllowAmpTraffic()) return false; + if (getAllowAllDomains() + != other.getAllowAllDomains()) return false; + if (!getAllowedDomainsList() + .equals(other.getAllowedDomainsList())) return false; + if (getAllowAmpTraffic() + != other.getAllowAmpTraffic()) return false; if (integrationType_ != other.integrationType_) return false; if (challengeSecurityPreference_ != other.challengeSecurityPreference_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -745,13 +630,15 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ALLOW_ALL_DOMAINS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowAllDomains()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowAllDomains()); if (getAllowedDomainsCount() > 0) { hash = (37 * hash) + ALLOWED_DOMAINS_FIELD_NUMBER; hash = (53 * hash) + getAllowedDomainsList().hashCode(); } hash = (37 * hash) + ALLOW_AMP_TRAFFIC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowAmpTraffic()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowAmpTraffic()); hash = (37 * hash) + INTEGRATION_TYPE_FIELD_NUMBER; hash = (53 * hash) + integrationType_; hash = (37 * hash) + CHALLENGE_SECURITY_PREFERENCE_FIELD_NUMBER; @@ -761,142 +648,139 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1.WebKeySettings parseFrom(java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1.WebKeySettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.WebKeySettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.WebKeySettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.WebKeySettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.WebKeySettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1.WebKeySettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1.WebKeySettings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.WebKeySettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.WebKeySettings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.WebKeySettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1.WebKeySettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1.WebKeySettings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1.WebKeySettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1.WebKeySettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1.WebKeySettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Settings specific to keys that can be used by websites.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1.WebKeySettings} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.WebKeySettings) com.google.recaptchaenterprise.v1.WebKeySettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_fieldAccessorTable + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1.WebKeySettings.class, - com.google.recaptchaenterprise.v1.WebKeySettings.Builder.class); + com.google.recaptchaenterprise.v1.WebKeySettings.class, com.google.recaptchaenterprise.v1.WebKeySettings.Builder.class); } // Construct using com.google.recaptchaenterprise.v1.WebKeySettings.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; allowAllDomains_ = false; - allowedDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + allowedDomains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); allowAmpTraffic_ = false; integrationType_ = 0; challengeSecurityPreference_ = 0; @@ -904,9 +788,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor; } @java.lang.Override @@ -925,11 +809,8 @@ public com.google.recaptchaenterprise.v1.WebKeySettings build() { @java.lang.Override public com.google.recaptchaenterprise.v1.WebKeySettings buildPartial() { - com.google.recaptchaenterprise.v1.WebKeySettings result = - new com.google.recaptchaenterprise.v1.WebKeySettings(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1.WebKeySettings result = new com.google.recaptchaenterprise.v1.WebKeySettings(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -958,39 +839,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.WebKeySettings resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1.WebKeySettings) { - return mergeFrom((com.google.recaptchaenterprise.v1.WebKeySettings) other); + return mergeFrom((com.google.recaptchaenterprise.v1.WebKeySettings)other); } else { super.mergeFrom(other); return this; @@ -998,8 +878,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1.WebKeySettings other) { - if (other == com.google.recaptchaenterprise.v1.WebKeySettings.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1.WebKeySettings.getDefaultInstance()) return this; if (other.getAllowAllDomains() != false) { setAllowAllDomains(other.getAllowAllDomains()); } @@ -1048,44 +927,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureAllowedDomainsIsMutable(); - allowedDomains_.add(s); - break; - } // case 10 - case 16: - { - allowAmpTraffic_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 16 - case 24: - { - allowAllDomains_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 24 - case 32: - { - integrationType_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - challengeSecurityPreference_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedDomainsIsMutable(); + allowedDomains_.add(s); + break; + } // case 10 + case 16: { + allowAmpTraffic_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 24: { + allowAllDomains_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 24 + case 32: { + integrationType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + challengeSecurityPreference_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1095,19 +968,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean allowAllDomains_; + private boolean allowAllDomains_ ; /** - * - * *
      * Optional. If set to true, it means allowed_domains will not be enforced.
      * 
* * bool allow_all_domains = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowAllDomains. */ @java.lang.Override @@ -1115,14 +984,11 @@ public boolean getAllowAllDomains() { return allowAllDomains_; } /** - * - * *
      * Optional. If set to true, it means allowed_domains will not be enforced.
      * 
* * bool allow_all_domains = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The allowAllDomains to set. * @return This builder for chaining. */ @@ -1134,14 +1000,11 @@ public Builder setAllowAllDomains(boolean value) { return this; } /** - * - * *
      * Optional. If set to true, it means allowed_domains will not be enforced.
      * 
* * bool allow_all_domains = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAllowAllDomains() { @@ -1153,7 +1016,6 @@ public Builder clearAllowAllDomains() { private com.google.protobuf.LazyStringArrayList allowedDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureAllowedDomainsIsMutable() { if (!allowedDomains_.isModifiable()) { allowedDomains_ = new com.google.protobuf.LazyStringArrayList(allowedDomains_); @@ -1161,8 +1023,6 @@ private void ensureAllowedDomainsIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
      * Optional. Domains or subdomains of websites allowed to use the key. All
      * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -1171,16 +1031,14 @@ private void ensureAllowedDomainsIsMutable() {
      * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the allowedDomains. */ - public com.google.protobuf.ProtocolStringList getAllowedDomainsList() { + public com.google.protobuf.ProtocolStringList + getAllowedDomainsList() { allowedDomains_.makeImmutable(); return allowedDomains_; } /** - * - * *
      * Optional. Domains or subdomains of websites allowed to use the key. All
      * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -1189,15 +1047,12 @@ public com.google.protobuf.ProtocolStringList getAllowedDomainsList() {
      * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of allowedDomains. */ public int getAllowedDomainsCount() { return allowedDomains_.size(); } /** - * - * *
      * Optional. Domains or subdomains of websites allowed to use the key. All
      * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -1206,7 +1061,6 @@ public int getAllowedDomainsCount() {
      * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The allowedDomains at the given index. */ @@ -1214,8 +1068,6 @@ public java.lang.String getAllowedDomains(int index) { return allowedDomains_.get(index); } /** - * - * *
      * Optional. Domains or subdomains of websites allowed to use the key. All
      * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -1224,16 +1076,14 @@ public java.lang.String getAllowedDomains(int index) {
      * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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) { + public com.google.protobuf.ByteString + getAllowedDomainsBytes(int index) { return allowedDomains_.getByteString(index); } /** - * - * *
      * Optional. Domains or subdomains of websites allowed to use the key. All
      * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -1242,15 +1092,13 @@ public com.google.protobuf.ByteString getAllowedDomainsBytes(int index) {
      * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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) { - throw new NullPointerException(); - } + public Builder setAllowedDomains( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAllowedDomainsIsMutable(); allowedDomains_.set(index, value); bitField0_ |= 0x00000002; @@ -1258,8 +1106,6 @@ public Builder setAllowedDomains(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. Domains or subdomains of websites allowed to use the key. All
      * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -1268,14 +1114,12 @@ public Builder setAllowedDomains(int index, java.lang.String value) {
      * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The allowedDomains to add. * @return This builder for chaining. */ - public Builder addAllowedDomains(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAllowedDomains( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAllowedDomainsIsMutable(); allowedDomains_.add(value); bitField0_ |= 0x00000002; @@ -1283,8 +1127,6 @@ public Builder addAllowedDomains(java.lang.String value) { return this; } /** - * - * *
      * Optional. Domains or subdomains of websites allowed to use the key. All
      * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -1293,20 +1135,19 @@ public Builder addAllowedDomains(java.lang.String value) {
      * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The allowedDomains to add. * @return This builder for chaining. */ - public Builder addAllAllowedDomains(java.lang.Iterable values) { + public Builder addAllAllowedDomains( + java.lang.Iterable values) { ensureAllowedDomainsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedDomains_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowedDomains_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Domains or subdomains of websites allowed to use the key. All
      * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -1315,19 +1156,16 @@ public Builder addAllAllowedDomains(java.lang.Iterable values)
      * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAllowedDomains() { - allowedDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + allowedDomains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
      * Optional. Domains or subdomains of websites allowed to use the key. All
      * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -1336,14 +1174,12 @@ public Builder clearAllowedDomains() {
      * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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) { - throw new NullPointerException(); - } + public Builder addAllowedDomainsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAllowedDomainsIsMutable(); allowedDomains_.add(value); @@ -1352,17 +1188,14 @@ public Builder addAllowedDomainsBytes(com.google.protobuf.ByteString value) { return this; } - private boolean allowAmpTraffic_; + private boolean allowAmpTraffic_ ; /** - * - * *
      * Optional. If set to true, the key can be used on AMP (Accelerated Mobile
      * Pages) websites. This is supported only for the SCORE integration type.
      * 
* * bool allow_amp_traffic = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowAmpTraffic. */ @java.lang.Override @@ -1370,15 +1203,12 @@ public boolean getAllowAmpTraffic() { return allowAmpTraffic_; } /** - * - * *
      * Optional. If set to true, the key can be used on AMP (Accelerated Mobile
      * Pages) websites. This is supported only for the SCORE integration type.
      * 
* * bool allow_amp_traffic = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The allowAmpTraffic to set. * @return This builder for chaining. */ @@ -1390,15 +1220,12 @@ public Builder setAllowAmpTraffic(boolean value) { return this; } /** - * - * *
      * Optional. If set to true, the key can be used on AMP (Accelerated Mobile
      * Pages) websites. This is supported only for the SCORE integration type.
      * 
* * bool allow_amp_traffic = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAllowAmpTraffic() { @@ -1410,33 +1237,22 @@ public Builder clearAllowAmpTraffic() { private int integrationType_ = 0; /** - * - * *
      * Required. Describes how this key is integrated with the website.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for integrationType. */ - @java.lang.Override - public int getIntegrationTypeValue() { + @java.lang.Override public int getIntegrationTypeValue() { return integrationType_; } /** - * - * *
      * Required. Describes how this key is integrated with the website.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.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. */ @@ -1447,43 +1263,28 @@ public Builder setIntegrationTypeValue(int value) { return this; } /** - * - * *
      * Required. Describes how this key is integrated with the website.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The integrationType. */ @java.lang.Override public com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType getIntegrationType() { - com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType result = - com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType.forNumber( - integrationType_); - return result == null - ? com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType.UNRECOGNIZED - : result; + com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType result = com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType.forNumber(integrationType_); + return result == null ? com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType.UNRECOGNIZED : result; } /** - * - * *
      * Required. Describes how this key is integrated with the website.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.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.v1.WebKeySettings.IntegrationType value) { + public Builder setIntegrationType(com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType value) { if (value == null) { throw new NullPointerException(); } @@ -1493,16 +1294,11 @@ public Builder setIntegrationType( return this; } /** - * - * *
      * Required. Describes how this key is integrated with the website.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearIntegrationType() { @@ -1514,37 +1310,26 @@ public Builder clearIntegrationType() { private int challengeSecurityPreference_ = 0; /** - * - * *
      * Optional. Settings for the frequency and difficulty at which this key
      * triggers captcha challenges. This should only be specified for
      * IntegrationTypes CHECKBOX and INVISIBLE.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for challengeSecurityPreference. */ - @java.lang.Override - public int getChallengeSecurityPreferenceValue() { + @java.lang.Override public int getChallengeSecurityPreferenceValue() { return challengeSecurityPreference_; } /** - * - * *
      * Optional. Settings for the frequency and difficulty at which this key
      * triggers captcha challenges. This should only be specified for
      * IntegrationTypes CHECKBOX and INVISIBLE.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for challengeSecurityPreference to set. * @return This builder for chaining. */ @@ -1555,49 +1340,32 @@ public Builder setChallengeSecurityPreferenceValue(int value) { return this; } /** - * - * *
      * Optional. Settings for the frequency and difficulty at which this key
      * triggers captcha challenges. This should only be specified for
      * IntegrationTypes CHECKBOX and INVISIBLE.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The challengeSecurityPreference. */ @java.lang.Override - public com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference - getChallengeSecurityPreference() { - com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference result = - com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference.forNumber( - challengeSecurityPreference_); - return result == null - ? com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference - .UNRECOGNIZED - : result; + public com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference getChallengeSecurityPreference() { + com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference result = com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference.forNumber(challengeSecurityPreference_); + return result == null ? com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Settings for the frequency and difficulty at which this key
      * triggers captcha challenges. This should only be specified for
      * IntegrationTypes CHECKBOX and INVISIBLE.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param value The challengeSecurityPreference to set. * @return This builder for chaining. */ - public Builder setChallengeSecurityPreference( - com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference value) { + public Builder setChallengeSecurityPreference(com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference value) { if (value == null) { throw new NullPointerException(); } @@ -1607,18 +1375,13 @@ public Builder setChallengeSecurityPreference( return this; } /** - * - * *
      * Optional. Settings for the frequency and difficulty at which this key
      * triggers captcha challenges. This should only be specified for
      * IntegrationTypes CHECKBOX and INVISIBLE.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearChallengeSecurityPreference() { @@ -1627,9 +1390,9 @@ public Builder clearChallengeSecurityPreference() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1639,12 +1402,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.WebKeySettings) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.WebKeySettings) private static final com.google.recaptchaenterprise.v1.WebKeySettings DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.WebKeySettings(); } @@ -1653,27 +1416,27 @@ public static com.google.recaptchaenterprise.v1.WebKeySettings getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebKeySettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebKeySettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1688,4 +1451,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1.WebKeySettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettingsOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettingsOrBuilder.java similarity index 71% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettingsOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettingsOrBuilder.java index 681abafb5204..f617d91caf0a 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettingsOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/WebKeySettingsOrBuilder.java @@ -1,44 +1,23 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1; -public interface WebKeySettingsOrBuilder - extends +public interface WebKeySettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.WebKeySettings) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. If set to true, it means allowed_domains will not be enforced.
    * 
* * bool allow_all_domains = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowAllDomains. */ boolean getAllowAllDomains(); /** - * - * *
    * Optional. Domains or subdomains of websites allowed to use the key. All
    * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -47,13 +26,11 @@ public interface WebKeySettingsOrBuilder
    * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the allowedDomains. */ - java.util.List getAllowedDomainsList(); + java.util.List + getAllowedDomainsList(); /** - * - * *
    * Optional. Domains or subdomains of websites allowed to use the key. All
    * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -62,13 +39,10 @@ public interface WebKeySettingsOrBuilder
    * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of allowedDomains. */ int getAllowedDomainsCount(); /** - * - * *
    * Optional. Domains or subdomains of websites allowed to use the key. All
    * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -77,14 +51,11 @@ public interface WebKeySettingsOrBuilder
    * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The allowedDomains at the given index. */ java.lang.String getAllowedDomains(int index); /** - * - * *
    * Optional. Domains or subdomains of websites allowed to use the key. All
    * subdomains of an allowed domain are automatically allowed. A valid domain
@@ -93,86 +64,62 @@ public interface WebKeySettingsOrBuilder
    * 
* * repeated string allowed_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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); + com.google.protobuf.ByteString + getAllowedDomainsBytes(int index); /** - * - * *
    * Optional. If set to true, the key can be used on AMP (Accelerated Mobile
    * Pages) websites. This is supported only for the SCORE integration type.
    * 
* * bool allow_amp_traffic = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowAmpTraffic. */ boolean getAllowAmpTraffic(); /** - * - * *
    * Required. Describes how this key is integrated with the website.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for integrationType. */ int getIntegrationTypeValue(); /** - * - * *
    * Required. Describes how this key is integrated with the website.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.IntegrationType integration_type = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The integrationType. */ com.google.recaptchaenterprise.v1.WebKeySettings.IntegrationType getIntegrationType(); /** - * - * *
    * Optional. Settings for the frequency and difficulty at which this key
    * triggers captcha challenges. This should only be specified for
    * IntegrationTypes CHECKBOX and INVISIBLE.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for challengeSecurityPreference. */ int getChallengeSecurityPreferenceValue(); /** - * - * *
    * Optional. Settings for the frequency and difficulty at which this key
    * triggers captcha challenges. This should only be specified for
    * IntegrationTypes CHECKBOX and INVISIBLE.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference challenge_security_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The challengeSecurityPreference. */ - com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference - getChallengeSecurityPreference(); + com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference getChallengeSecurityPreference(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/proto/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto b/owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/proto/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto similarity index 100% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/proto/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto rename to owl-bot-staging/java-recaptchaenterprise/v1/proto-google-cloud-recaptchaenterprise-v1/src/main/proto/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/AsyncAnnotateAssessment.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/AsyncAnnotateAssessment.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/AsyncAnnotateAssessment.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/AsyncAnnotateAssessment.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessment.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessment.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessment.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessment.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/create/SyncCreateSetEndpoint.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/AsyncCreateAssessment.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/AsyncCreateAssessment.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/AsyncCreateAssessment.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/AsyncCreateAssessment.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessment.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessment.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessment.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessment.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessmentProjectnameAssessment.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessmentProjectnameAssessment.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessmentProjectnameAssessment.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessmentProjectnameAssessment.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessmentStringAssessment.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessmentStringAssessment.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessmentStringAssessment.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createassessment/SyncCreateAssessmentStringAssessment.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/AsyncCreateFirewallPolicy.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/AsyncCreateFirewallPolicy.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/AsyncCreateFirewallPolicy.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/AsyncCreateFirewallPolicy.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicy.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicy.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicy.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicy.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicyProjectnameFirewallpolicy.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicyProjectnameFirewallpolicy.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicyProjectnameFirewallpolicy.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicyProjectnameFirewallpolicy.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicyStringFirewallpolicy.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicyStringFirewallpolicy.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicyStringFirewallpolicy.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createfirewallpolicy/SyncCreateFirewallPolicyStringFirewallpolicy.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/AsyncCreateKey.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/AsyncCreateKey.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/AsyncCreateKey.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/AsyncCreateKey.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKey.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKey.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKey.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKey.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKeyProjectnameKey.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKeyProjectnameKey.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKeyProjectnameKey.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKeyProjectnameKey.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKeyStringKey.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKeyStringKey.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKeyStringKey.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/createkey/SyncCreateKeyStringKey.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/AsyncDeleteFirewallPolicy.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/AsyncDeleteFirewallPolicy.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/AsyncDeleteFirewallPolicy.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/AsyncDeleteFirewallPolicy.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicy.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicy.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicy.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicy.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicyFirewallpolicyname.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicyFirewallpolicyname.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicyFirewallpolicyname.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicyFirewallpolicyname.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicyString.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicyString.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicyString.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletefirewallpolicy/SyncDeleteFirewallPolicyString.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/AsyncDeleteKey.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/AsyncDeleteKey.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/AsyncDeleteKey.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/AsyncDeleteKey.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKey.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKey.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKey.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKey.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKeyKeyname.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKeyKeyname.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKeyKeyname.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKeyKeyname.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKeyString.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKeyString.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKeyString.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/deletekey/SyncDeleteKeyString.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/AsyncGetFirewallPolicy.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/AsyncGetFirewallPolicy.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/AsyncGetFirewallPolicy.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/AsyncGetFirewallPolicy.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicy.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicy.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicy.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicy.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicyFirewallpolicyname.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicyFirewallpolicyname.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicyFirewallpolicyname.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicyFirewallpolicyname.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicyString.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicyString.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicyString.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getfirewallpolicy/SyncGetFirewallPolicyString.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/AsyncGetKey.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/AsyncGetKey.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/AsyncGetKey.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/AsyncGetKey.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKey.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKey.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKey.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKey.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKeyKeyname.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKeyKeyname.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKeyKeyname.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKeyKeyname.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKeyString.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKeyString.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKeyString.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getkey/SyncGetKeyString.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/AsyncGetMetrics.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/AsyncGetMetrics.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/AsyncGetMetrics.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/AsyncGetMetrics.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetrics.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetrics.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetrics.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetrics.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetricsMetricsname.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetricsMetricsname.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetricsMetricsname.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetricsMetricsname.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetricsString.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetricsString.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetricsString.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/getmetrics/SyncGetMetricsString.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/AsyncListFirewallPolicies.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/AsyncListFirewallPolicies.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/AsyncListFirewallPolicies.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/AsyncListFirewallPolicies.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/AsyncListFirewallPoliciesPaged.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/AsyncListFirewallPoliciesPaged.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/AsyncListFirewallPoliciesPaged.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/AsyncListFirewallPoliciesPaged.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPolicies.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPolicies.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPolicies.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPolicies.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPoliciesProjectname.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPoliciesProjectname.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPoliciesProjectname.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPoliciesProjectname.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPoliciesString.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPoliciesString.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPoliciesString.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listfirewallpolicies/SyncListFirewallPoliciesString.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/AsyncListKeys.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/AsyncListKeys.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/AsyncListKeys.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/AsyncListKeys.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/AsyncListKeysPaged.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/AsyncListKeysPaged.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/AsyncListKeysPaged.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/AsyncListKeysPaged.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeys.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeys.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeys.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeys.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeysProjectname.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeysProjectname.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeysProjectname.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeysProjectname.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeysString.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeysString.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeysString.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listkeys/SyncListKeysString.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMemberships.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMemberships.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMemberships.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMemberships.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMembershipsPaged.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMembershipsPaged.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMembershipsPaged.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMembershipsPaged.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMemberships.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMemberships.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMemberships.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMemberships.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsRelatedaccountgroupname.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsRelatedaccountgroupname.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsRelatedaccountgroupname.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsRelatedaccountgroupname.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsString.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsString.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsString.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsString.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/AsyncListRelatedAccountGroups.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/AsyncListRelatedAccountGroups.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/AsyncListRelatedAccountGroups.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/AsyncListRelatedAccountGroups.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/AsyncListRelatedAccountGroupsPaged.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/AsyncListRelatedAccountGroupsPaged.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/AsyncListRelatedAccountGroupsPaged.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/AsyncListRelatedAccountGroupsPaged.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroups.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroups.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroups.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroups.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroupsProjectname.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroupsProjectname.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroupsProjectname.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroupsProjectname.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroupsString.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroupsString.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroupsString.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/listrelatedaccountgroups/SyncListRelatedAccountGroupsString.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/migratekey/AsyncMigrateKey.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/migratekey/AsyncMigrateKey.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/migratekey/AsyncMigrateKey.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/migratekey/AsyncMigrateKey.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/migratekey/SyncMigrateKey.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/migratekey/SyncMigrateKey.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/migratekey/SyncMigrateKey.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/migratekey/SyncMigrateKey.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/AsyncRetrieveLegacySecretKey.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/AsyncRetrieveLegacySecretKey.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/AsyncRetrieveLegacySecretKey.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/AsyncRetrieveLegacySecretKey.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKey.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKey.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKey.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKey.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKeyKeyname.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKeyKeyname.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKeyKeyname.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKeyKeyname.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKeyString.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKeyString.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKeyString.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/retrievelegacysecretkey/SyncRetrieveLegacySecretKeyString.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMemberships.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMemberships.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMemberships.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMemberships.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMembershipsPaged.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMembershipsPaged.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMembershipsPaged.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMembershipsPaged.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMemberships.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMemberships.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMemberships.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMemberships.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsRelatedaccountgroupnameBytestring.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsRelatedaccountgroupnameBytestring.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsRelatedaccountgroupnameBytestring.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsRelatedaccountgroupnameBytestring.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsStringBytestring.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsStringBytestring.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsStringBytestring.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsStringBytestring.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/AsyncUpdateFirewallPolicy.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/AsyncUpdateFirewallPolicy.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/AsyncUpdateFirewallPolicy.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/AsyncUpdateFirewallPolicy.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/SyncUpdateFirewallPolicy.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/SyncUpdateFirewallPolicy.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/SyncUpdateFirewallPolicy.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/SyncUpdateFirewallPolicy.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/SyncUpdateFirewallPolicyFirewallpolicyFieldmask.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/SyncUpdateFirewallPolicyFirewallpolicyFieldmask.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/SyncUpdateFirewallPolicyFirewallpolicyFieldmask.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatefirewallpolicy/SyncUpdateFirewallPolicyFirewallpolicyFieldmask.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/AsyncUpdateKey.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/AsyncUpdateKey.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/AsyncUpdateKey.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/AsyncUpdateKey.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/SyncUpdateKey.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/SyncUpdateKey.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/SyncUpdateKey.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/SyncUpdateKey.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/SyncUpdateKeyKeyFieldmask.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/SyncUpdateKeyKeyFieldmask.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/SyncUpdateKeyKeyFieldmask.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservice/updatekey/SyncUpdateKeyKeyFieldmask.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservicesettings/createassessment/SyncCreateAssessment.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservicesettings/createassessment/SyncCreateAssessment.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservicesettings/createassessment/SyncCreateAssessment.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservicesettings/createassessment/SyncCreateAssessment.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/stub/recaptchaenterpriseservicestubsettings/createassessment/SyncCreateAssessment.java b/owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/stub/recaptchaenterpriseservicestubsettings/createassessment/SyncCreateAssessment.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/stub/recaptchaenterpriseservicestubsettings/createassessment/SyncCreateAssessment.java rename to owl-bot-staging/java-recaptchaenterprise/v1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/stub/recaptchaenterpriseservicestubsettings/createassessment/SyncCreateAssessment.java diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java similarity index 100% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Settings.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Settings.java similarity index 99% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Settings.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Settings.java index 376dfcc4fd1d..77badd03b42b 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Settings.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Settings.java @@ -25,6 +25,7 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.recaptchaenterprise.v1beta1.stub.RecaptchaEnterpriseServiceV1Beta1StubSettings; diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/gapic_metadata.json b/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/gapic_metadata.json similarity index 100% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/gapic_metadata.json rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/gapic_metadata.json diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/package-info.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/package-info.java similarity index 100% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/package-info.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/package-info.java diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/GrpcRecaptchaEnterpriseServiceV1Beta1CallableFactory.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/GrpcRecaptchaEnterpriseServiceV1Beta1CallableFactory.java similarity index 100% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/GrpcRecaptchaEnterpriseServiceV1Beta1CallableFactory.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/GrpcRecaptchaEnterpriseServiceV1Beta1CallableFactory.java diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/GrpcRecaptchaEnterpriseServiceV1Beta1Stub.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/GrpcRecaptchaEnterpriseServiceV1Beta1Stub.java similarity index 99% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/GrpcRecaptchaEnterpriseServiceV1Beta1Stub.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/GrpcRecaptchaEnterpriseServiceV1Beta1Stub.java index 35a180167aaf..5226c508cac4 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/GrpcRecaptchaEnterpriseServiceV1Beta1Stub.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/GrpcRecaptchaEnterpriseServiceV1Beta1Stub.java @@ -32,6 +32,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/HttpJsonRecaptchaEnterpriseServiceV1Beta1CallableFactory.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/HttpJsonRecaptchaEnterpriseServiceV1Beta1CallableFactory.java similarity index 100% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/HttpJsonRecaptchaEnterpriseServiceV1Beta1CallableFactory.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/HttpJsonRecaptchaEnterpriseServiceV1Beta1CallableFactory.java diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/HttpJsonRecaptchaEnterpriseServiceV1Beta1Stub.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/HttpJsonRecaptchaEnterpriseServiceV1Beta1Stub.java similarity index 100% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/HttpJsonRecaptchaEnterpriseServiceV1Beta1Stub.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/HttpJsonRecaptchaEnterpriseServiceV1Beta1Stub.java diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1Stub.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1Stub.java similarity index 100% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1Stub.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1Stub.java diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1StubSettings.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1StubSettings.java similarity index 100% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1StubSettings.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1StubSettings.java diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1beta1/reflect-config.json b/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1beta1/reflect-config.json similarity index 100% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1beta1/reflect-config.json rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1beta1/reflect-config.json diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/MockRecaptchaEnterpriseServiceV1Beta1.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/MockRecaptchaEnterpriseServiceV1Beta1.java similarity index 100% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/MockRecaptchaEnterpriseServiceV1Beta1.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/MockRecaptchaEnterpriseServiceV1Beta1.java diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/MockRecaptchaEnterpriseServiceV1Beta1Impl.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/MockRecaptchaEnterpriseServiceV1Beta1Impl.java similarity index 100% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/MockRecaptchaEnterpriseServiceV1Beta1Impl.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/MockRecaptchaEnterpriseServiceV1Beta1Impl.java diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1ClientHttpJsonTest.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1ClientHttpJsonTest.java similarity index 100% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1ClientHttpJsonTest.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1ClientHttpJsonTest.java diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1ClientTest.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1ClientTest.java similarity index 100% rename from java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1ClientTest.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1ClientTest.java diff --git a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Grpc.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/grpc-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Grpc.java similarity index 50% rename from java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Grpc.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/grpc-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Grpc.java index a89e2ddde4a7..1672848b9255 100644 --- a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Grpc.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/grpc-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Grpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.recaptchaenterprise.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * Service to determine the likelihood an event is legitimate.
  * 
@@ -32,124 +15,82 @@ public final class RecaptchaEnterpriseServiceV1Beta1Grpc { private RecaptchaEnterpriseServiceV1Beta1Grpc() {} - public static final java.lang.String SERVICE_NAME = - "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1"; + public static final java.lang.String SERVICE_NAME = "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest, - com.google.recaptchaenterprise.v1beta1.Assessment> - getCreateAssessmentMethod; + private static volatile io.grpc.MethodDescriptor getCreateAssessmentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateAssessment", requestType = com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.class, responseType = com.google.recaptchaenterprise.v1beta1.Assessment.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest, - com.google.recaptchaenterprise.v1beta1.Assessment> - getCreateAssessmentMethod() { - io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest, - com.google.recaptchaenterprise.v1beta1.Assessment> - getCreateAssessmentMethod; - if ((getCreateAssessmentMethod = - RecaptchaEnterpriseServiceV1Beta1Grpc.getCreateAssessmentMethod) - == null) { + public static io.grpc.MethodDescriptor getCreateAssessmentMethod() { + io.grpc.MethodDescriptor getCreateAssessmentMethod; + if ((getCreateAssessmentMethod = RecaptchaEnterpriseServiceV1Beta1Grpc.getCreateAssessmentMethod) == null) { synchronized (RecaptchaEnterpriseServiceV1Beta1Grpc.class) { - if ((getCreateAssessmentMethod = - RecaptchaEnterpriseServiceV1Beta1Grpc.getCreateAssessmentMethod) - == null) { - RecaptchaEnterpriseServiceV1Beta1Grpc.getCreateAssessmentMethod = - getCreateAssessmentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAssessment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1beta1.Assessment - .getDefaultInstance())) - .setSchemaDescriptor( - new RecaptchaEnterpriseServiceV1Beta1MethodDescriptorSupplier( - "CreateAssessment")) - .build(); + if ((getCreateAssessmentMethod = RecaptchaEnterpriseServiceV1Beta1Grpc.getCreateAssessmentMethod) == null) { + RecaptchaEnterpriseServiceV1Beta1Grpc.getCreateAssessmentMethod = getCreateAssessmentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAssessment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance())) + .setSchemaDescriptor(new RecaptchaEnterpriseServiceV1Beta1MethodDescriptorSupplier("CreateAssessment")) + .build(); } } } return getCreateAssessmentMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest, - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse> - getAnnotateAssessmentMethod; + private static volatile io.grpc.MethodDescriptor getAnnotateAssessmentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "AnnotateAssessment", requestType = com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.class, responseType = com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest, - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse> - getAnnotateAssessmentMethod() { - io.grpc.MethodDescriptor< - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest, - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse> - getAnnotateAssessmentMethod; - if ((getAnnotateAssessmentMethod = - RecaptchaEnterpriseServiceV1Beta1Grpc.getAnnotateAssessmentMethod) - == null) { + public static io.grpc.MethodDescriptor getAnnotateAssessmentMethod() { + io.grpc.MethodDescriptor getAnnotateAssessmentMethod; + if ((getAnnotateAssessmentMethod = RecaptchaEnterpriseServiceV1Beta1Grpc.getAnnotateAssessmentMethod) == null) { synchronized (RecaptchaEnterpriseServiceV1Beta1Grpc.class) { - if ((getAnnotateAssessmentMethod = - RecaptchaEnterpriseServiceV1Beta1Grpc.getAnnotateAssessmentMethod) - == null) { - RecaptchaEnterpriseServiceV1Beta1Grpc.getAnnotateAssessmentMethod = - getAnnotateAssessmentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AnnotateAssessment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new RecaptchaEnterpriseServiceV1Beta1MethodDescriptorSupplier( - "AnnotateAssessment")) - .build(); + if ((getAnnotateAssessmentMethod = RecaptchaEnterpriseServiceV1Beta1Grpc.getAnnotateAssessmentMethod) == null) { + RecaptchaEnterpriseServiceV1Beta1Grpc.getAnnotateAssessmentMethod = getAnnotateAssessmentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AnnotateAssessment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.getDefaultInstance())) + .setSchemaDescriptor(new RecaptchaEnterpriseServiceV1Beta1MethodDescriptorSupplier("AnnotateAssessment")) + .build(); } } } return getAnnotateAssessmentMethod; } - /** Creates a new async stub that supports all call types for the service */ + /** + * Creates a new async stub that supports all call types for the service + */ public static RecaptchaEnterpriseServiceV1Beta1Stub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RecaptchaEnterpriseServiceV1Beta1Stub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RecaptchaEnterpriseServiceV1Beta1Stub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RecaptchaEnterpriseServiceV1Beta1Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecaptchaEnterpriseServiceV1Beta1Stub(channel, callOptions); + } + }; return RecaptchaEnterpriseServiceV1Beta1Stub.newStub(factory, channel); } @@ -159,32 +100,31 @@ public RecaptchaEnterpriseServiceV1Beta1Stub newStub( public static RecaptchaEnterpriseServiceV1Beta1BlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RecaptchaEnterpriseServiceV1Beta1BlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RecaptchaEnterpriseServiceV1Beta1BlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RecaptchaEnterpriseServiceV1Beta1BlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecaptchaEnterpriseServiceV1Beta1BlockingStub(channel, callOptions); + } + }; return RecaptchaEnterpriseServiceV1Beta1BlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static RecaptchaEnterpriseServiceV1Beta1FutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static RecaptchaEnterpriseServiceV1Beta1FutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RecaptchaEnterpriseServiceV1Beta1FutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RecaptchaEnterpriseServiceV1Beta1FutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RecaptchaEnterpriseServiceV1Beta1FutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RecaptchaEnterpriseServiceV1Beta1FutureStub(channel, callOptions); + } + }; return RecaptchaEnterpriseServiceV1Beta1FutureStub.newStub(factory, channel); } /** - * - * *
    * Service to determine the likelihood an event is legitimate.
    * 
@@ -192,58 +132,43 @@ public RecaptchaEnterpriseServiceV1Beta1FutureStub newStub( public interface AsyncService { /** - * - * *
      * Creates an Assessment of the likelihood an event is legitimate.
      * 
*/ - default void createAssessment( - com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateAssessmentMethod(), responseObserver); + default void createAssessment(com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAssessmentMethod(), responseObserver); } /** - * - * *
      * Annotates a previously created Assessment to provide additional information
      * on whether the event turned out to be authentic or fradulent.
      * 
*/ - default void annotateAssessment( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest request, - io.grpc.stub.StreamObserver< - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAnnotateAssessmentMethod(), responseObserver); + default void annotateAssessment(com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAnnotateAssessmentMethod(), responseObserver); } } /** * Base class for the server implementation of the service RecaptchaEnterpriseServiceV1Beta1. - * *
    * Service to determine the likelihood an event is legitimate.
    * 
*/ - public abstract static class RecaptchaEnterpriseServiceV1Beta1ImplBase + public static abstract class RecaptchaEnterpriseServiceV1Beta1ImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return RecaptchaEnterpriseServiceV1Beta1Grpc.bindService(this); } } /** - * A stub to allow clients to do asynchronous rpc calls to service - * RecaptchaEnterpriseServiceV1Beta1. - * + * A stub to allow clients to do asynchronous rpc calls to service RecaptchaEnterpriseServiceV1Beta1. *
    * Service to determine the likelihood an event is legitimate.
    * 
@@ -262,46 +187,31 @@ protected RecaptchaEnterpriseServiceV1Beta1Stub build( } /** - * - * *
      * Creates an Assessment of the likelihood an event is legitimate.
      * 
*/ - public void createAssessment( - com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void createAssessment(com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAssessmentMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateAssessmentMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Annotates a previously created Assessment to provide additional information
      * on whether the event turned out to be authentic or fradulent.
      * 
*/ - public void annotateAssessment( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest request, - io.grpc.stub.StreamObserver< - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse> - responseObserver) { + public void annotateAssessment(com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAnnotateAssessmentMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getAnnotateAssessmentMethod(), getCallOptions()), request, responseObserver); } } /** - * A stub to allow clients to do synchronous rpc calls to service - * RecaptchaEnterpriseServiceV1Beta1. - * + * A stub to allow clients to do synchronous rpc calls to service RecaptchaEnterpriseServiceV1Beta1. *
    * Service to determine the likelihood an event is legitimate.
    * 
@@ -320,37 +230,29 @@ protected RecaptchaEnterpriseServiceV1Beta1BlockingStub build( } /** - * - * *
      * Creates an Assessment of the likelihood an event is legitimate.
      * 
*/ - public com.google.recaptchaenterprise.v1beta1.Assessment createAssessment( - com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest request) { + public com.google.recaptchaenterprise.v1beta1.Assessment createAssessment(com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateAssessmentMethod(), getCallOptions(), request); } /** - * - * *
      * Annotates a previously created Assessment to provide additional information
      * on whether the event turned out to be authentic or fradulent.
      * 
*/ - public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse annotateAssessment( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest request) { + public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse annotateAssessment(com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAnnotateAssessmentMethod(), getCallOptions(), request); } } /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service - * RecaptchaEnterpriseServiceV1Beta1. - * + * A stub to allow clients to do ListenableFuture-style rpc calls to service RecaptchaEnterpriseServiceV1Beta1. *
    * Service to determine the likelihood an event is legitimate.
    * 
@@ -369,31 +271,24 @@ protected RecaptchaEnterpriseServiceV1Beta1FutureStub build( } /** - * - * *
      * Creates an Assessment of the likelihood an event is legitimate.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.recaptchaenterprise.v1beta1.Assessment> - createAssessment(com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest request) { + public com.google.common.util.concurrent.ListenableFuture createAssessment( + com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateAssessmentMethod(), getCallOptions()), request); } /** - * - * *
      * Annotates a previously created Assessment to provide additional information
      * on whether the event turned out to be authentic or fradulent.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse> - annotateAssessment( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest request) { + public com.google.common.util.concurrent.ListenableFuture annotateAssessment( + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAnnotateAssessmentMethod(), getCallOptions()), request); } @@ -402,11 +297,11 @@ protected RecaptchaEnterpriseServiceV1Beta1FutureStub build( private static final int METHODID_CREATE_ASSESSMENT = 0; private static final int METHODID_ANNOTATE_ASSESSMENT = 1; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -420,17 +315,12 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_ASSESSMENT: - serviceImpl.createAssessment( - (com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createAssessment((com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ANNOTATE_ASSESSMENT: - serviceImpl.annotateAssessment( - (com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest) request, - (io.grpc.stub.StreamObserver< - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse>) - responseObserver); + serviceImpl.annotateAssessment((com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -451,25 +341,24 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateAssessmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest, - com.google.recaptchaenterprise.v1beta1.Assessment>( - service, METHODID_CREATE_ASSESSMENT))) + getCreateAssessmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest, + com.google.recaptchaenterprise.v1beta1.Assessment>( + service, METHODID_CREATE_ASSESSMENT))) .addMethod( - getAnnotateAssessmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest, - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse>( - service, METHODID_ANNOTATE_ASSESSMENT))) + getAnnotateAssessmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest, + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse>( + service, METHODID_ANNOTATE_ASSESSMENT))) .build(); } - private abstract static class RecaptchaEnterpriseServiceV1Beta1BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class RecaptchaEnterpriseServiceV1Beta1BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { RecaptchaEnterpriseServiceV1Beta1BaseDescriptorSupplier() {} @java.lang.Override @@ -511,14 +400,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (RecaptchaEnterpriseServiceV1Beta1Grpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor( - new RecaptchaEnterpriseServiceV1Beta1FileDescriptorSupplier()) - .addMethod(getCreateAssessmentMethod()) - .addMethod(getAnnotateAssessmentMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new RecaptchaEnterpriseServiceV1Beta1FileDescriptorSupplier()) + .addMethod(getCreateAssessmentMethod()) + .addMethod(getAnnotateAssessmentMethod()) + .build(); } } } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessment.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessment.java similarity index 60% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessment.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessment.java index 8bf02dee7e4a..c3c69ae462c5 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessment.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessment.java @@ -1,81 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; /** - * - * *
  * Account defender risk assessment.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment} */ -public final class AccountDefenderAssessment extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AccountDefenderAssessment extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment) AccountDefenderAssessmentOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AccountDefenderAssessment.newBuilder() to construct. private AccountDefenderAssessment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AccountDefenderAssessment() { labels_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AccountDefenderAssessment(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.class, - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder.class); + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.class, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder.class); } /** - * - * *
    * Labels returned by account defender for this request.
    * 
* - * Protobuf enum {@code - * google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel} + * Protobuf enum {@code google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel} */ - public enum AccountDefenderLabel implements com.google.protobuf.ProtocolMessageEnum { + public enum AccountDefenderLabel + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default unspecified type.
      * 
@@ -84,8 +61,6 @@ public enum AccountDefenderLabel implements com.google.protobuf.ProtocolMessageE */ ACCOUNT_DEFENDER_LABEL_UNSPECIFIED(0), /** - * - * *
      * The request matches a known good profile for the user.
      * 
@@ -94,8 +69,6 @@ public enum AccountDefenderLabel implements com.google.protobuf.ProtocolMessageE */ PROFILE_MATCH(1), /** - * - * *
      * The request is potentially a suspicious login event and should be further
      * verified either via multi-factor authentication or another system.
@@ -105,8 +78,6 @@ public enum AccountDefenderLabel implements com.google.protobuf.ProtocolMessageE
      */
     SUSPICIOUS_LOGIN_ACTIVITY(2),
     /**
-     *
-     *
      * 
      * The request matched a profile that previously had suspicious account
      * creation behavior. This could mean this is a fake account.
@@ -116,8 +87,6 @@ public enum AccountDefenderLabel implements com.google.protobuf.ProtocolMessageE
      */
     SUSPICIOUS_ACCOUNT_CREATION(3),
     /**
-     *
-     *
      * 
      * The account in the request has a high number of related accounts. It does
      * not necessarily imply that the account is bad but could require
@@ -131,8 +100,6 @@ public enum AccountDefenderLabel implements com.google.protobuf.ProtocolMessageE
     ;
 
     /**
-     *
-     *
      * 
      * Default unspecified type.
      * 
@@ -141,8 +108,6 @@ public enum AccountDefenderLabel implements com.google.protobuf.ProtocolMessageE */ public static final int ACCOUNT_DEFENDER_LABEL_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The request matches a known good profile for the user.
      * 
@@ -151,8 +116,6 @@ public enum AccountDefenderLabel implements com.google.protobuf.ProtocolMessageE */ public static final int PROFILE_MATCH_VALUE = 1; /** - * - * *
      * The request is potentially a suspicious login event and should be further
      * verified either via multi-factor authentication or another system.
@@ -162,8 +125,6 @@ public enum AccountDefenderLabel implements com.google.protobuf.ProtocolMessageE
      */
     public static final int SUSPICIOUS_LOGIN_ACTIVITY_VALUE = 2;
     /**
-     *
-     *
      * 
      * The request matched a profile that previously had suspicious account
      * creation behavior. This could mean this is a fake account.
@@ -173,8 +134,6 @@ public enum AccountDefenderLabel implements com.google.protobuf.ProtocolMessageE
      */
     public static final int SUSPICIOUS_ACCOUNT_CREATION_VALUE = 3;
     /**
-     *
-     *
      * 
      * The account in the request has a high number of related accounts. It does
      * not necessarily imply that the account is bad but could require
@@ -185,6 +144,7 @@ public enum AccountDefenderLabel implements com.google.protobuf.ProtocolMessageE
      */
     public static final int RELATED_ACCOUNTS_NUMBER_HIGH_VALUE = 4;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -209,18 +169,12 @@ public static AccountDefenderLabel valueOf(int value) {
      */
     public static AccountDefenderLabel forNumber(int value) {
       switch (value) {
-        case 0:
-          return ACCOUNT_DEFENDER_LABEL_UNSPECIFIED;
-        case 1:
-          return PROFILE_MATCH;
-        case 2:
-          return SUSPICIOUS_LOGIN_ACTIVITY;
-        case 3:
-          return SUSPICIOUS_ACCOUNT_CREATION;
-        case 4:
-          return RELATED_ACCOUNTS_NUMBER_HIGH;
-        default:
-          return null;
+        case 0: return ACCOUNT_DEFENDER_LABEL_UNSPECIFIED;
+        case 1: return PROFILE_MATCH;
+        case 2: return SUSPICIOUS_LOGIN_ACTIVITY;
+        case 3: return SUSPICIOUS_ACCOUNT_CREATION;
+        case 4: return RELATED_ACCOUNTS_NUMBER_HIGH;
+        default: return null;
       }
     }
 
@@ -228,31 +182,29 @@ public static AccountDefenderLabel forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        AccountDefenderLabel> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public AccountDefenderLabel findValueByNumber(int number) {
+              return AccountDefenderLabel.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public AccountDefenderLabel findValueByNumber(int number) {
-                return AccountDefenderLabel.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final AccountDefenderLabel[] VALUES = values();
@@ -260,7 +212,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static AccountDefenderLabel valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -278,64 +231,36 @@ private AccountDefenderLabel(int value) {
   }
 
   public static final int LABELS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List labels_;
-
   private static final com.google.protobuf.Internal.ListAdapter.Converter<
-          java.lang.Integer,
-          com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel>
-      labels_converter_ =
+      java.lang.Integer, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel> labels_converter_ =
           new com.google.protobuf.Internal.ListAdapter.Converter<
-              java.lang.Integer,
-              com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment
-                  .AccountDefenderLabel>() {
-            public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment
-                    .AccountDefenderLabel
-                convert(java.lang.Integer from) {
-              com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel
-                  result =
-                      com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment
-                          .AccountDefenderLabel.forNumber(from);
-              return result == null
-                  ? com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment
-                      .AccountDefenderLabel.UNRECOGNIZED
-                  : result;
+              java.lang.Integer, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel>() {
+            public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel convert(java.lang.Integer from) {
+              com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel result = com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel.forNumber(from);
+              return result == null ? com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel.UNRECOGNIZED : result;
             }
           };
   /**
-   *
-   *
    * 
    * Labels for this request.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; * @return A list containing the labels. */ @java.lang.Override - public java.util.List< - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel> - getLabelsList() { + public java.util.List getLabelsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel>( - labels_, labels_converter_); + java.lang.Integer, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel>(labels_, labels_converter_); } /** - * - * *
    * Labels for this request.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; * @return The count of labels. */ @java.lang.Override @@ -343,52 +268,37 @@ public int getLabelsCount() { return labels_.size(); } /** - * - * *
    * Labels for this request.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; * @param index The index of the element to return. * @return The labels at the given index. */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel - getLabels(int index) { + public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel getLabels(int index) { return labels_converter_.convert(labels_.get(index)); } /** - * - * *
    * Labels for this request.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; * @return A list containing the enum numeric values on the wire for labels. */ @java.lang.Override - public java.util.List getLabelsValueList() { + public java.util.List + getLabelsValueList() { return labels_; } /** - * - * *
    * Labels for this request.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of labels at the given index. */ @@ -396,11 +306,9 @@ public java.util.List getLabelsValueList() { public int getLabelsValue(int index) { return labels_.get(index); } - private int labelsMemoizedSerializedSize; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -412,7 +320,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (getLabelsList().size() > 0) { output.writeUInt32NoTag(10); @@ -433,14 +342,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < labels_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(labels_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(labels_.get(i)); } size += dataSize; - if (!getLabelsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - labelsMemoizedSerializedSize = dataSize; + if (!getLabelsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }labelsMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -450,13 +359,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment other = - (com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment) obj; + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment other = (com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment) obj; if (!labels_.equals(other.labels_)) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -480,136 +388,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Account defender risk assessment.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment) com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.class, - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder.class); + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.class, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -620,14 +523,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDefaultInstance(); } @@ -642,18 +544,14 @@ public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment build() @java.lang.Override public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment buildPartial() { - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment result = - new com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment(this); + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment result = new com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment result) { + private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment result) { if (((bitField0_ & 0x00000001) != 0)) { labels_ = java.util.Collections.unmodifiableList(labels_); bitField0_ = (bitField0_ & ~0x00000001); @@ -661,8 +559,7 @@ private void buildPartialRepeatedFields( result.labels_ = labels_; } - private void buildPartial0( - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment result) { + private void buildPartial0(com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment result) { int from_bitField0_ = bitField0_; } @@ -670,50 +567,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment) other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment other) { - if (other - == com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment other) { + if (other == com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDefaultInstance()) return this; if (!other.labels_.isEmpty()) { if (labels_.isEmpty()) { labels_ = other.labels_; @@ -750,32 +643,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { + case 8: { + int tmpRaw = input.readEnum(); + ensureLabelsIsMutable(); + labels_.add(tmpRaw); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureLabelsIsMutable(); labels_.add(tmpRaw); - break; - } // case 8 - case 10: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureLabelsIsMutable(); - labels_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + } + input.popLimit(oldLimit); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -785,11 +675,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List labels_ = java.util.Collections.emptyList(); - + private java.util.List labels_ = + java.util.Collections.emptyList(); private void ensureLabelsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { labels_ = new java.util.ArrayList(labels_); @@ -797,79 +686,52 @@ private void ensureLabelsIsMutable() { } } /** - * - * *
      * Labels for this request.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; * @return A list containing the labels. */ - public java.util.List< - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel> - getLabelsList() { + public java.util.List getLabelsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel>( - labels_, labels_converter_); + java.lang.Integer, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel>(labels_, labels_converter_); } /** - * - * *
      * Labels for this request.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; * @return The count of labels. */ public int getLabelsCount() { return labels_.size(); } /** - * - * *
      * Labels for this request.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; * @param index The index of the element to return. * @return The labels at the given index. */ - public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel - getLabels(int index) { + public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel getLabels(int index) { return labels_converter_.convert(labels_.get(index)); } /** - * - * *
      * Labels for this request.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; * @param index The index to set the value at. * @param value The labels to set. * @return This builder for chaining. */ public Builder setLabels( - int index, - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel - value) { + int index, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel value) { if (value == null) { throw new NullPointerException(); } @@ -879,22 +741,15 @@ public Builder setLabels( return this; } /** - * - * *
      * Labels for this request.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; * @param value The labels to add. * @return This builder for chaining. */ - public Builder addLabels( - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel - value) { + public Builder addLabels(com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel value) { if (value == null) { throw new NullPointerException(); } @@ -904,44 +759,29 @@ public Builder addLabels( return this; } /** - * - * *
      * Labels for this request.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; * @param values The labels to add. * @return This builder for chaining. */ public Builder addAllLabels( - java.lang.Iterable< - ? extends - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment - .AccountDefenderLabel> - values) { + java.lang.Iterable values) { ensureLabelsIsMutable(); - for (com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel - value : values) { + for (com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel value : values) { labels_.add(value.getNumber()); } onChanged(); return this; } /** - * - * *
      * Labels for this request.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; * @return This builder for chaining. */ public Builder clearLabels() { @@ -951,32 +791,23 @@ public Builder clearLabels() { return this; } /** - * - * *
      * Labels for this request.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; * @return A list containing the enum numeric values on the wire for labels. */ - public java.util.List getLabelsValueList() { + public java.util.List + getLabelsValueList() { return java.util.Collections.unmodifiableList(labels_); } /** - * - * *
      * Labels for this request.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of labels at the given index. */ @@ -984,37 +815,28 @@ public int getLabelsValue(int index) { return labels_.get(index); } /** - * - * *
      * Labels for this request.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; * @param index The index to set the value at. * @param value The enum numeric value on the wire for labels to set. * @return This builder for chaining. */ - public Builder setLabelsValue(int index, int value) { + public Builder setLabelsValue( + int index, int value) { ensureLabelsIsMutable(); labels_.set(index, value); onChanged(); return this; } /** - * - * *
      * Labels for this request.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; * @param value The enum numeric value on the wire for labels to add. * @return This builder for chaining. */ @@ -1025,20 +847,16 @@ public Builder addLabelsValue(int value) { return this; } /** - * - * *
      * Labels for this request.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; * @param values The enum numeric values on the wire for labels to add. * @return This builder for chaining. */ - public Builder addAllLabelsValue(java.lang.Iterable values) { + public Builder addAllLabelsValue( + java.lang.Iterable values) { ensureLabelsIsMutable(); for (int value : values) { labels_.add(value); @@ -1046,9 +864,9 @@ public Builder addAllLabelsValue(java.lang.Iterable values) { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1058,43 +876,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment) - private static final com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment(); } - public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccountDefenderAssessment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccountDefenderAssessment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1106,8 +922,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessmentOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessmentOrBuilder.java new file mode 100644 index 000000000000..ef5594930c96 --- /dev/null +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AccountDefenderAssessmentOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1beta1; + +public interface AccountDefenderAssessmentOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Labels for this request.
+   * 
+ * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * @return A list containing the labels. + */ + java.util.List getLabelsList(); + /** + *
+   * Labels for this request.
+   * 
+ * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * @return The count of labels. + */ + int getLabelsCount(); + /** + *
+   * Labels for this request.
+   * 
+ * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * @param index The index of the element to return. + * @return The labels at the given index. + */ + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel getLabels(int index); + /** + *
+   * Labels for this request.
+   * 
+ * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * @return A list containing the enum numeric values on the wire for labels. + */ + java.util.List + getLabelsValueList(); + /** + *
+   * Labels for this request.
+   * 
+ * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel labels = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of labels at the given index. + */ + int getLabelsValue(int index); +} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java similarity index 62% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java index fa508503c2a0..0601369047c1 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; /** - * - * *
  * The request message to annotate an Assessment.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest} */ -public final class AnnotateAssessmentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AnnotateAssessmentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest) AnnotateAssessmentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AnnotateAssessmentRequest.newBuilder() to construct. private AnnotateAssessmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnnotateAssessmentRequest() { name_ = ""; annotation_ = 0; @@ -46,39 +28,34 @@ private AnnotateAssessmentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnnotateAssessmentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.class, - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Builder.class); + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.class, com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Builder.class); } /** - * - * *
    * Enum that represents the types of annotations.
    * 
* - * Protobuf enum {@code - * google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation} + * Protobuf enum {@code google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation} */ - public enum Annotation implements com.google.protobuf.ProtocolMessageEnum { + public enum Annotation + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default unspecified type.
      * 
@@ -87,8 +64,6 @@ public enum Annotation implements com.google.protobuf.ProtocolMessageEnum { */ ANNOTATION_UNSPECIFIED(0), /** - * - * *
      * Provides information that the event turned out to be legitimate.
      * 
@@ -97,8 +72,6 @@ public enum Annotation implements com.google.protobuf.ProtocolMessageEnum { */ LEGITIMATE(1), /** - * - * *
      * Provides information that the event turned out to be fraudulent.
      * 
@@ -107,8 +80,6 @@ public enum Annotation implements com.google.protobuf.ProtocolMessageEnum { */ FRAUDULENT(2), /** - * - * *
      * Provides information that the event was related to a login event in which
      * the user typed the correct password. Deprecated, prefer indicating
@@ -120,8 +91,6 @@ public enum Annotation implements com.google.protobuf.ProtocolMessageEnum {
     @java.lang.Deprecated
     PASSWORD_CORRECT(3),
     /**
-     *
-     *
      * 
      * Provides information that the event was related to a login event in which
      * the user typed the incorrect password. Deprecated, prefer indicating
@@ -136,8 +105,6 @@ public enum Annotation implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default unspecified type.
      * 
@@ -146,8 +113,6 @@ public enum Annotation implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ANNOTATION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Provides information that the event turned out to be legitimate.
      * 
@@ -156,8 +121,6 @@ public enum Annotation implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEGITIMATE_VALUE = 1; /** - * - * *
      * Provides information that the event turned out to be fraudulent.
      * 
@@ -166,8 +129,6 @@ public enum Annotation implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FRAUDULENT_VALUE = 2; /** - * - * *
      * Provides information that the event was related to a login event in which
      * the user typed the correct password. Deprecated, prefer indicating
@@ -178,8 +139,6 @@ public enum Annotation implements com.google.protobuf.ProtocolMessageEnum {
      */
     @java.lang.Deprecated public static final int PASSWORD_CORRECT_VALUE = 3;
     /**
-     *
-     *
      * 
      * Provides information that the event was related to a login event in which
      * the user typed the incorrect password. Deprecated, prefer indicating
@@ -190,6 +149,7 @@ public enum Annotation implements com.google.protobuf.ProtocolMessageEnum {
      */
     @java.lang.Deprecated public static final int PASSWORD_INCORRECT_VALUE = 4;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -214,55 +174,51 @@ public static Annotation valueOf(int value) {
      */
     public static Annotation forNumber(int value) {
       switch (value) {
-        case 0:
-          return ANNOTATION_UNSPECIFIED;
-        case 1:
-          return LEGITIMATE;
-        case 2:
-          return FRAUDULENT;
-        case 3:
-          return PASSWORD_CORRECT;
-        case 4:
-          return PASSWORD_INCORRECT;
-        default:
-          return null;
+        case 0: return ANNOTATION_UNSPECIFIED;
+        case 1: return LEGITIMATE;
+        case 2: return FRAUDULENT;
+        case 3: return PASSWORD_CORRECT;
+        case 4: return PASSWORD_INCORRECT;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        Annotation> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Annotation findValueByNumber(int number) {
+              return Annotation.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Annotation findValueByNumber(int number) {
-            return Annotation.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Annotation[] VALUES = values();
 
-    public static Annotation valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Annotation valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -280,18 +236,15 @@ private Annotation(int value) {
   }
 
   /**
-   *
-   *
    * 
    * Enum that represents potential reasons for annotating an assessment.
    * 
* * Protobuf enum {@code google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason} */ - public enum Reason implements com.google.protobuf.ProtocolMessageEnum { + public enum Reason + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default unspecified reason.
      * 
@@ -300,8 +253,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { */ REASON_UNSPECIFIED(0), /** - * - * *
      * Indicates that the transaction had a chargeback issued with no other
      * details. When possible, specify the type by using CHARGEBACK_FRAUD or
@@ -312,8 +263,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     CHARGEBACK(1),
     /**
-     *
-     *
      * 
      * Indicates that the transaction had a chargeback issued related to an
      * alleged unauthorized transaction from the cardholder's perspective (for
@@ -324,8 +273,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     CHARGEBACK_FRAUD(8),
     /**
-     *
-     *
      * 
      * Indicates that the transaction had a chargeback issued related to the
      * cardholder having provided their card details but allegedly not being
@@ -337,8 +284,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     CHARGEBACK_DISPUTE(9),
     /**
-     *
-     *
      * 
      * Indicates that the completed payment transaction was refunded by the
      * seller.
@@ -348,8 +293,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     REFUND(10),
     /**
-     *
-     *
      * 
      * Indicates that the completed payment transaction was determined to be
      * fraudulent by the seller, and was cancelled and refunded as a result.
@@ -359,8 +302,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     REFUND_FRAUD(11),
     /**
-     *
-     *
      * 
      * Indicates that the payment transaction was accepted, and the user was
      * charged.
@@ -370,8 +311,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     TRANSACTION_ACCEPTED(12),
     /**
-     *
-     *
      * 
      * Indicates that the payment transaction was declined, for example due to
      * invalid card details.
@@ -381,8 +320,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     TRANSACTION_DECLINED(13),
     /**
-     *
-     *
      * 
      * Indicates the transaction associated with the assessment is suspected of
      * being fraudulent based on the payment method, billing details, shipping
@@ -393,8 +330,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     PAYMENT_HEURISTICS(2),
     /**
-     *
-     *
      * 
      * Indicates that the user was served a 2FA challenge. An old assessment
      * with `ENUM_VALUES.INITIATED_TWO_FACTOR` reason that has not been
@@ -406,8 +341,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     INITIATED_TWO_FACTOR(7),
     /**
-     *
-     *
      * 
      * Indicates that the user passed a 2FA challenge.
      * 
@@ -416,8 +349,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { */ PASSED_TWO_FACTOR(3), /** - * - * *
      * Indicates that the user failed a 2FA challenge.
      * 
@@ -426,8 +357,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { */ FAILED_TWO_FACTOR(4), /** - * - * *
      * Indicates the user provided the correct password.
      * 
@@ -436,8 +365,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { */ CORRECT_PASSWORD(5), /** - * - * *
      * Indicates the user provided an incorrect password.
      * 
@@ -446,8 +373,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { */ INCORRECT_PASSWORD(6), /** - * - * *
      * Indicates that the user sent unwanted and abusive messages to other users
      * of the platform, such as spam, scams, phishing, or social engineering.
@@ -460,8 +385,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default unspecified reason.
      * 
@@ -470,8 +393,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REASON_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Indicates that the transaction had a chargeback issued with no other
      * details. When possible, specify the type by using CHARGEBACK_FRAUD or
@@ -482,8 +403,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CHARGEBACK_VALUE = 1;
     /**
-     *
-     *
      * 
      * Indicates that the transaction had a chargeback issued related to an
      * alleged unauthorized transaction from the cardholder's perspective (for
@@ -494,8 +413,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CHARGEBACK_FRAUD_VALUE = 8;
     /**
-     *
-     *
      * 
      * Indicates that the transaction had a chargeback issued related to the
      * cardholder having provided their card details but allegedly not being
@@ -507,8 +424,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CHARGEBACK_DISPUTE_VALUE = 9;
     /**
-     *
-     *
      * 
      * Indicates that the completed payment transaction was refunded by the
      * seller.
@@ -518,8 +433,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int REFUND_VALUE = 10;
     /**
-     *
-     *
      * 
      * Indicates that the completed payment transaction was determined to be
      * fraudulent by the seller, and was cancelled and refunded as a result.
@@ -529,8 +442,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int REFUND_FRAUD_VALUE = 11;
     /**
-     *
-     *
      * 
      * Indicates that the payment transaction was accepted, and the user was
      * charged.
@@ -540,8 +451,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TRANSACTION_ACCEPTED_VALUE = 12;
     /**
-     *
-     *
      * 
      * Indicates that the payment transaction was declined, for example due to
      * invalid card details.
@@ -551,8 +460,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TRANSACTION_DECLINED_VALUE = 13;
     /**
-     *
-     *
      * 
      * Indicates the transaction associated with the assessment is suspected of
      * being fraudulent based on the payment method, billing details, shipping
@@ -563,8 +470,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int PAYMENT_HEURISTICS_VALUE = 2;
     /**
-     *
-     *
      * 
      * Indicates that the user was served a 2FA challenge. An old assessment
      * with `ENUM_VALUES.INITIATED_TWO_FACTOR` reason that has not been
@@ -576,8 +481,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int INITIATED_TWO_FACTOR_VALUE = 7;
     /**
-     *
-     *
      * 
      * Indicates that the user passed a 2FA challenge.
      * 
@@ -586,8 +489,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PASSED_TWO_FACTOR_VALUE = 3; /** - * - * *
      * Indicates that the user failed a 2FA challenge.
      * 
@@ -596,8 +497,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_TWO_FACTOR_VALUE = 4; /** - * - * *
      * Indicates the user provided the correct password.
      * 
@@ -606,8 +505,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CORRECT_PASSWORD_VALUE = 5; /** - * - * *
      * Indicates the user provided an incorrect password.
      * 
@@ -616,8 +513,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INCORRECT_PASSWORD_VALUE = 6; /** - * - * *
      * Indicates that the user sent unwanted and abusive messages to other users
      * of the platform, such as spam, scams, phishing, or social engineering.
@@ -627,6 +522,7 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SOCIAL_SPAM_VALUE = 14;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -651,75 +547,61 @@ public static Reason valueOf(int value) {
      */
     public static Reason forNumber(int value) {
       switch (value) {
-        case 0:
-          return REASON_UNSPECIFIED;
-        case 1:
-          return CHARGEBACK;
-        case 8:
-          return CHARGEBACK_FRAUD;
-        case 9:
-          return CHARGEBACK_DISPUTE;
-        case 10:
-          return REFUND;
-        case 11:
-          return REFUND_FRAUD;
-        case 12:
-          return TRANSACTION_ACCEPTED;
-        case 13:
-          return TRANSACTION_DECLINED;
-        case 2:
-          return PAYMENT_HEURISTICS;
-        case 7:
-          return INITIATED_TWO_FACTOR;
-        case 3:
-          return PASSED_TWO_FACTOR;
-        case 4:
-          return FAILED_TWO_FACTOR;
-        case 5:
-          return CORRECT_PASSWORD;
-        case 6:
-          return INCORRECT_PASSWORD;
-        case 14:
-          return SOCIAL_SPAM;
-        default:
-          return null;
+        case 0: return REASON_UNSPECIFIED;
+        case 1: return CHARGEBACK;
+        case 8: return CHARGEBACK_FRAUD;
+        case 9: return CHARGEBACK_DISPUTE;
+        case 10: return REFUND;
+        case 11: return REFUND_FRAUD;
+        case 12: return TRANSACTION_ACCEPTED;
+        case 13: return TRANSACTION_DECLINED;
+        case 2: return PAYMENT_HEURISTICS;
+        case 7: return INITIATED_TWO_FACTOR;
+        case 3: return PASSED_TWO_FACTOR;
+        case 4: return FAILED_TWO_FACTOR;
+        case 5: return CORRECT_PASSWORD;
+        case 6: return INCORRECT_PASSWORD;
+        case 14: return SOCIAL_SPAM;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        Reason> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Reason findValueByNumber(int number) {
+              return Reason.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Reason findValueByNumber(int number) {
-            return Reason.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.getDescriptor()
-          .getEnumTypes()
-          .get(1);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final Reason[] VALUES = values();
 
-    public static Reason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Reason valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -737,21 +619,15 @@ private Reason(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The resource name of the Assessment, in the format
    * `projects/{project_number}/assessments/{assessment_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -760,32 +636,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the Assessment, in the format
    * `projects/{project_number}/assessments/{assessment_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -796,106 +670,64 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ANNOTATION_FIELD_NUMBER = 2; private int annotation_ = 0; /** - * - * *
    * Optional. The annotation that will be assigned to the Event. This field can
    * be left empty to provide reasons that apply to an event without concluding
    * whether the event is legitimate or fraudulent.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for annotation. */ - @java.lang.Override - public int getAnnotationValue() { + @java.lang.Override public int getAnnotationValue() { return annotation_; } /** - * - * *
    * Optional. The annotation that will be assigned to the Event. This field can
    * be left empty to provide reasons that apply to an event without concluding
    * whether the event is legitimate or fraudulent.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The annotation. */ - @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation - getAnnotation() { - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation result = - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation.forNumber( - annotation_); - return result == null - ? com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation.UNRECOGNIZED - : result; + @java.lang.Override public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation getAnnotation() { + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation result = com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation.forNumber(annotation_); + return result == null ? com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation.UNRECOGNIZED : result; } public static final int REASONS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List reasons_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason> - reasons_converter_ = + java.lang.Integer, com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason> reasons_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason>() { - public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason convert( - java.lang.Integer from) { - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason result = - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason.forNumber( - from); - return result == null - ? com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason - .UNRECOGNIZED - : result; + java.lang.Integer, com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason>() { + public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason convert(java.lang.Integer from) { + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason result = com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason.forNumber(from); + return result == null ? com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason.UNRECOGNIZED : result; } }; /** - * - * *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
+   * Optional. Reasons for the annotation that are assigned to the event.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the reasons. */ @java.lang.Override - public java.util.List - getReasonsList() { + public java.util.List getReasonsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason>( - reasons_, reasons_converter_); + java.lang.Integer, com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason>(reasons_, reasons_converter_); } /** - * - * *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
+   * Optional. Reasons for the annotation that are assigned to the event.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of reasons. */ @java.lang.Override @@ -903,55 +735,37 @@ public int getReasonsCount() { return reasons_.size(); } /** - * - * *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
+   * Optional. Reasons for the annotation that are assigned to the event.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The reasons at the given index. */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason getReasons( - int index) { + public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason getReasons(int index) { return reasons_converter_.convert(reasons_.get(index)); } /** - * - * *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
+   * Optional. Reasons for the annotation that are assigned to the event.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the enum numeric values on the wire for reasons. */ @java.lang.Override - public java.util.List getReasonsValueList() { + public java.util.List + getReasonsValueList() { return reasons_; } /** - * - * *
-   * Optional. Optional reasons for the annotation that will be assigned to the
-   * Event.
+   * Optional. Reasons for the annotation that are assigned to the event.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The enum numeric value on the wire of reasons at the given index. */ @@ -959,24 +773,20 @@ public java.util.List getReasonsValueList() { public int getReasonsValue(int index) { return reasons_.get(index); } - private int reasonsMemoizedSerializedSize; public static final int HASHED_ACCOUNT_ID_FIELD_NUMBER = 4; private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
-   * Optional. Optional unique stable hashed user identifier to apply to the
-   * assessment. This is an alternative to setting the hashed_account_id in
-   * CreateAssessment, for example when the account identifier is not yet known
-   * in the initial request. It is recommended that the identifier is hashed
-   * using hmac-sha256 with stable secret.
+   * Optional. Unique stable hashed user identifier to apply to the assessment.
+   * This is an alternative to setting the `hashed_account_id` in
+   * `CreateAssessment`, for example, when the account identifier is not yet
+   * known in the initial request. It is recommended that the identifier is
+   * hashed using hmac-sha256 with stable secret.
    * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hashedAccountId. */ @java.lang.Override @@ -987,17 +797,12 @@ public com.google.protobuf.ByteString getHashedAccountId() { public static final int TRANSACTION_EVENT_FIELD_NUMBER = 5; private com.google.recaptchaenterprise.v1beta1.TransactionEvent transactionEvent_; /** - * - * *
    * Optional. If the assessment is part of a payment transaction, provide
    * details on payment lifecycle events that occur in the transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the transactionEvent field is set. */ @java.lang.Override @@ -1005,47 +810,32 @@ public boolean hasTransactionEvent() { return transactionEvent_ != null; } /** - * - * *
    * Optional. If the assessment is part of a payment transaction, provide
    * details on payment lifecycle events that occur in the transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The transactionEvent. */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionEvent getTransactionEvent() { - return transactionEvent_ == null - ? com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDefaultInstance() - : transactionEvent_; + return transactionEvent_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDefaultInstance() : transactionEvent_; } /** - * - * *
    * Optional. If the assessment is part of a payment transaction, provide
    * details on payment lifecycle events that occur in the transaction.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TransactionEventOrBuilder - getTransactionEventOrBuilder() { - return transactionEvent_ == null - ? com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDefaultInstance() - : transactionEvent_; + public com.google.recaptchaenterprise.v1beta1.TransactionEventOrBuilder getTransactionEventOrBuilder() { + return transactionEvent_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDefaultInstance() : transactionEvent_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1057,15 +847,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (annotation_ - != com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation - .ANNOTATION_UNSPECIFIED - .getNumber()) { + if (annotation_ != com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation.ANNOTATION_UNSPECIFIED.getNumber()) { output.writeEnum(2, annotation_); } if (getReasonsList().size() > 0) { @@ -1093,29 +881,29 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (annotation_ - != com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation - .ANNOTATION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, annotation_); + if (annotation_ != com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation.ANNOTATION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, annotation_); } { int dataSize = 0; for (int i = 0; i < reasons_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(reasons_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(reasons_.get(i)); } size += dataSize; - if (!getReasonsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - reasonsMemoizedSerializedSize = dataSize; + if (!getReasonsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }reasonsMemoizedSerializedSize = dataSize; } if (!hashedAccountId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, hashedAccountId_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, hashedAccountId_); } if (transactionEvent_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTransactionEvent()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getTransactionEvent()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1125,21 +913,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest other = - (com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest) obj; + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest other = (com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (annotation_ != other.annotation_) return false; if (!reasons_.equals(other.reasons_)) return false; - if (!getHashedAccountId().equals(other.getHashedAccountId())) return false; + if (!getHashedAccountId() + .equals(other.getHashedAccountId())) return false; if (hasTransactionEvent() != other.hasTransactionEvent()) return false; if (hasTransactionEvent()) { - if (!getTransactionEvent().equals(other.getTransactionEvent())) return false; + if (!getTransactionEvent() + .equals(other.getTransactionEvent())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1172,136 +962,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message to annotate an Assessment.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest) com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.class, - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Builder.class); + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.class, com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1320,14 +1105,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.getDefaultInstance(); } @@ -1342,18 +1126,14 @@ public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest build() @java.lang.Override public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest buildPartial() { - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest result = - new com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest(this); + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest result = new com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest result) { + private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest result) { if (((bitField0_ & 0x00000004) != 0)) { reasons_ = java.util.Collections.unmodifiableList(reasons_); bitField0_ = (bitField0_ & ~0x00000004); @@ -1361,8 +1141,7 @@ private void buildPartialRepeatedFields( result.reasons_ = reasons_; } - private void buildPartial0( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest result) { + private void buildPartial0(com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -1374,8 +1153,9 @@ private void buildPartial0( result.hashedAccountId_ = hashedAccountId_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.transactionEvent_ = - transactionEventBuilder_ == null ? transactionEvent_ : transactionEventBuilder_.build(); + result.transactionEvent_ = transactionEventBuilder_ == null + ? transactionEvent_ + : transactionEventBuilder_.build(); } } @@ -1383,50 +1163,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest) other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest other) { - if (other - == com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest other) { + if (other == com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1477,57 +1253,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - annotation_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + annotation_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + int tmpRaw = input.readEnum(); + ensureReasonsIsMutable(); + reasons_.add(tmpRaw); + break; + } // case 24 + case 26: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureReasonsIsMutable(); reasons_.add(tmpRaw); - break; - } // case 24 - case 26: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureReasonsIsMutable(); - reasons_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 26 - case 34: - { - hashedAccountId_ = input.readBytes(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage( - getTransactionEventFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + } + input.popLimit(oldLimit); + break; + } // case 26 + case 34: { + hashedAccountId_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getTransactionEventFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1537,28 +1307,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the Assessment, in the format
      * `projects/{project_number}/assessments/{assessment_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1567,24 +1332,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the Assessment, in the format
      * `projects/{project_number}/assessments/{assessment_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1592,41 +1354,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the Assessment, in the format
      * `projects/{project_number}/assessments/{assessment_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Assessment, in the format
      * `projects/{project_number}/assessments/{assessment_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -1636,24 +1387,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the Assessment, in the format
      * `projects/{project_number}/assessments/{assessment_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1663,37 +1408,26 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int annotation_ = 0; /** - * - * *
      * Optional. The annotation that will be assigned to the Event. This field can
      * be left empty to provide reasons that apply to an event without concluding
      * whether the event is legitimate or fraudulent.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for annotation. */ - @java.lang.Override - public int getAnnotationValue() { + @java.lang.Override public int getAnnotationValue() { return annotation_; } /** - * - * *
      * Optional. The annotation that will be assigned to the Event. This field can
      * be left empty to provide reasons that apply to an event without concluding
      * whether the event is legitimate or fraudulent.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for annotation to set. * @return This builder for chaining. */ @@ -1704,48 +1438,32 @@ public Builder setAnnotationValue(int value) { return this; } /** - * - * *
      * Optional. The annotation that will be assigned to the Event. This field can
      * be left empty to provide reasons that apply to an event without concluding
      * whether the event is legitimate or fraudulent.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The annotation. */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation - getAnnotation() { - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation result = - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation.forNumber( - annotation_); - return result == null - ? com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation.UNRECOGNIZED - : result; + public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation getAnnotation() { + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation result = com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation.forNumber(annotation_); + return result == null ? com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The annotation that will be assigned to the Event. This field can
      * be left empty to provide reasons that apply to an event without concluding
      * whether the event is legitimate or fraudulent.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The annotation to set. * @return This builder for chaining. */ - public Builder setAnnotation( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation value) { + public Builder setAnnotation(com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation value) { if (value == null) { throw new NullPointerException(); } @@ -1755,18 +1473,13 @@ public Builder setAnnotation( return this; } /** - * - * *
      * Optional. The annotation that will be assigned to the Event. This field can
      * be left empty to provide reasons that apply to an event without concluding
      * whether the event is legitimate or fraudulent.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearAnnotation() { @@ -1776,8 +1489,8 @@ public Builder clearAnnotation() { return this; } - private java.util.List reasons_ = java.util.Collections.emptyList(); - + private java.util.List reasons_ = + java.util.Collections.emptyList(); private void ensureReasonsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { reasons_ = new java.util.ArrayList(reasons_); @@ -1785,74 +1498,46 @@ private void ensureReasonsIsMutable() { } } /** - * - * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the reasons. */ - public java.util.List - getReasonsList() { + public java.util.List getReasonsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason>( - reasons_, reasons_converter_); + java.lang.Integer, com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason>(reasons_, reasons_converter_); } /** - * - * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of reasons. */ public int getReasonsCount() { return reasons_.size(); } /** - * - * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The reasons at the given index. */ - public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason getReasons( - int index) { + public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason getReasons(int index) { return reasons_converter_.convert(reasons_.get(index)); } /** - * - * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The reasons to set. * @return This builder for chaining. @@ -1868,22 +1553,15 @@ public Builder setReasons( return this; } /** - * - * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The reasons to add. * @return This builder for chaining. */ - public Builder addReasons( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason value) { + public Builder addReasons(com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason value) { if (value == null) { throw new NullPointerException(); } @@ -1893,24 +1571,16 @@ public Builder addReasons( return this; } /** - * - * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param values The reasons to add. * @return This builder for chaining. */ public Builder addAllReasons( - java.lang.Iterable< - ? extends com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason> - values) { + java.lang.Iterable values) { ensureReasonsIsMutable(); for (com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason value : values) { reasons_.add(value.getNumber()); @@ -1919,17 +1589,11 @@ public Builder addAllReasons( return this; } /** - * - * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearReasons() { @@ -1939,34 +1603,23 @@ public Builder clearReasons() { return this; } /** - * - * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the enum numeric values on the wire for reasons. */ - public java.util.List getReasonsValueList() { + public java.util.List + getReasonsValueList() { return java.util.Collections.unmodifiableList(reasons_); } /** - * - * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The enum numeric value on the wire of reasons at the given index. */ @@ -1974,39 +1627,28 @@ public int getReasonsValue(int index) { return reasons_.get(index); } /** - * - * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The enum numeric value on the wire for reasons to set. * @return This builder for chaining. */ - public Builder setReasonsValue(int index, int value) { + public Builder setReasonsValue( + int index, int value) { ensureReasonsIsMutable(); reasons_.set(index, value); onChanged(); return this; } /** - * - * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for reasons to add. * @return This builder for chaining. */ @@ -2017,21 +1659,16 @@ public Builder addReasonsValue(int value) { return this; } /** - * - * *
-     * Optional. Optional reasons for the annotation that will be assigned to the
-     * Event.
+     * Optional. Reasons for the annotation that are assigned to the event.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; * @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) { + public Builder addAllReasonsValue( + java.lang.Iterable values) { ensureReasonsIsMutable(); for (int value : values) { reasons_.add(value); @@ -2042,18 +1679,15 @@ public Builder addAllReasonsValue(java.lang.Iterable values) private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
-     * Optional. Optional unique stable hashed user identifier to apply to the
-     * assessment. This is an alternative to setting the hashed_account_id in
-     * CreateAssessment, for example when the account identifier is not yet known
-     * in the initial request. It is recommended that the identifier is hashed
-     * using hmac-sha256 with stable secret.
+     * Optional. Unique stable hashed user identifier to apply to the assessment.
+     * This is an alternative to setting the `hashed_account_id` in
+     * `CreateAssessment`, for example, when the account identifier is not yet
+     * known in the initial request. It is recommended that the identifier is
+     * hashed using hmac-sha256 with stable secret.
      * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hashedAccountId. */ @java.lang.Override @@ -2061,43 +1695,35 @@ public com.google.protobuf.ByteString getHashedAccountId() { return hashedAccountId_; } /** - * - * *
-     * Optional. Optional unique stable hashed user identifier to apply to the
-     * assessment. This is an alternative to setting the hashed_account_id in
-     * CreateAssessment, for example when the account identifier is not yet known
-     * in the initial request. It is recommended that the identifier is hashed
-     * using hmac-sha256 with stable secret.
+     * Optional. Unique stable hashed user identifier to apply to the assessment.
+     * This is an alternative to setting the `hashed_account_id` in
+     * `CreateAssessment`, for example, when the account identifier is not yet
+     * known in the initial request. It is recommended that the identifier is
+     * hashed using hmac-sha256 with stable secret.
      * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The hashedAccountId to set. * @return This builder for chaining. */ public Builder setHashedAccountId(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } hashedAccountId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
-     * Optional. Optional unique stable hashed user identifier to apply to the
-     * assessment. This is an alternative to setting the hashed_account_id in
-     * CreateAssessment, for example when the account identifier is not yet known
-     * in the initial request. It is recommended that the identifier is hashed
-     * using hmac-sha256 with stable secret.
+     * Optional. Unique stable hashed user identifier to apply to the assessment.
+     * This is an alternative to setting the `hashed_account_id` in
+     * `CreateAssessment`, for example, when the account identifier is not yet
+     * known in the initial request. It is recommended that the identifier is
+     * hashed using hmac-sha256 with stable secret.
      * 
* * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearHashedAccountId() { @@ -2109,64 +1735,44 @@ public Builder clearHashedAccountId() { private com.google.recaptchaenterprise.v1beta1.TransactionEvent transactionEvent_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionEvent, - com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder, - com.google.recaptchaenterprise.v1beta1.TransactionEventOrBuilder> - transactionEventBuilder_; + com.google.recaptchaenterprise.v1beta1.TransactionEvent, com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder, com.google.recaptchaenterprise.v1beta1.TransactionEventOrBuilder> transactionEventBuilder_; /** - * - * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the transactionEvent field is set. */ public boolean hasTransactionEvent() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The transactionEvent. */ public com.google.recaptchaenterprise.v1beta1.TransactionEvent getTransactionEvent() { if (transactionEventBuilder_ == null) { - return transactionEvent_ == null - ? com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDefaultInstance() - : transactionEvent_; + return transactionEvent_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDefaultInstance() : transactionEvent_; } else { return transactionEventBuilder_.getMessage(); } } /** - * - * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setTransactionEvent( - com.google.recaptchaenterprise.v1beta1.TransactionEvent value) { + public Builder setTransactionEvent(com.google.recaptchaenterprise.v1beta1.TransactionEvent value) { if (transactionEventBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2180,16 +1786,12 @@ public Builder setTransactionEvent( return this; } /** - * - * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTransactionEvent( com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder builderForValue) { @@ -2203,24 +1805,18 @@ public Builder setTransactionEvent( return this; } /** - * - * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeTransactionEvent( - com.google.recaptchaenterprise.v1beta1.TransactionEvent value) { + public Builder mergeTransactionEvent(com.google.recaptchaenterprise.v1beta1.TransactionEvent value) { if (transactionEventBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && transactionEvent_ != null - && transactionEvent_ - != com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + transactionEvent_ != null && + transactionEvent_ != com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDefaultInstance()) { getTransactionEventBuilder().mergeFrom(value); } else { transactionEvent_ = value; @@ -2233,16 +1829,12 @@ public Builder mergeTransactionEvent( return this; } /** - * - * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearTransactionEvent() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2255,76 +1847,58 @@ public Builder clearTransactionEvent() { return this; } /** - * - * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder - getTransactionEventBuilder() { + public com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder getTransactionEventBuilder() { bitField0_ |= 0x00000010; onChanged(); return getTransactionEventFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.recaptchaenterprise.v1beta1.TransactionEventOrBuilder - getTransactionEventOrBuilder() { + public com.google.recaptchaenterprise.v1beta1.TransactionEventOrBuilder getTransactionEventOrBuilder() { if (transactionEventBuilder_ != null) { return transactionEventBuilder_.getMessageOrBuilder(); } else { - return transactionEvent_ == null - ? com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDefaultInstance() - : transactionEvent_; + return transactionEvent_ == null ? + com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDefaultInstance() : transactionEvent_; } } /** - * - * *
      * Optional. If the assessment is part of a payment transaction, provide
      * details on payment lifecycle events that occur in the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionEvent, - com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder, - com.google.recaptchaenterprise.v1beta1.TransactionEventOrBuilder> + com.google.recaptchaenterprise.v1beta1.TransactionEvent, com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder, com.google.recaptchaenterprise.v1beta1.TransactionEventOrBuilder> getTransactionEventFieldBuilder() { if (transactionEventBuilder_ == null) { - transactionEventBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionEvent, - com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder, - com.google.recaptchaenterprise.v1beta1.TransactionEventOrBuilder>( - getTransactionEvent(), getParentForChildren(), isClean()); + transactionEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.TransactionEvent, com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder, com.google.recaptchaenterprise.v1beta1.TransactionEventOrBuilder>( + getTransactionEvent(), + getParentForChildren(), + isClean()); transactionEvent_ = null; } return transactionEventBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2334,43 +1908,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest) - private static final com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest(); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateAssessmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateAssessmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2382,8 +1954,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java new file mode 100644 index 000000000000..97f435f5f897 --- /dev/null +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java @@ -0,0 +1,147 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1beta1; + +public interface AnnotateAssessmentRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the Assessment, in the format
+   * `projects/{project_number}/assessments/{assessment_id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the Assessment, in the format
+   * `projects/{project_number}/assessments/{assessment_id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Optional. The annotation that will be assigned to the Event. This field can
+   * be left empty to provide reasons that apply to an event without concluding
+   * whether the event is legitimate or fraudulent.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The enum numeric value on the wire for annotation. + */ + int getAnnotationValue(); + /** + *
+   * Optional. The annotation that will be assigned to the Event. This field can
+   * be left empty to provide reasons that apply to an event without concluding
+   * whether the event is legitimate or fraudulent.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The annotation. + */ + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation getAnnotation(); + + /** + *
+   * Optional. Reasons for the annotation that are assigned to the event.
+   * 
+ * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return A list containing the reasons. + */ + java.util.List getReasonsList(); + /** + *
+   * Optional. Reasons for the annotation that are assigned to the event.
+   * 
+ * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The count of reasons. + */ + int getReasonsCount(); + /** + *
+   * Optional. Reasons for the annotation that are assigned to the event.
+   * 
+ * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the element to return. + * @return The reasons at the given index. + */ + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason getReasons(int index); + /** + *
+   * Optional. Reasons for the annotation that are assigned to the event.
+   * 
+ * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return A list containing the enum numeric values on the wire for reasons. + */ + java.util.List + getReasonsValueList(); + /** + *
+   * Optional. Reasons for the annotation that are assigned to the event.
+   * 
+ * + * repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @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); + + /** + *
+   * Optional. Unique stable hashed user identifier to apply to the assessment.
+   * This is an alternative to setting the `hashed_account_id` in
+   * `CreateAssessment`, for example, when the account identifier is not yet
+   * known in the initial request. It is recommended that the identifier is
+   * hashed using hmac-sha256 with stable secret.
+   * 
+ * + * bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The hashedAccountId. + */ + com.google.protobuf.ByteString getHashedAccountId(); + + /** + *
+   * Optional. If the assessment is part of a payment transaction, provide
+   * details on payment lifecycle events that occur in the transaction.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the transactionEvent field is set. + */ + boolean hasTransactionEvent(); + /** + *
+   * Optional. If the assessment is part of a payment transaction, provide
+   * details on payment lifecycle events that occur in the transaction.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The transactionEvent. + */ + com.google.recaptchaenterprise.v1beta1.TransactionEvent getTransactionEvent(); + /** + *
+   * Optional. If the assessment is part of a payment transaction, provide
+   * details on payment lifecycle events that occur in the transaction.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.recaptchaenterprise.v1beta1.TransactionEventOrBuilder getTransactionEventOrBuilder(); +} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponse.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponse.java similarity index 59% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponse.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponse.java index 0203d7d5dedc..8bede4233c17 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponse.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponse.java @@ -1,67 +1,48 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; /** - * - * *
  * Empty response for AnnotateAssessment.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse} */ -public final class AnnotateAssessmentResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AnnotateAssessmentResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse) AnnotateAssessmentResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AnnotateAssessmentResponse.newBuilder() to construct. private AnnotateAssessmentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private AnnotateAssessmentResponse() {} + private AnnotateAssessmentResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnnotateAssessmentResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.class, - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.Builder.class); + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.class, com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -73,7 +54,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -91,13 +73,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse other = - (com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse) obj; + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse other = (com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -116,138 +97,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Empty response for AnnotateAssessment.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse) com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.class, - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.Builder.class); + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.class, com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.Builder.class); } - // Construct using - // com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.newBuilder() - private Builder() {} + // Construct using com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -255,14 +229,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.getDefaultInstance(); } @@ -277,8 +250,7 @@ public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse build() @java.lang.Override public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse buildPartial() { - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse result = - new com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse(this); + com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse result = new com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse(this); onBuilt(); return result; } @@ -287,50 +259,46 @@ public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse) other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse other) { - if (other - == com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse other) { + if (other == com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -357,13 +325,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -373,9 +340,9 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -385,43 +352,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse) - private static final com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse(); } - public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateAssessmentResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateAssessmentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -433,8 +398,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponseOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponseOrBuilder.java new file mode 100644 index 000000000000..d4773aed170d --- /dev/null +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1beta1; + +public interface AnnotateAssessmentResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Assessment.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Assessment.java similarity index 62% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Assessment.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Assessment.java index e930d2456985..904ac6dc410c 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Assessment.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Assessment.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; /** - * - * *
  * A reCAPTCHA Enterprise assessment resource.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.Assessment} */ -public final class Assessment extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Assessment extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.Assessment) AssessmentOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Assessment.newBuilder() to construct. private Assessment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Assessment() { name_ = ""; reasons_ = java.util.Collections.emptyList(); @@ -44,38 +26,34 @@ private Assessment() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Assessment(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.Assessment.class, - com.google.recaptchaenterprise.v1beta1.Assessment.Builder.class); + com.google.recaptchaenterprise.v1beta1.Assessment.class, com.google.recaptchaenterprise.v1beta1.Assessment.Builder.class); } /** - * - * *
    * Reasons contributing to the risk analysis verdict.
    * 
* * Protobuf enum {@code google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason} */ - public enum ClassificationReason implements com.google.protobuf.ProtocolMessageEnum { + public enum ClassificationReason + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default unspecified type.
      * 
@@ -84,8 +62,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE */ CLASSIFICATION_REASON_UNSPECIFIED(0), /** - * - * *
      * Interactions matched the behavior of an automated agent.
      * 
@@ -94,8 +70,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE */ AUTOMATION(1), /** - * - * *
      * The event originated from an illegitimate environment.
      * 
@@ -104,8 +78,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE */ UNEXPECTED_ENVIRONMENT(2), /** - * - * *
      * Traffic volume from the event source is higher than normal.
      * 
@@ -114,8 +86,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE */ TOO_MUCH_TRAFFIC(3), /** - * - * *
      * Interactions with the site were significantly different than expected
      * patterns.
@@ -125,8 +95,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE
      */
     UNEXPECTED_USAGE_PATTERNS(4),
     /**
-     *
-     *
      * 
      * Too little traffic has been received from this site thus far to generate
      * quality risk analysis.
@@ -136,8 +104,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE
      */
     LOW_CONFIDENCE_SCORE(5),
     /**
-     *
-     *
      * 
      * The request matches behavioral characteristics of a carding attack.
      * 
@@ -146,8 +112,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE */ SUSPECTED_CARDING(6), /** - * - * *
      * The request matches behavioral characteristics of chargebacks for fraud.
      * 
@@ -159,8 +123,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE ; /** - * - * *
      * Default unspecified type.
      * 
@@ -169,8 +131,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE */ public static final int CLASSIFICATION_REASON_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Interactions matched the behavior of an automated agent.
      * 
@@ -179,8 +139,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE */ public static final int AUTOMATION_VALUE = 1; /** - * - * *
      * The event originated from an illegitimate environment.
      * 
@@ -189,8 +147,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE */ public static final int UNEXPECTED_ENVIRONMENT_VALUE = 2; /** - * - * *
      * Traffic volume from the event source is higher than normal.
      * 
@@ -199,8 +155,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE */ public static final int TOO_MUCH_TRAFFIC_VALUE = 3; /** - * - * *
      * Interactions with the site were significantly different than expected
      * patterns.
@@ -210,8 +164,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE
      */
     public static final int UNEXPECTED_USAGE_PATTERNS_VALUE = 4;
     /**
-     *
-     *
      * 
      * Too little traffic has been received from this site thus far to generate
      * quality risk analysis.
@@ -221,8 +173,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE
      */
     public static final int LOW_CONFIDENCE_SCORE_VALUE = 5;
     /**
-     *
-     *
      * 
      * The request matches behavioral characteristics of a carding attack.
      * 
@@ -231,8 +181,6 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE */ public static final int SUSPECTED_CARDING_VALUE = 6; /** - * - * *
      * The request matches behavioral characteristics of chargebacks for fraud.
      * 
@@ -241,6 +189,7 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE */ public static final int SUSPECTED_CHARGEBACK_VALUE = 7; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -265,24 +214,15 @@ public static ClassificationReason valueOf(int value) { */ public static ClassificationReason forNumber(int value) { switch (value) { - case 0: - return CLASSIFICATION_REASON_UNSPECIFIED; - case 1: - return AUTOMATION; - case 2: - return UNEXPECTED_ENVIRONMENT; - case 3: - return TOO_MUCH_TRAFFIC; - case 4: - return UNEXPECTED_USAGE_PATTERNS; - case 5: - return LOW_CONFIDENCE_SCORE; - case 6: - return SUSPECTED_CARDING; - case 7: - return SUSPECTED_CHARGEBACK; - default: - return null; + case 0: return CLASSIFICATION_REASON_UNSPECIFIED; + case 1: return AUTOMATION; + case 2: return UNEXPECTED_ENVIRONMENT; + case 3: return TOO_MUCH_TRAFFIC; + case 4: return UNEXPECTED_USAGE_PATTERNS; + case 5: return LOW_CONFIDENCE_SCORE; + case 6: return SUSPECTED_CARDING; + case 7: return SUSPECTED_CHARGEBACK; + default: return null; } } @@ -290,31 +230,29 @@ public static ClassificationReason forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + ClassificationReason> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ClassificationReason findValueByNumber(int number) { + return ClassificationReason.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ClassificationReason findValueByNumber(int number) { - return ClassificationReason.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.Assessment.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.Assessment.getDescriptor().getEnumTypes().get(0); } private static final ClassificationReason[] VALUES = values(); @@ -322,7 +260,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static ClassificationReason valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -340,19 +279,15 @@ private ClassificationReason(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. The resource name for the Assessment in the format
    * `projects/{project_number}/assessments/{assessment_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -361,30 +296,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name for the Assessment in the format
    * `projects/{project_number}/assessments/{assessment_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -395,14 +330,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int EVENT_FIELD_NUMBER = 2; private com.google.recaptchaenterprise.v1beta1.Event event_; /** - * - * *
    * The event being assessed.
    * 
* * .google.cloud.recaptchaenterprise.v1beta1.Event event = 2; - * * @return Whether the event field is set. */ @java.lang.Override @@ -410,25 +342,18 @@ public boolean hasEvent() { return event_ != null; } /** - * - * *
    * The event being assessed.
    * 
* * .google.cloud.recaptchaenterprise.v1beta1.Event event = 2; - * * @return The event. */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.Event getEvent() { - return event_ == null - ? com.google.recaptchaenterprise.v1beta1.Event.getDefaultInstance() - : event_; + return event_ == null ? com.google.recaptchaenterprise.v1beta1.Event.getDefaultInstance() : event_; } /** - * - * *
    * The event being assessed.
    * 
@@ -437,16 +362,12 @@ public com.google.recaptchaenterprise.v1beta1.Event getEvent() { */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.EventOrBuilder getEventOrBuilder() { - return event_ == null - ? com.google.recaptchaenterprise.v1beta1.Event.getDefaultInstance() - : event_; + return event_ == null ? com.google.recaptchaenterprise.v1beta1.Event.getDefaultInstance() : event_; } public static final int SCORE_FIELD_NUMBER = 3; private float score_ = 0F; /** - * - * *
    * Output only. Legitimate event score from 0.0 to 1.0.
    * (1.0 means very likely legitimate traffic while 0.0 means very likely
@@ -454,7 +375,6 @@ public com.google.recaptchaenterprise.v1beta1.EventOrBuilder getEventOrBuilder()
    * 
* * float score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The score. */ @java.lang.Override @@ -465,16 +385,11 @@ public float getScore() { public static final int TOKEN_PROPERTIES_FIELD_NUMBER = 4; private com.google.recaptchaenterprise.v1beta1.TokenProperties tokenProperties_; /** - * - * *
    * Output only. Properties of the provided event token.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the tokenProperties field is set. */ @java.lang.Override @@ -482,96 +397,60 @@ public boolean hasTokenProperties() { return tokenProperties_ != null; } /** - * - * *
    * Output only. Properties of the provided event token.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The tokenProperties. */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TokenProperties getTokenProperties() { - return tokenProperties_ == null - ? com.google.recaptchaenterprise.v1beta1.TokenProperties.getDefaultInstance() - : tokenProperties_; + return tokenProperties_ == null ? com.google.recaptchaenterprise.v1beta1.TokenProperties.getDefaultInstance() : tokenProperties_; } /** - * - * *
    * Output only. Properties of the provided event token.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder - getTokenPropertiesOrBuilder() { - return tokenProperties_ == null - ? com.google.recaptchaenterprise.v1beta1.TokenProperties.getDefaultInstance() - : tokenProperties_; + public com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder getTokenPropertiesOrBuilder() { + return tokenProperties_ == null ? com.google.recaptchaenterprise.v1beta1.TokenProperties.getDefaultInstance() : tokenProperties_; } public static final int REASONS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private java.util.List reasons_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason> - reasons_converter_ = + java.lang.Integer, com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason> reasons_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, - com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason>() { - public com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason convert( - java.lang.Integer from) { - com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason result = - com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason.forNumber( - from); - return result == null - ? com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason - .UNRECOGNIZED - : result; + java.lang.Integer, com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason>() { + public com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason convert(java.lang.Integer from) { + com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason result = com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason.forNumber(from); + return result == null ? com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason.UNRECOGNIZED : result; } }; /** - * - * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the reasons. */ @java.lang.Override - public java.util.List - getReasonsList() { + public java.util.List getReasonsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason>( - reasons_, reasons_converter_); + java.lang.Integer, com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason>(reasons_, reasons_converter_); } /** - * - * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of reasons. */ @java.lang.Override @@ -579,52 +458,37 @@ public int getReasonsCount() { return reasons_.size(); } /** - * - * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * 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. */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason getReasons( - int index) { + public com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason getReasons(int index) { return reasons_converter_.convert(reasons_.get(index)); } /** - * - * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * 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.lang.Override - public java.util.List getReasonsValueList() { + public java.util.List + getReasonsValueList() { return reasons_; } /** - * - * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * 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. */ @@ -632,14 +496,11 @@ public java.util.List getReasonsValueList() { public int getReasonsValue(int index) { return reasons_.get(index); } - private int reasonsMemoizedSerializedSize; public static final int PASSWORD_LEAK_VERIFICATION_FIELD_NUMBER = 7; private com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification passwordLeakVerification_; /** - * - * *
    * Information about the user's credentials used to check for leaks.
    * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -647,10 +508,7 @@ public int getReasonsValue(int index) {
    * environment.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; * @return Whether the passwordLeakVerification field is set. */ @java.lang.Override @@ -658,8 +516,6 @@ public boolean hasPasswordLeakVerification() { return passwordLeakVerification_ != null; } /** - * - * *
    * Information about the user's credentials used to check for leaks.
    * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -667,22 +523,14 @@ public boolean hasPasswordLeakVerification() {
    * environment.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; * @return The passwordLeakVerification. */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification - getPasswordLeakVerification() { - return passwordLeakVerification_ == null - ? com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.getDefaultInstance() - : passwordLeakVerification_; + public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification getPasswordLeakVerification() { + return passwordLeakVerification_ == null ? com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.getDefaultInstance() : passwordLeakVerification_; } /** - * - * *
    * Information about the user's credentials used to check for leaks.
    * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -690,33 +538,22 @@ public boolean hasPasswordLeakVerification() {
    * environment.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; - * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder - getPasswordLeakVerificationOrBuilder() { - return passwordLeakVerification_ == null - ? com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.getDefaultInstance() - : passwordLeakVerification_; + public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder getPasswordLeakVerificationOrBuilder() { + return passwordLeakVerification_ == null ? com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.getDefaultInstance() : passwordLeakVerification_; } public static final int ACCOUNT_DEFENDER_ASSESSMENT_FIELD_NUMBER = 8; - private com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment - accountDefenderAssessment_; + private com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment accountDefenderAssessment_; /** - * - * *
    * Assessment returned by account defender when a hashed_account_id is
    * provided.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; * @return Whether the accountDefenderAssessment field is set. */ @java.lang.Override @@ -724,60 +561,39 @@ public boolean hasAccountDefenderAssessment() { return accountDefenderAssessment_ != null; } /** - * - * *
    * Assessment returned by account defender when a hashed_account_id is
    * provided.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; * @return The accountDefenderAssessment. */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment - getAccountDefenderAssessment() { - return accountDefenderAssessment_ == null - ? com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDefaultInstance() - : accountDefenderAssessment_; + public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment getAccountDefenderAssessment() { + return accountDefenderAssessment_ == null ? com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDefaultInstance() : accountDefenderAssessment_; } /** - * - * *
    * Assessment returned by account defender when a hashed_account_id is
    * provided.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; - * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder - getAccountDefenderAssessmentOrBuilder() { - return accountDefenderAssessment_ == null - ? com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDefaultInstance() - : accountDefenderAssessment_; + public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder getAccountDefenderAssessmentOrBuilder() { + return accountDefenderAssessment_ == null ? com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDefaultInstance() : accountDefenderAssessment_; } public static final int FRAUD_PREVENTION_ASSESSMENT_FIELD_NUMBER = 11; - private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - fraudPreventionAssessment_; + private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraudPreventionAssessment_; /** - * - * *
    * Assessment returned by Fraud Prevention when TransactionData is provided.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; * @return Whether the fraudPreventionAssessment field is set. */ @java.lang.Override @@ -785,46 +601,30 @@ public boolean hasFraudPreventionAssessment() { return fraudPreventionAssessment_ != null; } /** - * - * *
    * Assessment returned by Fraud Prevention when TransactionData is provided.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; * @return The fraudPreventionAssessment. */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - getFraudPreventionAssessment() { - return fraudPreventionAssessment_ == null - ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance() - : fraudPreventionAssessment_; + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment getFraudPreventionAssessment() { + return fraudPreventionAssessment_ == null ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance() : fraudPreventionAssessment_; } /** - * - * *
    * Assessment returned by Fraud Prevention when TransactionData is provided.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder - getFraudPreventionAssessmentOrBuilder() { - return fraudPreventionAssessment_ == null - ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance() - : fraudPreventionAssessment_; + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder getFraudPreventionAssessmentOrBuilder() { + return fraudPreventionAssessment_ == null ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance() : fraudPreventionAssessment_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -836,7 +636,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); @@ -879,40 +680,40 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (event_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEvent()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEvent()); } if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, score_); } if (tokenProperties_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTokenProperties()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTokenProperties()); } { int dataSize = 0; for (int i = 0; i < reasons_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(reasons_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(reasons_.get(i)); } size += dataSize; - if (!getReasonsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - reasonsMemoizedSerializedSize = dataSize; + if (!getReasonsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }reasonsMemoizedSerializedSize = dataSize; } if (passwordLeakVerification_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, getPasswordLeakVerification()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getPasswordLeakVerification()); } if (accountDefenderAssessment_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, getAccountDefenderAssessment()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getAccountDefenderAssessment()); } if (fraudPreventionAssessment_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, getFraudPreventionAssessment()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getFraudPreventionAssessment()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -922,39 +723,43 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.Assessment)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.Assessment other = - (com.google.recaptchaenterprise.v1beta1.Assessment) obj; + com.google.recaptchaenterprise.v1beta1.Assessment other = (com.google.recaptchaenterprise.v1beta1.Assessment) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasEvent() != other.hasEvent()) return false; if (hasEvent()) { - if (!getEvent().equals(other.getEvent())) return false; + if (!getEvent() + .equals(other.getEvent())) return false; } if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; if (hasTokenProperties() != other.hasTokenProperties()) return false; if (hasTokenProperties()) { - if (!getTokenProperties().equals(other.getTokenProperties())) return false; + if (!getTokenProperties() + .equals(other.getTokenProperties())) return false; } if (!reasons_.equals(other.reasons_)) return false; if (hasPasswordLeakVerification() != other.hasPasswordLeakVerification()) return false; if (hasPasswordLeakVerification()) { - if (!getPasswordLeakVerification().equals(other.getPasswordLeakVerification())) return false; + if (!getPasswordLeakVerification() + .equals(other.getPasswordLeakVerification())) return false; } if (hasAccountDefenderAssessment() != other.hasAccountDefenderAssessment()) return false; if (hasAccountDefenderAssessment()) { - if (!getAccountDefenderAssessment().equals(other.getAccountDefenderAssessment())) - return false; + if (!getAccountDefenderAssessment() + .equals(other.getAccountDefenderAssessment())) return false; } if (hasFraudPreventionAssessment() != other.hasFraudPreventionAssessment()) return false; if (hasFraudPreventionAssessment()) { - if (!getFraudPreventionAssessment().equals(other.getFraudPreventionAssessment())) - return false; + if (!getFraudPreventionAssessment() + .equals(other.getFraudPreventionAssessment())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -974,7 +779,8 @@ public int hashCode() { hash = (53 * hash) + getEvent().hashCode(); } hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getScore()); if (hasTokenProperties()) { hash = (37 * hash) + TOKEN_PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + getTokenProperties().hashCode(); @@ -1001,135 +807,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.Assessment parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.Assessment parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.Assessment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.Assessment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.Assessment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.Assessment parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.Assessment parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.Assessment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.Assessment parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.Assessment parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.Assessment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.Assessment parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.Assessment parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.Assessment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.Assessment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A reCAPTCHA Enterprise assessment resource.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.Assessment} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.Assessment) com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.Assessment.class, - com.google.recaptchaenterprise.v1beta1.Assessment.Builder.class); + com.google.recaptchaenterprise.v1beta1.Assessment.class, com.google.recaptchaenterprise.v1beta1.Assessment.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.Assessment.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1167,9 +969,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_descriptor; } @java.lang.Override @@ -1188,18 +990,14 @@ public com.google.recaptchaenterprise.v1beta1.Assessment build() { @java.lang.Override public com.google.recaptchaenterprise.v1beta1.Assessment buildPartial() { - com.google.recaptchaenterprise.v1beta1.Assessment result = - new com.google.recaptchaenterprise.v1beta1.Assessment(this); + com.google.recaptchaenterprise.v1beta1.Assessment result = new com.google.recaptchaenterprise.v1beta1.Assessment(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.recaptchaenterprise.v1beta1.Assessment result) { + private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1beta1.Assessment result) { if (((bitField0_ & 0x00000010) != 0)) { reasons_ = java.util.Collections.unmodifiableList(reasons_); bitField0_ = (bitField0_ & ~0x00000010); @@ -1213,32 +1011,32 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.Assessment res result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.event_ = eventBuilder_ == null ? event_ : eventBuilder_.build(); + result.event_ = eventBuilder_ == null + ? event_ + : eventBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.score_ = score_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.tokenProperties_ = - tokenPropertiesBuilder_ == null ? tokenProperties_ : tokenPropertiesBuilder_.build(); + result.tokenProperties_ = tokenPropertiesBuilder_ == null + ? tokenProperties_ + : tokenPropertiesBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.passwordLeakVerification_ = - passwordLeakVerificationBuilder_ == null - ? passwordLeakVerification_ - : passwordLeakVerificationBuilder_.build(); + result.passwordLeakVerification_ = passwordLeakVerificationBuilder_ == null + ? passwordLeakVerification_ + : passwordLeakVerificationBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.accountDefenderAssessment_ = - accountDefenderAssessmentBuilder_ == null - ? accountDefenderAssessment_ - : accountDefenderAssessmentBuilder_.build(); + result.accountDefenderAssessment_ = accountDefenderAssessmentBuilder_ == null + ? accountDefenderAssessment_ + : accountDefenderAssessmentBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { - result.fraudPreventionAssessment_ = - fraudPreventionAssessmentBuilder_ == null - ? fraudPreventionAssessment_ - : fraudPreventionAssessmentBuilder_.build(); + result.fraudPreventionAssessment_ = fraudPreventionAssessmentBuilder_ == null + ? fraudPreventionAssessment_ + : fraudPreventionAssessmentBuilder_.build(); } } @@ -1246,39 +1044,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.Assessment res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1beta1.Assessment) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.Assessment) other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.Assessment)other); } else { super.mergeFrom(other); return this; @@ -1286,8 +1083,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.Assessment other) { - if (other == com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1347,77 +1143,74 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEventFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 29: - { - score_ = input.readFloat(); - bitField0_ |= 0x00000004; - break; - } // case 29 - case 34: - { - input.readMessage(getTokenPropertiesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEventFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 29: { + score_ = input.readFloat(); + bitField0_ |= 0x00000004; + break; + } // case 29 + case 34: { + input.readMessage( + getTokenPropertiesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + int tmpRaw = input.readEnum(); + ensureReasonsIsMutable(); + reasons_.add(tmpRaw); + break; + } // case 40 + case 42: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureReasonsIsMutable(); reasons_.add(tmpRaw); - break; - } // case 40 - case 42: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureReasonsIsMutable(); - reasons_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 42 - case 58: - { - input.readMessage( - getPasswordLeakVerificationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: - { - input.readMessage( - getAccountDefenderAssessmentFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 90: - { - input.readMessage( - getFraudPreventionAssessmentFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 90 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + } + input.popLimit(oldLimit); + break; + } // case 42 + case 58: { + input.readMessage( + getPasswordLeakVerificationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: { + input.readMessage( + getAccountDefenderAssessmentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 90: { + input.readMessage( + getFraudPreventionAssessmentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 90 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1427,26 +1220,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name for the Assessment in the format
      * `projects/{project_number}/assessments/{assessment_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1455,22 +1245,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name for the Assessment in the format
      * `projects/{project_number}/assessments/{assessment_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1478,37 +1267,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name for the Assessment in the format
      * `projects/{project_number}/assessments/{assessment_id}`.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The resource name for the Assessment in the format
      * `projects/{project_number}/assessments/{assessment_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1518,22 +1300,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource name for the Assessment in the format
      * `projects/{project_number}/assessments/{assessment_id}`.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1543,47 +1321,34 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.recaptchaenterprise.v1beta1.Event event_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.Event, - com.google.recaptchaenterprise.v1beta1.Event.Builder, - com.google.recaptchaenterprise.v1beta1.EventOrBuilder> - eventBuilder_; + com.google.recaptchaenterprise.v1beta1.Event, com.google.recaptchaenterprise.v1beta1.Event.Builder, com.google.recaptchaenterprise.v1beta1.EventOrBuilder> eventBuilder_; /** - * - * *
      * The event being assessed.
      * 
* * .google.cloud.recaptchaenterprise.v1beta1.Event event = 2; - * * @return Whether the event field is set. */ public boolean hasEvent() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The event being assessed.
      * 
* * .google.cloud.recaptchaenterprise.v1beta1.Event event = 2; - * * @return The event. */ public com.google.recaptchaenterprise.v1beta1.Event getEvent() { if (eventBuilder_ == null) { - return event_ == null - ? com.google.recaptchaenterprise.v1beta1.Event.getDefaultInstance() - : event_; + return event_ == null ? com.google.recaptchaenterprise.v1beta1.Event.getDefaultInstance() : event_; } else { return eventBuilder_.getMessage(); } } /** - * - * *
      * The event being assessed.
      * 
@@ -1604,15 +1369,14 @@ public Builder setEvent(com.google.recaptchaenterprise.v1beta1.Event value) { return this; } /** - * - * *
      * The event being assessed.
      * 
* * .google.cloud.recaptchaenterprise.v1beta1.Event event = 2; */ - public Builder setEvent(com.google.recaptchaenterprise.v1beta1.Event.Builder builderForValue) { + public Builder setEvent( + com.google.recaptchaenterprise.v1beta1.Event.Builder builderForValue) { if (eventBuilder_ == null) { event_ = builderForValue.build(); } else { @@ -1623,8 +1387,6 @@ public Builder setEvent(com.google.recaptchaenterprise.v1beta1.Event.Builder bui return this; } /** - * - * *
      * The event being assessed.
      * 
@@ -1633,9 +1395,9 @@ public Builder setEvent(com.google.recaptchaenterprise.v1beta1.Event.Builder bui */ public Builder mergeEvent(com.google.recaptchaenterprise.v1beta1.Event value) { if (eventBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && event_ != null - && event_ != com.google.recaptchaenterprise.v1beta1.Event.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + event_ != null && + event_ != com.google.recaptchaenterprise.v1beta1.Event.getDefaultInstance()) { getEventBuilder().mergeFrom(value); } else { event_ = value; @@ -1648,8 +1410,6 @@ public Builder mergeEvent(com.google.recaptchaenterprise.v1beta1.Event value) { return this; } /** - * - * *
      * The event being assessed.
      * 
@@ -1667,8 +1427,6 @@ public Builder clearEvent() { return this; } /** - * - * *
      * The event being assessed.
      * 
@@ -1681,8 +1439,6 @@ public com.google.recaptchaenterprise.v1beta1.Event.Builder getEventBuilder() { return getEventFieldBuilder().getBuilder(); } /** - * - * *
      * The event being assessed.
      * 
@@ -1693,14 +1449,11 @@ public com.google.recaptchaenterprise.v1beta1.EventOrBuilder getEventOrBuilder() if (eventBuilder_ != null) { return eventBuilder_.getMessageOrBuilder(); } else { - return event_ == null - ? com.google.recaptchaenterprise.v1beta1.Event.getDefaultInstance() - : event_; + return event_ == null ? + com.google.recaptchaenterprise.v1beta1.Event.getDefaultInstance() : event_; } } /** - * - * *
      * The event being assessed.
      * 
@@ -1708,26 +1461,21 @@ public com.google.recaptchaenterprise.v1beta1.EventOrBuilder getEventOrBuilder() * .google.cloud.recaptchaenterprise.v1beta1.Event event = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.Event, - com.google.recaptchaenterprise.v1beta1.Event.Builder, - com.google.recaptchaenterprise.v1beta1.EventOrBuilder> + com.google.recaptchaenterprise.v1beta1.Event, com.google.recaptchaenterprise.v1beta1.Event.Builder, com.google.recaptchaenterprise.v1beta1.EventOrBuilder> getEventFieldBuilder() { if (eventBuilder_ == null) { - eventBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.Event, - com.google.recaptchaenterprise.v1beta1.Event.Builder, - com.google.recaptchaenterprise.v1beta1.EventOrBuilder>( - getEvent(), getParentForChildren(), isClean()); + eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.Event, com.google.recaptchaenterprise.v1beta1.Event.Builder, com.google.recaptchaenterprise.v1beta1.EventOrBuilder>( + getEvent(), + getParentForChildren(), + isClean()); event_ = null; } return eventBuilder_; } - private float score_; + private float score_ ; /** - * - * *
      * Output only. Legitimate event score from 0.0 to 1.0.
      * (1.0 means very likely legitimate traffic while 0.0 means very likely
@@ -1735,7 +1483,6 @@ public com.google.recaptchaenterprise.v1beta1.EventOrBuilder getEventOrBuilder()
      * 
* * float score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The score. */ @java.lang.Override @@ -1743,8 +1490,6 @@ public float getScore() { return score_; } /** - * - * *
      * Output only. Legitimate event score from 0.0 to 1.0.
      * (1.0 means very likely legitimate traffic while 0.0 means very likely
@@ -1752,7 +1497,6 @@ public float getScore() {
      * 
* * float score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The score to set. * @return This builder for chaining. */ @@ -1764,8 +1508,6 @@ public Builder setScore(float value) { return this; } /** - * - * *
      * Output only. Legitimate event score from 0.0 to 1.0.
      * (1.0 means very likely legitimate traffic while 0.0 means very likely
@@ -1773,7 +1515,6 @@ public Builder setScore(float value) {
      * 
* * float score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearScore() { @@ -1785,61 +1526,41 @@ public Builder clearScore() { private com.google.recaptchaenterprise.v1beta1.TokenProperties tokenProperties_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TokenProperties, - com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder, - com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder> - tokenPropertiesBuilder_; + com.google.recaptchaenterprise.v1beta1.TokenProperties, com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder, com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder> tokenPropertiesBuilder_; /** - * - * *
      * Output only. Properties of the provided event token.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .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 ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Output only. Properties of the provided event token.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .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) { - return tokenProperties_ == null - ? com.google.recaptchaenterprise.v1beta1.TokenProperties.getDefaultInstance() - : tokenProperties_; + return tokenProperties_ == null ? com.google.recaptchaenterprise.v1beta1.TokenProperties.getDefaultInstance() : tokenProperties_; } else { return tokenPropertiesBuilder_.getMessage(); } } /** - * - * *
      * Output only. Properties of the provided event token.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setTokenProperties( - com.google.recaptchaenterprise.v1beta1.TokenProperties value) { + public Builder setTokenProperties(com.google.recaptchaenterprise.v1beta1.TokenProperties value) { if (tokenPropertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1853,15 +1574,11 @@ public Builder setTokenProperties( return this; } /** - * - * *
      * Output only. Properties of the provided event token.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTokenProperties( com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder builderForValue) { @@ -1875,23 +1592,17 @@ public Builder setTokenProperties( return this; } /** - * - * *
      * Output only. Properties of the provided event token.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeTokenProperties( - com.google.recaptchaenterprise.v1beta1.TokenProperties value) { + public Builder mergeTokenProperties(com.google.recaptchaenterprise.v1beta1.TokenProperties value) { if (tokenPropertiesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && tokenProperties_ != null - && tokenProperties_ - != com.google.recaptchaenterprise.v1beta1.TokenProperties.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + tokenProperties_ != null && + tokenProperties_ != com.google.recaptchaenterprise.v1beta1.TokenProperties.getDefaultInstance()) { getTokenPropertiesBuilder().mergeFrom(value); } else { tokenProperties_ = value; @@ -1904,15 +1615,11 @@ public Builder mergeTokenProperties( return this; } /** - * - * *
      * Output only. Properties of the provided event token.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearTokenProperties() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1925,73 +1632,55 @@ public Builder clearTokenProperties() { return this; } /** - * - * *
      * Output only. Properties of the provided event token.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder - getTokenPropertiesBuilder() { + public com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder getTokenPropertiesBuilder() { bitField0_ |= 0x00000008; onChanged(); return getTokenPropertiesFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Properties of the provided event token.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder - getTokenPropertiesOrBuilder() { + public com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder getTokenPropertiesOrBuilder() { if (tokenPropertiesBuilder_ != null) { return tokenPropertiesBuilder_.getMessageOrBuilder(); } else { - return tokenProperties_ == null - ? com.google.recaptchaenterprise.v1beta1.TokenProperties.getDefaultInstance() - : tokenProperties_; + return tokenProperties_ == null ? + com.google.recaptchaenterprise.v1beta1.TokenProperties.getDefaultInstance() : tokenProperties_; } } /** - * - * *
      * Output only. Properties of the provided event token.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TokenProperties, - com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder, - com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder> + com.google.recaptchaenterprise.v1beta1.TokenProperties, com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder, com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder> getTokenPropertiesFieldBuilder() { if (tokenPropertiesBuilder_ == null) { - tokenPropertiesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TokenProperties, - com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder, - com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder>( - getTokenProperties(), getParentForChildren(), isClean()); + tokenPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.TokenProperties, com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder, com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder>( + getTokenProperties(), + getParentForChildren(), + isClean()); tokenProperties_ = null; } return tokenPropertiesBuilder_; } - private java.util.List reasons_ = java.util.Collections.emptyList(); - + private java.util.List reasons_ = + java.util.Collections.emptyList(); private void ensureReasonsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { reasons_ = new java.util.ArrayList(reasons_); @@ -1999,70 +1688,46 @@ private void ensureReasonsIsMutable() { } } /** - * - * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * 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() { + public java.util.List getReasonsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, - com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason>( - reasons_, reasons_converter_); + java.lang.Integer, com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason>(reasons_, reasons_converter_); } /** - * - * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * 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(); } /** - * - * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * 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) { + public com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason getReasons(int index) { return reasons_converter_.convert(reasons_.get(index)); } /** - * - * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * 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. @@ -2078,21 +1743,15 @@ public Builder setReasons( return this; } /** - * - * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * 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) { + public Builder addReasons(com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason value) { if (value == null) { throw new NullPointerException(); } @@ -2102,23 +1761,16 @@ public Builder addReasons( return this; } /** - * - * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * 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< - ? extends com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason> - values) { + java.lang.Iterable values) { ensureReasonsIsMutable(); for (com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason value : values) { reasons_.add(value.getNumber()); @@ -2127,16 +1779,11 @@ public Builder addAllReasons( return this; } /** - * - * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearReasons() { @@ -2146,32 +1793,23 @@ public Builder clearReasons() { return this; } /** - * - * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * 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() { + public java.util.List + getReasonsValueList() { return java.util.Collections.unmodifiableList(reasons_); } /** - * - * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * 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. */ @@ -2179,37 +1817,28 @@ public int getReasonsValue(int index) { return reasons_.get(index); } /** - * - * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * 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 enum numeric value on the wire for reasons to set. * @return This builder for chaining. */ - public Builder setReasonsValue(int index, int value) { + public Builder setReasonsValue( + int index, int value) { ensureReasonsIsMutable(); reasons_.set(index, value); onChanged(); return this; } /** - * - * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * 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. */ @@ -2220,20 +1849,16 @@ public Builder addReasonsValue(int value) { return this; } /** - * - * *
      * Output only. Reasons contributing to the risk analysis verdict.
      * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * 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) { + public Builder addAllReasonsValue( + java.lang.Iterable values) { ensureReasonsIsMutable(); for (int value : values) { reasons_.add(value); @@ -2242,16 +1867,10 @@ public Builder addAllReasonsValue(java.lang.Iterable values) return this; } - private com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification - passwordLeakVerification_; + private com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification passwordLeakVerification_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification, - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder, - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder> - passwordLeakVerificationBuilder_; + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification, com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder, com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder> passwordLeakVerificationBuilder_; /** - * - * *
      * Information about the user's credentials used to check for leaks.
      * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -2259,18 +1878,13 @@ public Builder addAllReasonsValue(java.lang.Iterable values)
      * environment.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; * @return Whether the passwordLeakVerification field is set. */ public boolean hasPasswordLeakVerification() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Information about the user's credentials used to check for leaks.
      * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -2278,25 +1892,17 @@ public boolean hasPasswordLeakVerification() {
      * environment.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; * @return The passwordLeakVerification. */ - public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification - getPasswordLeakVerification() { + public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification getPasswordLeakVerification() { if (passwordLeakVerificationBuilder_ == null) { - return passwordLeakVerification_ == null - ? com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.getDefaultInstance() - : passwordLeakVerification_; + return passwordLeakVerification_ == null ? com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.getDefaultInstance() : passwordLeakVerification_; } else { return passwordLeakVerificationBuilder_.getMessage(); } } /** - * - * *
      * Information about the user's credentials used to check for leaks.
      * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -2304,12 +1910,9 @@ public boolean hasPasswordLeakVerification() {
      * environment.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; - * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; */ - public Builder setPasswordLeakVerification( - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification value) { + public Builder setPasswordLeakVerification(com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification value) { if (passwordLeakVerificationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2323,8 +1926,6 @@ public Builder setPasswordLeakVerification( return this; } /** - * - * *
      * Information about the user's credentials used to check for leaks.
      * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -2332,9 +1933,7 @@ public Builder setPasswordLeakVerification(
      * environment.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; - * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; */ public Builder setPasswordLeakVerification( com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder builderForValue) { @@ -2348,8 +1947,6 @@ public Builder setPasswordLeakVerification( return this; } /** - * - * *
      * Information about the user's credentials used to check for leaks.
      * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -2357,18 +1954,13 @@ public Builder setPasswordLeakVerification(
      * environment.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; - * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; */ - public Builder mergePasswordLeakVerification( - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification value) { + public Builder mergePasswordLeakVerification(com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification value) { if (passwordLeakVerificationBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && passwordLeakVerification_ != null - && passwordLeakVerification_ - != com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification - .getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + passwordLeakVerification_ != null && + passwordLeakVerification_ != com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.getDefaultInstance()) { getPasswordLeakVerificationBuilder().mergeFrom(value); } else { passwordLeakVerification_ = value; @@ -2381,8 +1973,6 @@ public Builder mergePasswordLeakVerification( return this; } /** - * - * *
      * Information about the user's credentials used to check for leaks.
      * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -2390,9 +1980,7 @@ public Builder mergePasswordLeakVerification(
      * environment.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; - * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; */ public Builder clearPasswordLeakVerification() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2405,8 +1993,6 @@ public Builder clearPasswordLeakVerification() { return this; } /** - * - * *
      * Information about the user's credentials used to check for leaks.
      * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -2414,19 +2000,14 @@ public Builder clearPasswordLeakVerification() {
      * environment.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; - * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; */ - public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder - getPasswordLeakVerificationBuilder() { + public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder getPasswordLeakVerificationBuilder() { bitField0_ |= 0x00000020; onChanged(); return getPasswordLeakVerificationFieldBuilder().getBuilder(); } /** - * - * *
      * Information about the user's credentials used to check for leaks.
      * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -2434,23 +2015,17 @@ public Builder clearPasswordLeakVerification() {
      * environment.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; - * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; */ - public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder - getPasswordLeakVerificationOrBuilder() { + public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder getPasswordLeakVerificationOrBuilder() { if (passwordLeakVerificationBuilder_ != null) { return passwordLeakVerificationBuilder_.getMessageOrBuilder(); } else { - return passwordLeakVerification_ == null - ? com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.getDefaultInstance() - : passwordLeakVerification_; + return passwordLeakVerification_ == null ? + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.getDefaultInstance() : passwordLeakVerification_; } } /** - * - * *
      * Information about the user's credentials used to check for leaks.
      * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -2458,89 +2033,62 @@ public Builder clearPasswordLeakVerification() {
      * environment.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; - * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification, - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder, - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder> + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification, com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder, com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder> getPasswordLeakVerificationFieldBuilder() { if (passwordLeakVerificationBuilder_ == null) { - passwordLeakVerificationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification, - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder, - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder>( - getPasswordLeakVerification(), getParentForChildren(), isClean()); + passwordLeakVerificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification, com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder, com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder>( + getPasswordLeakVerification(), + getParentForChildren(), + isClean()); passwordLeakVerification_ = null; } return passwordLeakVerificationBuilder_; } - private com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment - accountDefenderAssessment_; + private com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment accountDefenderAssessment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment, - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder, - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder> - accountDefenderAssessmentBuilder_; + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder> accountDefenderAssessmentBuilder_; /** - * - * *
      * Assessment returned by account defender when a hashed_account_id is
      * provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; * @return Whether the accountDefenderAssessment field is set. */ public boolean hasAccountDefenderAssessment() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Assessment returned by account defender when a hashed_account_id is
      * provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; * @return The accountDefenderAssessment. */ - public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment - getAccountDefenderAssessment() { + public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment getAccountDefenderAssessment() { if (accountDefenderAssessmentBuilder_ == null) { - return accountDefenderAssessment_ == null - ? com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDefaultInstance() - : accountDefenderAssessment_; + return accountDefenderAssessment_ == null ? com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDefaultInstance() : accountDefenderAssessment_; } else { return accountDefenderAssessmentBuilder_.getMessage(); } } /** - * - * *
      * Assessment returned by account defender when a hashed_account_id is
      * provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; - * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; */ - public Builder setAccountDefenderAssessment( - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment value) { + public Builder setAccountDefenderAssessment(com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment value) { if (accountDefenderAssessmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2554,16 +2102,12 @@ public Builder setAccountDefenderAssessment( return this; } /** - * - * *
      * Assessment returned by account defender when a hashed_account_id is
      * provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; - * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; */ public Builder setAccountDefenderAssessment( com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder builderForValue) { @@ -2577,25 +2121,18 @@ public Builder setAccountDefenderAssessment( return this; } /** - * - * *
      * Assessment returned by account defender when a hashed_account_id is
      * provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; - * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; */ - public Builder mergeAccountDefenderAssessment( - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment value) { + public Builder mergeAccountDefenderAssessment(com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment value) { if (accountDefenderAssessmentBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && accountDefenderAssessment_ != null - && accountDefenderAssessment_ - != com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment - .getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + accountDefenderAssessment_ != null && + accountDefenderAssessment_ != com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDefaultInstance()) { getAccountDefenderAssessmentBuilder().mergeFrom(value); } else { accountDefenderAssessment_ = value; @@ -2608,16 +2145,12 @@ public Builder mergeAccountDefenderAssessment( return this; } /** - * - * *
      * Assessment returned by account defender when a hashed_account_id is
      * provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; - * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; */ public Builder clearAccountDefenderAssessment() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2630,133 +2163,93 @@ public Builder clearAccountDefenderAssessment() { return this; } /** - * - * *
      * Assessment returned by account defender when a hashed_account_id is
      * provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; - * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; */ - public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder - getAccountDefenderAssessmentBuilder() { + public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder getAccountDefenderAssessmentBuilder() { bitField0_ |= 0x00000040; onChanged(); return getAccountDefenderAssessmentFieldBuilder().getBuilder(); } /** - * - * *
      * Assessment returned by account defender when a hashed_account_id is
      * provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; - * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; */ - public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder - getAccountDefenderAssessmentOrBuilder() { + public com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder getAccountDefenderAssessmentOrBuilder() { if (accountDefenderAssessmentBuilder_ != null) { return accountDefenderAssessmentBuilder_.getMessageOrBuilder(); } else { - return accountDefenderAssessment_ == null - ? com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDefaultInstance() - : accountDefenderAssessment_; + return accountDefenderAssessment_ == null ? + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.getDefaultInstance() : accountDefenderAssessment_; } } /** - * - * *
      * Assessment returned by account defender when a hashed_account_id is
      * provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; - * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment, - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder, - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder> + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder> getAccountDefenderAssessmentFieldBuilder() { if (accountDefenderAssessmentBuilder_ == null) { - accountDefenderAssessmentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment, - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder, - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder>( - getAccountDefenderAssessment(), getParentForChildren(), isClean()); + accountDefenderAssessmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment.Builder, com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder>( + getAccountDefenderAssessment(), + getParentForChildren(), + isClean()); accountDefenderAssessment_ = null; } return accountDefenderAssessmentBuilder_; } - private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - fraudPreventionAssessment_; + private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraudPreventionAssessment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder> - fraudPreventionAssessmentBuilder_; + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder> fraudPreventionAssessmentBuilder_; /** - * - * *
      * Assessment returned by Fraud Prevention when TransactionData is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; * @return Whether the fraudPreventionAssessment field is set. */ public boolean hasFraudPreventionAssessment() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Assessment returned by Fraud Prevention when TransactionData is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; * @return The fraudPreventionAssessment. */ - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - getFraudPreventionAssessment() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment getFraudPreventionAssessment() { if (fraudPreventionAssessmentBuilder_ == null) { - return fraudPreventionAssessment_ == null - ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance() - : fraudPreventionAssessment_; + return fraudPreventionAssessment_ == null ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance() : fraudPreventionAssessment_; } else { return fraudPreventionAssessmentBuilder_.getMessage(); } } /** - * - * *
      * Assessment returned by Fraud Prevention when TransactionData is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; */ - public Builder setFraudPreventionAssessment( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment value) { + public Builder setFraudPreventionAssessment(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment value) { if (fraudPreventionAssessmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2770,15 +2263,11 @@ public Builder setFraudPreventionAssessment( return this; } /** - * - * *
      * Assessment returned by Fraud Prevention when TransactionData is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; */ public Builder setFraudPreventionAssessment( com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder builderForValue) { @@ -2792,24 +2281,17 @@ public Builder setFraudPreventionAssessment( return this; } /** - * - * *
      * Assessment returned by Fraud Prevention when TransactionData is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; */ - public Builder mergeFraudPreventionAssessment( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment value) { + public Builder mergeFraudPreventionAssessment(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment value) { if (fraudPreventionAssessmentBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && fraudPreventionAssessment_ != null - && fraudPreventionAssessment_ - != com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + fraudPreventionAssessment_ != null && + fraudPreventionAssessment_ != com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance()) { getFraudPreventionAssessmentBuilder().mergeFrom(value); } else { fraudPreventionAssessment_ = value; @@ -2822,15 +2304,11 @@ public Builder mergeFraudPreventionAssessment( return this; } /** - * - * *
      * Assessment returned by Fraud Prevention when TransactionData is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; */ public Builder clearFraudPreventionAssessment() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2843,73 +2321,55 @@ public Builder clearFraudPreventionAssessment() { return this; } /** - * - * *
      * Assessment returned by Fraud Prevention when TransactionData is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; */ - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder - getFraudPreventionAssessmentBuilder() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder getFraudPreventionAssessmentBuilder() { bitField0_ |= 0x00000080; onChanged(); return getFraudPreventionAssessmentFieldBuilder().getBuilder(); } /** - * - * *
      * Assessment returned by Fraud Prevention when TransactionData is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; */ - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder - getFraudPreventionAssessmentOrBuilder() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder getFraudPreventionAssessmentOrBuilder() { if (fraudPreventionAssessmentBuilder_ != null) { return fraudPreventionAssessmentBuilder_.getMessageOrBuilder(); } else { - return fraudPreventionAssessment_ == null - ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance() - : fraudPreventionAssessment_; + return fraudPreventionAssessment_ == null ? + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance() : fraudPreventionAssessment_; } } /** - * - * *
      * Assessment returned by Fraud Prevention when TransactionData is provided.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder> + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder> getFraudPreventionAssessmentFieldBuilder() { if (fraudPreventionAssessmentBuilder_ == null) { - fraudPreventionAssessmentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder>( - getFraudPreventionAssessment(), getParentForChildren(), isClean()); + fraudPreventionAssessmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder>( + getFraudPreventionAssessment(), + getParentForChildren(), + isClean()); fraudPreventionAssessment_ = null; } return fraudPreventionAssessmentBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2919,12 +2379,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.Assessment) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.Assessment) private static final com.google.recaptchaenterprise.v1beta1.Assessment DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.Assessment(); } @@ -2933,27 +2393,27 @@ public static com.google.recaptchaenterprise.v1beta1.Assessment getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Assessment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Assessment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2968,4 +2428,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1beta1.Assessment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentName.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentName.java similarity index 100% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentName.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentName.java diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentOrBuilder.java similarity index 62% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentOrBuilder.java index 29992a373521..05e306622d29 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentOrBuilder.java @@ -1,82 +1,53 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; -public interface AssessmentOrBuilder - extends +public interface AssessmentOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.Assessment) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name for the Assessment in the format
    * `projects/{project_number}/assessments/{assessment_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name for the Assessment in the format
    * `projects/{project_number}/assessments/{assessment_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The event being assessed.
    * 
* * .google.cloud.recaptchaenterprise.v1beta1.Event event = 2; - * * @return Whether the event field is set. */ boolean hasEvent(); /** - * - * *
    * The event being assessed.
    * 
* * .google.cloud.recaptchaenterprise.v1beta1.Event event = 2; - * * @return The event. */ com.google.recaptchaenterprise.v1beta1.Event getEvent(); /** - * - * *
    * The event being assessed.
    * 
@@ -86,8 +57,6 @@ public interface AssessmentOrBuilder com.google.recaptchaenterprise.v1beta1.EventOrBuilder getEventOrBuilder(); /** - * - * *
    * Output only. Legitimate event score from 0.0 to 1.0.
    * (1.0 means very likely legitimate traffic while 0.0 means very likely
@@ -95,129 +64,87 @@ public interface AssessmentOrBuilder
    * 
* * float score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The score. */ float getScore(); /** - * - * *
    * Output only. Properties of the provided event token.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the tokenProperties field is set. */ boolean hasTokenProperties(); /** - * - * *
    * Output only. Properties of the provided event token.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The tokenProperties. */ com.google.recaptchaenterprise.v1beta1.TokenProperties getTokenProperties(); /** - * - * *
    * Output only. Properties of the provided event token.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder getTokenPropertiesOrBuilder(); /** - * - * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * 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(); + java.util.List getReasonsList(); /** - * - * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of reasons. */ int getReasonsCount(); /** - * - * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * 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); /** - * - * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * 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(); + java.util.List + getReasonsValueList(); /** - * - * *
    * Output only. Reasons contributing to the risk analysis verdict.
    * 
* - * - * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * 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); /** - * - * *
    * Information about the user's credentials used to check for leaks.
    * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -225,16 +152,11 @@ public interface AssessmentOrBuilder
    * environment.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; * @return Whether the passwordLeakVerification field is set. */ boolean hasPasswordLeakVerification(); /** - * - * *
    * Information about the user's credentials used to check for leaks.
    * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -242,16 +164,11 @@ public interface AssessmentOrBuilder
    * environment.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; * @return The passwordLeakVerification. */ com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification getPasswordLeakVerification(); /** - * - * *
    * Information about the user's credentials used to check for leaks.
    * This feature is part of the Early Access Program (EAP). Exercise caution,
@@ -259,97 +176,64 @@ public interface AssessmentOrBuilder
    * environment.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; - * + * .google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification password_leak_verification = 7; */ - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder - getPasswordLeakVerificationOrBuilder(); + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder getPasswordLeakVerificationOrBuilder(); /** - * - * *
    * Assessment returned by account defender when a hashed_account_id is
    * provided.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; * @return Whether the accountDefenderAssessment field is set. */ boolean hasAccountDefenderAssessment(); /** - * - * *
    * Assessment returned by account defender when a hashed_account_id is
    * provided.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; * @return The accountDefenderAssessment. */ com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessment getAccountDefenderAssessment(); /** - * - * *
    * Assessment returned by account defender when a hashed_account_id is
    * provided.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; - * + * .google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment account_defender_assessment = 8; */ - com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder - getAccountDefenderAssessmentOrBuilder(); + com.google.recaptchaenterprise.v1beta1.AccountDefenderAssessmentOrBuilder getAccountDefenderAssessmentOrBuilder(); /** - * - * *
    * Assessment returned by Fraud Prevention when TransactionData is provided.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; * @return Whether the fraudPreventionAssessment field is set. */ boolean hasFraudPreventionAssessment(); /** - * - * *
    * Assessment returned by Fraud Prevention when TransactionData is provided.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; * @return The fraudPreventionAssessment. */ com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment getFraudPreventionAssessment(); /** - * - * *
    * Assessment returned by Fraud Prevention when TransactionData is provided.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment fraud_prevention_assessment = 11; */ - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder - getFraudPreventionAssessmentOrBuilder(); + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder getFraudPreventionAssessmentOrBuilder(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequest.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequest.java similarity index 60% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequest.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequest.java index 98b0c32679bd..7eeeb4ed2181 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequest.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; /** - * - * *
  * The create assessment request message.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest} */ -public final class CreateAssessmentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateAssessmentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest) CreateAssessmentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateAssessmentRequest.newBuilder() to construct. private CreateAssessmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateAssessmentRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateAssessmentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.class, - com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.Builder.class); + com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.class, com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The name of the project in which the assessment will be created,
    * in the format `projects/{project_number}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -86,32 +61,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The name of the project in which the assessment will be created,
    * in the format `projects/{project_number}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -122,16 +95,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int ASSESSMENT_FIELD_NUMBER = 2; private com.google.recaptchaenterprise.v1beta1.Assessment assessment_; /** - * - * *
    * Required. The assessment details.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the assessment field is set. */ @java.lang.Override @@ -139,44 +107,30 @@ public boolean hasAssessment() { return assessment_ != null; } /** - * - * *
    * Required. The assessment details.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The assessment. */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.Assessment getAssessment() { - return assessment_ == null - ? com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance() - : assessment_; + return assessment_ == null ? com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance() : assessment_; } /** - * - * *
    * Required. The assessment details.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder getAssessmentOrBuilder() { - return assessment_ == null - ? com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance() - : assessment_; + return assessment_ == null ? com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance() : assessment_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +142,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -208,7 +163,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (assessment_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAssessment()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAssessment()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -218,18 +174,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest other = - (com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest) obj; + com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest other = (com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasAssessment() != other.hasAssessment()) return false; if (hasAssessment()) { - if (!getAssessment().equals(other.getAssessment())) return false; + if (!getAssessment() + .equals(other.getAssessment())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -254,136 +211,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The create assessment request message.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest) com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.class, - com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.Builder.class); + com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.class, com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -398,14 +350,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.getDefaultInstance(); } @@ -420,23 +371,21 @@ public com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest build() { @java.lang.Override public com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest buildPartial() { - com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest result = - new com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest result = new com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest result) { + private void buildPartial0(com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.assessment_ = assessmentBuilder_ == null ? assessment_ : assessmentBuilder_.build(); + result.assessment_ = assessmentBuilder_ == null + ? assessment_ + : assessmentBuilder_.build(); } } @@ -444,39 +393,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest) other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest)other); } else { super.mergeFrom(other); return this; @@ -484,9 +432,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest other) { - if (other - == com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -521,25 +467,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getAssessmentFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getAssessmentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -549,28 +494,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the project in which the assessment will be created,
      * in the format `projects/{project_number}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -579,24 +519,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the project in which the assessment will be created,
      * in the format `projects/{project_number}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -604,41 +541,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the project in which the assessment will be created,
      * in the format `projects/{project_number}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the project in which the assessment will be created,
      * in the format `projects/{project_number}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -648,24 +574,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The name of the project in which the assessment will be created,
      * in the format `projects/{project_number}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -675,58 +595,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.recaptchaenterprise.v1beta1.Assessment assessment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.Assessment, - com.google.recaptchaenterprise.v1beta1.Assessment.Builder, - com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder> - assessmentBuilder_; + com.google.recaptchaenterprise.v1beta1.Assessment, com.google.recaptchaenterprise.v1beta1.Assessment.Builder, com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder> assessmentBuilder_; /** - * - * *
      * Required. The assessment details.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the assessment field is set. */ public boolean hasAssessment() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The assessment details.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .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) { - return assessment_ == null - ? com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance() - : assessment_; + return assessment_ == null ? com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance() : assessment_; } else { return assessmentBuilder_.getMessage(); } } /** - * - * *
      * Required. The assessment details.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAssessment(com.google.recaptchaenterprise.v1beta1.Assessment value) { if (assessmentBuilder_ == null) { @@ -742,15 +643,11 @@ public Builder setAssessment(com.google.recaptchaenterprise.v1beta1.Assessment v return this; } /** - * - * *
      * Required. The assessment details.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAssessment( com.google.recaptchaenterprise.v1beta1.Assessment.Builder builderForValue) { @@ -764,22 +661,17 @@ public Builder setAssessment( return this; } /** - * - * *
      * Required. The assessment details.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeAssessment(com.google.recaptchaenterprise.v1beta1.Assessment value) { if (assessmentBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && assessment_ != null - && assessment_ - != com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + assessment_ != null && + assessment_ != com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance()) { getAssessmentBuilder().mergeFrom(value); } else { assessment_ = value; @@ -792,15 +684,11 @@ public Builder mergeAssessment(com.google.recaptchaenterprise.v1beta1.Assessment return this; } /** - * - * *
      * Required. The assessment details.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAssessment() { bitField0_ = (bitField0_ & ~0x00000002); @@ -813,15 +701,11 @@ public Builder clearAssessment() { return this; } /** - * - * *
      * Required. The assessment details.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.recaptchaenterprise.v1beta1.Assessment.Builder getAssessmentBuilder() { bitField0_ |= 0x00000002; @@ -829,55 +713,43 @@ public com.google.recaptchaenterprise.v1beta1.Assessment.Builder getAssessmentBu return getAssessmentFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The assessment details.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder getAssessmentOrBuilder() { if (assessmentBuilder_ != null) { return assessmentBuilder_.getMessageOrBuilder(); } else { - return assessment_ == null - ? com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance() - : assessment_; + return assessment_ == null ? + com.google.recaptchaenterprise.v1beta1.Assessment.getDefaultInstance() : assessment_; } } /** - * - * *
      * Required. The assessment details.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.Assessment, - com.google.recaptchaenterprise.v1beta1.Assessment.Builder, - com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder> + com.google.recaptchaenterprise.v1beta1.Assessment, com.google.recaptchaenterprise.v1beta1.Assessment.Builder, com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder> getAssessmentFieldBuilder() { if (assessmentBuilder_ == null) { - assessmentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.Assessment, - com.google.recaptchaenterprise.v1beta1.Assessment.Builder, - com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder>( - getAssessment(), getParentForChildren(), isClean()); + assessmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.Assessment, com.google.recaptchaenterprise.v1beta1.Assessment.Builder, com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder>( + getAssessment(), + getParentForChildren(), + isClean()); assessment_ = null; } return assessmentBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -887,43 +759,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest) - private static final com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest(); } - public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateAssessmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAssessmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -935,8 +805,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.CreateAssessmentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequestOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequestOrBuilder.java new file mode 100644 index 000000000000..f5cf5c8586af --- /dev/null +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1beta1; + +public interface CreateAssessmentRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the project in which the assessment will be created,
+   * in the format `projects/{project_number}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The name of the project in which the assessment will be created,
+   * in the format `projects/{project_number}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The assessment details.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the assessment field is set. + */ + boolean hasAssessment(); + /** + *
+   * Required. The assessment details.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The assessment. + */ + com.google.recaptchaenterprise.v1beta1.Assessment getAssessment(); + /** + *
+   * Required. The assessment details.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder getAssessmentOrBuilder(); +} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Event.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Event.java similarity index 71% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Event.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Event.java index 6d16a43f8eab..242cb94af9e4 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Event.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Event.java @@ -1,34 +1,20 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; -/** Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.Event} */ -public final class Event extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.Event} + */ +public final class Event extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.Event) EventOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Event.newBuilder() to construct. private Event(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Event() { token_ = ""; siteKey_ = ""; @@ -40,39 +26,34 @@ private Event() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Event(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.Event.class, - com.google.recaptchaenterprise.v1beta1.Event.Builder.class); + com.google.recaptchaenterprise.v1beta1.Event.class, com.google.recaptchaenterprise.v1beta1.Event.Builder.class); } public static final int TOKEN_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object token_ = ""; /** - * - * *
    * Optional. The user response token provided by the reCAPTCHA Enterprise
    * client-side integration on your site.
    * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The token. */ @java.lang.Override @@ -81,30 +62,30 @@ public java.lang.String getToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); token_ = s; return s; } } /** - * - * *
    * Optional. The user response token provided by the reCAPTCHA Enterprise
    * client-side integration on your site.
    * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for token. */ @java.lang.Override - public com.google.protobuf.ByteString getTokenBytes() { + public com.google.protobuf.ByteString + getTokenBytes() { java.lang.Object ref = token_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); token_ = b; return b; } else { @@ -113,19 +94,15 @@ public com.google.protobuf.ByteString getTokenBytes() { } public static final int SITE_KEY_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object siteKey_ = ""; /** - * - * *
    * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
    * site and generate the token.
    * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The siteKey. */ @java.lang.Override @@ -134,30 +111,30 @@ public java.lang.String getSiteKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); siteKey_ = s; return s; } } /** - * - * *
    * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
    * site and generate the token.
    * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for siteKey. */ @java.lang.Override - public com.google.protobuf.ByteString getSiteKeyBytes() { + public com.google.protobuf.ByteString + getSiteKeyBytes() { java.lang.Object ref = siteKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); siteKey_ = b; return b; } else { @@ -166,19 +143,15 @@ public com.google.protobuf.ByteString getSiteKeyBytes() { } public static final int USER_AGENT_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object userAgent_ = ""; /** - * - * *
    * Optional. The user agent present in the request from the user's device
    * related to this event.
    * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The userAgent. */ @java.lang.Override @@ -187,30 +160,30 @@ public java.lang.String getUserAgent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userAgent_ = s; return s; } } /** - * - * *
    * Optional. The user agent present in the request from the user's device
    * related to this event.
    * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for userAgent. */ @java.lang.Override - public com.google.protobuf.ByteString getUserAgentBytes() { + public com.google.protobuf.ByteString + getUserAgentBytes() { java.lang.Object ref = userAgent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userAgent_ = b; return b; } else { @@ -219,19 +192,15 @@ public com.google.protobuf.ByteString getUserAgentBytes() { } public static final int USER_IP_ADDRESS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object userIpAddress_ = ""; /** - * - * *
    * Optional. The IP address in the request from the user's device related to
    * this event.
    * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The userIpAddress. */ @java.lang.Override @@ -240,30 +209,30 @@ public java.lang.String getUserIpAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userIpAddress_ = s; return s; } } /** - * - * *
    * Optional. The IP address in the request from the user's device related to
    * this event.
    * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for userIpAddress. */ @java.lang.Override - public com.google.protobuf.ByteString getUserIpAddressBytes() { + public com.google.protobuf.ByteString + getUserIpAddressBytes() { java.lang.Object ref = userIpAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userIpAddress_ = b; return b; } else { @@ -272,12 +241,9 @@ public com.google.protobuf.ByteString getUserIpAddressBytes() { } public static final int EXPECTED_ACTION_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object expectedAction_ = ""; /** - * - * *
    * Optional. The expected action for this type of event. This should be the
    * same action provided at token generation time on client-side platforms
@@ -285,7 +251,6 @@ public com.google.protobuf.ByteString getUserIpAddressBytes() {
    * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The expectedAction. */ @java.lang.Override @@ -294,15 +259,14 @@ public java.lang.String getExpectedAction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); expectedAction_ = s; return s; } } /** - * - * *
    * Optional. The expected action for this type of event. This should be the
    * same action provided at token generation time on client-side platforms
@@ -310,15 +274,16 @@ public java.lang.String getExpectedAction() {
    * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for expectedAction. */ @java.lang.Override - public com.google.protobuf.ByteString getExpectedActionBytes() { + public com.google.protobuf.ByteString + getExpectedActionBytes() { java.lang.Object ref = expectedAction_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); expectedAction_ = b; return b; } else { @@ -329,15 +294,12 @@ public com.google.protobuf.ByteString getExpectedActionBytes() { public static final int HASHED_ACCOUNT_ID_FIELD_NUMBER = 6; private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * Optional. Unique stable hashed user identifier for the request. The
    * identifier must be hashed using hmac-sha256 with stable secret.
    * 
* * bytes hashed_account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hashedAccountId. */ @java.lang.Override @@ -348,18 +310,13 @@ public com.google.protobuf.ByteString getHashedAccountId() { public static final int TRANSACTION_DATA_FIELD_NUMBER = 13; private com.google.recaptchaenterprise.v1beta1.TransactionData transactionData_; /** - * - * *
    * Optional. Data describing a payment transaction to be assessed. Sending
    * this data enables reCAPTCHA Enterprise Fraud Prevention and the
    * FraudPreventionAssessment component in the response.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the transactionData field is set. */ @java.lang.Override @@ -367,49 +324,34 @@ public boolean hasTransactionData() { return transactionData_ != null; } /** - * - * *
    * Optional. Data describing a payment transaction to be assessed. Sending
    * this data enables reCAPTCHA Enterprise Fraud Prevention and the
    * FraudPreventionAssessment component in the response.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The transactionData. */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData getTransactionData() { - return transactionData_ == null - ? com.google.recaptchaenterprise.v1beta1.TransactionData.getDefaultInstance() - : transactionData_; + return transactionData_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.getDefaultInstance() : transactionData_; } /** - * - * *
    * Optional. Data describing a payment transaction to be assessed. Sending
    * this data enables reCAPTCHA Enterprise Fraud Prevention and the
    * FraudPreventionAssessment component in the response.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TransactionDataOrBuilder - getTransactionDataOrBuilder() { - return transactionData_ == null - ? com.google.recaptchaenterprise.v1beta1.TransactionData.getDefaultInstance() - : transactionData_; + public com.google.recaptchaenterprise.v1beta1.TransactionDataOrBuilder getTransactionDataOrBuilder() { + return transactionData_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.getDefaultInstance() : transactionData_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -421,7 +363,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(token_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, token_); } @@ -468,10 +411,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, expectedAction_); } if (!hashedAccountId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, hashedAccountId_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, hashedAccountId_); } if (transactionData_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getTransactionData()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getTransactionData()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -481,23 +426,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.Event)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.Event other = - (com.google.recaptchaenterprise.v1beta1.Event) obj; - - if (!getToken().equals(other.getToken())) return false; - if (!getSiteKey().equals(other.getSiteKey())) return false; - if (!getUserAgent().equals(other.getUserAgent())) return false; - if (!getUserIpAddress().equals(other.getUserIpAddress())) return false; - if (!getExpectedAction().equals(other.getExpectedAction())) return false; - if (!getHashedAccountId().equals(other.getHashedAccountId())) return false; + com.google.recaptchaenterprise.v1beta1.Event other = (com.google.recaptchaenterprise.v1beta1.Event) obj; + + if (!getToken() + .equals(other.getToken())) return false; + if (!getSiteKey() + .equals(other.getSiteKey())) return false; + if (!getUserAgent() + .equals(other.getUserAgent())) return false; + if (!getUserIpAddress() + .equals(other.getUserIpAddress())) return false; + if (!getExpectedAction() + .equals(other.getExpectedAction())) return false; + if (!getHashedAccountId() + .equals(other.getHashedAccountId())) return false; if (hasTransactionData() != other.hasTransactionData()) return false; if (hasTransactionData()) { - if (!getTransactionData().equals(other.getTransactionData())) return false; + if (!getTransactionData() + .equals(other.getTransactionData())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -531,128 +482,128 @@ public int hashCode() { return hash; } - public static com.google.recaptchaenterprise.v1beta1.Event parseFrom(java.nio.ByteBuffer data) + public static com.google.recaptchaenterprise.v1beta1.Event parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.Event parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.Event parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.Event parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.Event parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.Event parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.Event parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.Event parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.Event parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.Event parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.Event parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.Event parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.Event parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.Event prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.Event} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.Event} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.Event) com.google.recaptchaenterprise.v1beta1.EventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.Event.class, - com.google.recaptchaenterprise.v1beta1.Event.Builder.class); + com.google.recaptchaenterprise.v1beta1.Event.class, com.google.recaptchaenterprise.v1beta1.Event.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.Event.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -672,9 +623,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_descriptor; } @java.lang.Override @@ -693,11 +644,8 @@ public com.google.recaptchaenterprise.v1beta1.Event build() { @java.lang.Override public com.google.recaptchaenterprise.v1beta1.Event buildPartial() { - com.google.recaptchaenterprise.v1beta1.Event result = - new com.google.recaptchaenterprise.v1beta1.Event(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1beta1.Event result = new com.google.recaptchaenterprise.v1beta1.Event(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -723,8 +671,9 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.Event result) result.hashedAccountId_ = hashedAccountId_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.transactionData_ = - transactionDataBuilder_ == null ? transactionData_ : transactionDataBuilder_.build(); + result.transactionData_ = transactionDataBuilder_ == null + ? transactionData_ + : transactionDataBuilder_.build(); } } @@ -732,39 +681,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.Event result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1beta1.Event) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.Event) other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.Event)other); } else { super.mergeFrom(other); return this; @@ -830,55 +778,49 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - token_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - siteKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - userAgent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - userIpAddress_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - expectedAction_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - hashedAccountId_ = input.readBytes(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 106: - { - input.readMessage(getTransactionDataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 106 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + token_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + siteKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + userAgent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + userIpAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + expectedAction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + hashedAccountId_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 106: { + input.readMessage( + getTransactionDataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 106 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -888,26 +830,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object token_ = ""; /** - * - * *
      * Optional. The user response token provided by the reCAPTCHA Enterprise
      * client-side integration on your site.
      * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The token. */ public java.lang.String getToken() { java.lang.Object ref = token_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); token_ = s; return s; @@ -916,22 +855,21 @@ public java.lang.String getToken() { } } /** - * - * *
      * Optional. The user response token provided by the reCAPTCHA Enterprise
      * client-side integration on your site.
      * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for token. */ - public com.google.protobuf.ByteString getTokenBytes() { + public com.google.protobuf.ByteString + getTokenBytes() { java.lang.Object ref = token_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); token_ = b; return b; } else { @@ -939,37 +877,30 @@ public com.google.protobuf.ByteString getTokenBytes() { } } /** - * - * *
      * Optional. The user response token provided by the reCAPTCHA Enterprise
      * client-side integration on your site.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } token_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Optional. The user response token provided by the reCAPTCHA Enterprise
      * client-side integration on your site.
      * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearToken() { @@ -979,22 +910,18 @@ public Builder clearToken() { return this; } /** - * - * *
      * Optional. The user response token provided by the reCAPTCHA Enterprise
      * client-side integration on your site.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); token_ = value; bitField0_ |= 0x00000001; @@ -1004,21 +931,19 @@ public Builder setTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object siteKey_ = ""; /** - * - * *
      * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
      * site and generate the token.
      * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The siteKey. */ public java.lang.String getSiteKey() { java.lang.Object ref = siteKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); siteKey_ = s; return s; @@ -1027,22 +952,21 @@ public java.lang.String getSiteKey() { } } /** - * - * *
      * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
      * site and generate the token.
      * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for siteKey. */ - public com.google.protobuf.ByteString getSiteKeyBytes() { + public com.google.protobuf.ByteString + getSiteKeyBytes() { java.lang.Object ref = siteKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); siteKey_ = b; return b; } else { @@ -1050,37 +974,30 @@ public com.google.protobuf.ByteString getSiteKeyBytes() { } } /** - * - * *
      * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
      * site and generate the token.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setSiteKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } siteKey_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
      * site and generate the token.
      * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSiteKey() { @@ -1090,22 +1007,18 @@ public Builder clearSiteKey() { return this; } /** - * - * *
      * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
      * site and generate the token.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setSiteKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); siteKey_ = value; bitField0_ |= 0x00000002; @@ -1115,21 +1028,19 @@ public Builder setSiteKeyBytes(com.google.protobuf.ByteString value) { private java.lang.Object userAgent_ = ""; /** - * - * *
      * Optional. The user agent present in the request from the user's device
      * related to this event.
      * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The userAgent. */ public java.lang.String getUserAgent() { java.lang.Object ref = userAgent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userAgent_ = s; return s; @@ -1138,22 +1049,21 @@ public java.lang.String getUserAgent() { } } /** - * - * *
      * Optional. The user agent present in the request from the user's device
      * related to this event.
      * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for userAgent. */ - public com.google.protobuf.ByteString getUserAgentBytes() { + public com.google.protobuf.ByteString + getUserAgentBytes() { java.lang.Object ref = userAgent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userAgent_ = b; return b; } else { @@ -1161,37 +1071,30 @@ public com.google.protobuf.ByteString getUserAgentBytes() { } } /** - * - * *
      * Optional. The user agent present in the request from the user's device
      * related to this event.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setUserAgent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } userAgent_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. The user agent present in the request from the user's device
      * related to this event.
      * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearUserAgent() { @@ -1201,22 +1104,18 @@ public Builder clearUserAgent() { return this; } /** - * - * *
      * Optional. The user agent present in the request from the user's device
      * related to this event.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setUserAgentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userAgent_ = value; bitField0_ |= 0x00000004; @@ -1226,21 +1125,19 @@ public Builder setUserAgentBytes(com.google.protobuf.ByteString value) { private java.lang.Object userIpAddress_ = ""; /** - * - * *
      * Optional. The IP address in the request from the user's device related to
      * this event.
      * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The userIpAddress. */ public java.lang.String getUserIpAddress() { java.lang.Object ref = userIpAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userIpAddress_ = s; return s; @@ -1249,22 +1146,21 @@ public java.lang.String getUserIpAddress() { } } /** - * - * *
      * Optional. The IP address in the request from the user's device related to
      * this event.
      * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for userIpAddress. */ - public com.google.protobuf.ByteString getUserIpAddressBytes() { + public com.google.protobuf.ByteString + getUserIpAddressBytes() { java.lang.Object ref = userIpAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userIpAddress_ = b; return b; } else { @@ -1272,37 +1168,30 @@ public com.google.protobuf.ByteString getUserIpAddressBytes() { } } /** - * - * *
      * Optional. The IP address in the request from the user's device related to
      * this event.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setUserIpAddress( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } userIpAddress_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. The IP address in the request from the user's device related to
      * this event.
      * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearUserIpAddress() { @@ -1312,22 +1201,18 @@ public Builder clearUserIpAddress() { return this; } /** - * - * *
      * Optional. The IP address in the request from the user's device related to
      * this event.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setUserIpAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userIpAddress_ = value; bitField0_ |= 0x00000008; @@ -1337,8 +1222,6 @@ public Builder setUserIpAddressBytes(com.google.protobuf.ByteString value) { private java.lang.Object expectedAction_ = ""; /** - * - * *
      * Optional. The expected action for this type of event. This should be the
      * same action provided at token generation time on client-side platforms
@@ -1346,13 +1229,13 @@ 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_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); expectedAction_ = s; return s; @@ -1361,8 +1244,6 @@ public java.lang.String getExpectedAction() { } } /** - * - * *
      * Optional. The expected action for this type of event. This should be the
      * same action provided at token generation time on client-side platforms
@@ -1370,14 +1251,15 @@ 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() { + public com.google.protobuf.ByteString + getExpectedActionBytes() { java.lang.Object ref = expectedAction_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); expectedAction_ = b; return b; } else { @@ -1385,8 +1267,6 @@ public com.google.protobuf.ByteString getExpectedActionBytes() { } } /** - * - * *
      * Optional. The expected action for this type of event. This should be the
      * same action provided at token generation time on client-side platforms
@@ -1394,22 +1274,18 @@ 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) { - throw new NullPointerException(); - } + public Builder setExpectedAction( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } expectedAction_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Optional. The expected action for this type of event. This should be the
      * same action provided at token generation time on client-side platforms
@@ -1417,7 +1293,6 @@ public Builder setExpectedAction(java.lang.String value) {
      * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearExpectedAction() { @@ -1427,8 +1302,6 @@ public Builder clearExpectedAction() { return this; } /** - * - * *
      * Optional. The expected action for this type of event. This should be the
      * same action provided at token generation time on client-side platforms
@@ -1436,14 +1309,12 @@ 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) { - throw new NullPointerException(); - } + public Builder setExpectedActionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); expectedAction_ = value; bitField0_ |= 0x00000010; @@ -1453,15 +1324,12 @@ public Builder setExpectedActionBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString hashedAccountId_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Optional. Unique stable hashed user identifier for the request. The
      * identifier must be hashed using hmac-sha256 with stable secret.
      * 
* * bytes hashed_account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hashedAccountId. */ @java.lang.Override @@ -1469,37 +1337,29 @@ public com.google.protobuf.ByteString getHashedAccountId() { return hashedAccountId_; } /** - * - * *
      * Optional. Unique stable hashed user identifier for the request. The
      * identifier must be hashed using hmac-sha256 with stable secret.
      * 
* * bytes hashed_account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The hashedAccountId to set. * @return This builder for chaining. */ public Builder setHashedAccountId(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } hashedAccountId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Optional. Unique stable hashed user identifier for the request. The
      * identifier must be hashed using hmac-sha256 with stable secret.
      * 
* * bytes hashed_account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearHashedAccountId() { @@ -1511,67 +1371,47 @@ public Builder clearHashedAccountId() { private com.google.recaptchaenterprise.v1beta1.TransactionData transactionData_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData, - com.google.recaptchaenterprise.v1beta1.TransactionData.Builder, - com.google.recaptchaenterprise.v1beta1.TransactionDataOrBuilder> - transactionDataBuilder_; + com.google.recaptchaenterprise.v1beta1.TransactionData, com.google.recaptchaenterprise.v1beta1.TransactionData.Builder, com.google.recaptchaenterprise.v1beta1.TransactionDataOrBuilder> transactionDataBuilder_; /** - * - * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the transactionData field is set. */ public boolean hasTransactionData() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The transactionData. */ public com.google.recaptchaenterprise.v1beta1.TransactionData getTransactionData() { if (transactionDataBuilder_ == null) { - return transactionData_ == null - ? com.google.recaptchaenterprise.v1beta1.TransactionData.getDefaultInstance() - : transactionData_; + return transactionData_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.getDefaultInstance() : transactionData_; } else { return transactionDataBuilder_.getMessage(); } } /** - * - * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setTransactionData( - com.google.recaptchaenterprise.v1beta1.TransactionData value) { + public Builder setTransactionData(com.google.recaptchaenterprise.v1beta1.TransactionData value) { if (transactionDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1585,17 +1425,13 @@ public Builder setTransactionData( return this; } /** - * - * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTransactionData( com.google.recaptchaenterprise.v1beta1.TransactionData.Builder builderForValue) { @@ -1609,25 +1445,19 @@ public Builder setTransactionData( return this; } /** - * - * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeTransactionData( - com.google.recaptchaenterprise.v1beta1.TransactionData value) { + public Builder mergeTransactionData(com.google.recaptchaenterprise.v1beta1.TransactionData value) { if (transactionDataBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && transactionData_ != null - && transactionData_ - != com.google.recaptchaenterprise.v1beta1.TransactionData.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + transactionData_ != null && + transactionData_ != com.google.recaptchaenterprise.v1beta1.TransactionData.getDefaultInstance()) { getTransactionDataBuilder().mergeFrom(value); } else { transactionData_ = value; @@ -1640,17 +1470,13 @@ public Builder mergeTransactionData( return this; } /** - * - * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearTransactionData() { bitField0_ = (bitField0_ & ~0x00000040); @@ -1663,79 +1489,61 @@ public Builder clearTransactionData() { return this; } /** - * - * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.recaptchaenterprise.v1beta1.TransactionData.Builder - getTransactionDataBuilder() { + public com.google.recaptchaenterprise.v1beta1.TransactionData.Builder getTransactionDataBuilder() { bitField0_ |= 0x00000040; onChanged(); return getTransactionDataFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.recaptchaenterprise.v1beta1.TransactionDataOrBuilder - getTransactionDataOrBuilder() { + public com.google.recaptchaenterprise.v1beta1.TransactionDataOrBuilder getTransactionDataOrBuilder() { if (transactionDataBuilder_ != null) { return transactionDataBuilder_.getMessageOrBuilder(); } else { - return transactionData_ == null - ? com.google.recaptchaenterprise.v1beta1.TransactionData.getDefaultInstance() - : transactionData_; + return transactionData_ == null ? + com.google.recaptchaenterprise.v1beta1.TransactionData.getDefaultInstance() : transactionData_; } } /** - * - * *
      * Optional. Data describing a payment transaction to be assessed. Sending
      * this data enables reCAPTCHA Enterprise Fraud Prevention and the
      * FraudPreventionAssessment component in the response.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData, - com.google.recaptchaenterprise.v1beta1.TransactionData.Builder, - com.google.recaptchaenterprise.v1beta1.TransactionDataOrBuilder> + com.google.recaptchaenterprise.v1beta1.TransactionData, com.google.recaptchaenterprise.v1beta1.TransactionData.Builder, com.google.recaptchaenterprise.v1beta1.TransactionDataOrBuilder> getTransactionDataFieldBuilder() { if (transactionDataBuilder_ == null) { - transactionDataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData, - com.google.recaptchaenterprise.v1beta1.TransactionData.Builder, - com.google.recaptchaenterprise.v1beta1.TransactionDataOrBuilder>( - getTransactionData(), getParentForChildren(), isClean()); + transactionDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.TransactionData, com.google.recaptchaenterprise.v1beta1.TransactionData.Builder, com.google.recaptchaenterprise.v1beta1.TransactionDataOrBuilder>( + getTransactionData(), + getParentForChildren(), + isClean()); transactionData_ = null; } return transactionDataBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1745,12 +1553,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.Event) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.Event) private static final com.google.recaptchaenterprise.v1beta1.Event DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.Event(); } @@ -1759,27 +1567,27 @@ public static com.google.recaptchaenterprise.v1beta1.Event getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Event parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Event parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1794,4 +1602,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1beta1.Event getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/EventOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/EventOrBuilder.java similarity index 75% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/EventOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/EventOrBuilder.java index 88fcfd7ceffd..8d0f4e4854cc 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/EventOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/EventOrBuilder.java @@ -1,139 +1,101 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; -public interface EventOrBuilder - extends +public interface EventOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.Event) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The user response token provided by the reCAPTCHA Enterprise
    * client-side integration on your site.
    * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The token. */ java.lang.String getToken(); /** - * - * *
    * Optional. The user response token provided by the reCAPTCHA Enterprise
    * client-side integration on your site.
    * 
* * string token = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for token. */ - com.google.protobuf.ByteString getTokenBytes(); + com.google.protobuf.ByteString + getTokenBytes(); /** - * - * *
    * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
    * site and generate the token.
    * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The siteKey. */ java.lang.String getSiteKey(); /** - * - * *
    * Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
    * site and generate the token.
    * 
* * string site_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for siteKey. */ - com.google.protobuf.ByteString getSiteKeyBytes(); + com.google.protobuf.ByteString + getSiteKeyBytes(); /** - * - * *
    * Optional. The user agent present in the request from the user's device
    * related to this event.
    * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The userAgent. */ java.lang.String getUserAgent(); /** - * - * *
    * Optional. The user agent present in the request from the user's device
    * related to this event.
    * 
* * string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for userAgent. */ - com.google.protobuf.ByteString getUserAgentBytes(); + com.google.protobuf.ByteString + getUserAgentBytes(); /** - * - * *
    * Optional. The IP address in the request from the user's device related to
    * this event.
    * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The userIpAddress. */ java.lang.String getUserIpAddress(); /** - * - * *
    * Optional. The IP address in the request from the user's device related to
    * this event.
    * 
* * string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for userIpAddress. */ - com.google.protobuf.ByteString getUserIpAddressBytes(); + com.google.protobuf.ByteString + getUserIpAddressBytes(); /** - * - * *
    * Optional. The expected action for this type of event. This should be the
    * same action provided at token generation time on client-side platforms
@@ -141,13 +103,10 @@ public interface EventOrBuilder
    * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The expectedAction. */ java.lang.String getExpectedAction(); /** - * - * *
    * Optional. The expected action for this type of event. This should be the
    * same action provided at token generation time on client-side platforms
@@ -155,69 +114,52 @@ public interface EventOrBuilder
    * 
* * string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for expectedAction. */ - com.google.protobuf.ByteString getExpectedActionBytes(); + com.google.protobuf.ByteString + getExpectedActionBytes(); /** - * - * *
    * Optional. Unique stable hashed user identifier for the request. The
    * identifier must be hashed using hmac-sha256 with stable secret.
    * 
* * bytes hashed_account_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hashedAccountId. */ com.google.protobuf.ByteString getHashedAccountId(); /** - * - * *
    * Optional. Data describing a payment transaction to be assessed. Sending
    * this data enables reCAPTCHA Enterprise Fraud Prevention and the
    * FraudPreventionAssessment component in the response.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the transactionData field is set. */ boolean hasTransactionData(); /** - * - * *
    * Optional. Data describing a payment transaction to be assessed. Sending
    * this data enables reCAPTCHA Enterprise Fraud Prevention and the
    * FraudPreventionAssessment component in the response.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The transactionData. */ com.google.recaptchaenterprise.v1beta1.TransactionData getTransactionData(); /** - * - * *
    * Optional. Data describing a payment transaction to be assessed. Sending
    * this data enables reCAPTCHA Enterprise Fraud Prevention and the
    * FraudPreventionAssessment component in the response.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.recaptchaenterprise.v1beta1.TransactionDataOrBuilder getTransactionDataOrBuilder(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessment.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessment.java similarity index 54% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessment.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessment.java index 98d372dc0e7d..c3c3558b103f 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessment.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessment.java @@ -1,142 +1,111 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; /** - * - * *
  * Assessment for Fraud Prevention.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment} */ -public final class FraudPreventionAssessment extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FraudPreventionAssessment extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment) FraudPreventionAssessmentOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FraudPreventionAssessment.newBuilder() to construct. private FraudPreventionAssessment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private FraudPreventionAssessment() {} + private FraudPreventionAssessment() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FraudPreventionAssessment(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.class, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder.class); + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.class, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder.class); } - public interface StolenInstrumentVerdictOrBuilder - extends + public interface StolenInstrumentVerdictOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Probability (0-1) of this transaction being executed with a stolen
      * instrument.
      * 
* * float risk = 1; - * * @return The risk. */ float getRisk(); } /** - * - * *
    * Information about stolen instrument fraud, where the user is not the
    * legitimate owner of the instrument being used for the purchase.
    * 
* - * Protobuf type {@code - * google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict} + * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict} */ - public static final class StolenInstrumentVerdict extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class StolenInstrumentVerdict extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict) StolenInstrumentVerdictOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StolenInstrumentVerdict.newBuilder() to construct. private StolenInstrumentVerdict(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StolenInstrumentVerdict() {} + private StolenInstrumentVerdict() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StolenInstrumentVerdict(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict.class, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict.Builder.class); + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.class, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder.class); } public static final int RISK_FIELD_NUMBER = 1; private float risk_ = 0F; /** - * - * *
      * Probability (0-1) of this transaction being executed with a stolen
      * instrument.
      * 
* * float risk = 1; - * * @return The risk. */ @java.lang.Override @@ -145,7 +114,6 @@ public float getRisk() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -157,7 +125,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(risk_) != 0) { output.writeFloat(1, risk_); } @@ -171,7 +140,8 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(risk_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, risk_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, risk_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -181,22 +151,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict)) { + if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict - other = - (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict) - obj; + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict other = (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict) obj; if (java.lang.Float.floatToIntBits(getRisk()) - != java.lang.Float.floatToIntBits(other.getRisk())) return false; + != java.lang.Float.floatToIntBits( + other.getRisk())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -209,120 +173,97 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RISK_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getRisk()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getRisk()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict - prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -332,47 +273,40 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information about stolen instrument fraud, where the user is not the
      * legitimate owner of the instrument being used for the purchase.
      * 
* - * Protobuf type {@code - * google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict} + * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict) - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdictOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict.class, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict.Builder.class); + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.class, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder.class); } - // Construct using - // com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.newBuilder() - private Builder() {} + // Construct using com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -382,25 +316,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict - getDefaultInstanceForType() { - return com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict.getDefaultInstance(); + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance(); } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict - build() { - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict - result = buildPartial(); + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict build() { + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -408,23 +336,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict - buildPartial() { - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict - result = - new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict buildPartial() { + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict result = new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict - result) { + private void buildPartial0(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.risk_ = risk_; @@ -435,59 +354,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict) { - return mergeFrom( - (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict) - other); + if (other instanceof com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict) { + return mergeFrom((com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict - other) { - if (other - == com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict other) { + if (other == com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance()) return this; if (other.getRisk() != 0F) { setRisk(other.getRisk()); } @@ -517,19 +423,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: - { - risk_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: { + risk_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -539,20 +443,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private float risk_; + private float risk_ ; /** - * - * *
        * Probability (0-1) of this transaction being executed with a stolen
        * instrument.
        * 
* * float risk = 1; - * * @return The risk. */ @java.lang.Override @@ -560,15 +460,12 @@ public float getRisk() { return risk_; } /** - * - * *
        * Probability (0-1) of this transaction being executed with a stolen
        * instrument.
        * 
* * float risk = 1; - * * @param value The risk to set. * @return This builder for chaining. */ @@ -580,15 +477,12 @@ public Builder setRisk(float value) { return this; } /** - * - * *
        * Probability (0-1) of this transaction being executed with a stolen
        * instrument.
        * 
* * float risk = 1; - * * @return This builder for chaining. */ public Builder clearRisk() { @@ -597,7 +491,6 @@ public Builder clearRisk() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -610,48 +503,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict) - private static final com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict(); + DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict(); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StolenInstrumentVerdict parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StolenInstrumentVerdict parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -663,89 +549,76 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface CardTestingVerdictOrBuilder - extends + public interface CardTestingVerdictOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Probability (0-1) of this transaction attempt being part of a card
      * testing attack.
      * 
* * float risk = 1; - * * @return The risk. */ float getRisk(); } /** - * - * *
    * Information about card testing fraud, where an adversary is testing
    * fraudulently obtained cards or brute forcing their details.
    * 
* - * Protobuf type {@code - * google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict} + * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict} */ - public static final class CardTestingVerdict extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class CardTestingVerdict extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict) CardTestingVerdictOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CardTestingVerdict.newBuilder() to construct. private CardTestingVerdict(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CardTestingVerdict() {} + private CardTestingVerdict() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CardTestingVerdict(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - .class, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - .Builder.class); + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.class, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.Builder.class); } public static final int RISK_FIELD_NUMBER = 1; private float risk_ = 0F; /** - * - * *
      * Probability (0-1) of this transaction attempt being part of a card
      * testing attack.
      * 
* * float risk = 1; - * * @return The risk. */ @java.lang.Override @@ -754,7 +627,6 @@ public float getRisk() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -766,7 +638,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(risk_) != 0) { output.writeFloat(1, risk_); } @@ -780,7 +653,8 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(risk_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, risk_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, risk_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -790,18 +664,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict)) { + if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict other = - (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict) obj; + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict other = (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict) obj; if (java.lang.Float.floatToIntBits(getRisk()) - != java.lang.Float.floatToIntBits(other.getRisk())) return false; + != java.lang.Float.floatToIntBits( + other.getRisk())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -814,120 +686,97 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RISK_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getRisk()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getRisk()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .CardTestingVerdict - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .CardTestingVerdict - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .CardTestingVerdict - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .CardTestingVerdict - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .CardTestingVerdict - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .CardTestingVerdict - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .CardTestingVerdict - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .CardTestingVerdict - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .CardTestingVerdict - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .CardTestingVerdict - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .CardTestingVerdict - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .CardTestingVerdict - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -937,47 +786,40 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information about card testing fraud, where an adversary is testing
      * fraudulently obtained cards or brute forcing their details.
      * 
* - * Protobuf type {@code - * google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict} + * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict) - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .CardTestingVerdictOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor; + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdictOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - .class, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - .Builder.class); + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.class, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.Builder.class); } - // Construct using - // com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.newBuilder() - private Builder() {} + // Construct using com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -987,23 +829,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - getDefaultInstanceForType() { - return com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - .getDefaultInstance(); + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance(); } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - build() { - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict result = - buildPartial(); + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict build() { + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1011,21 +849,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - buildPartial() { - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict result = - new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict buildPartial() { + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict result = new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - result) { + private void buildPartial0(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.risk_ = risk_; @@ -1036,57 +867,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict) { - return mergeFrom( - (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict) - other); + if (other instanceof com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict) { + return mergeFrom((com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - other) { - if (other - == com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict other) { + if (other == com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance()) return this; if (other.getRisk() != 0F) { setRisk(other.getRisk()); } @@ -1116,19 +936,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: - { - risk_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: { + risk_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1138,20 +956,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private float risk_; + private float risk_ ; /** - * - * *
        * Probability (0-1) of this transaction attempt being part of a card
        * testing attack.
        * 
* * float risk = 1; - * * @return The risk. */ @java.lang.Override @@ -1159,15 +973,12 @@ public float getRisk() { return risk_; } /** - * - * *
        * Probability (0-1) of this transaction attempt being part of a card
        * testing attack.
        * 
* * float risk = 1; - * * @param value The risk to set. * @return This builder for chaining. */ @@ -1179,15 +990,12 @@ public Builder setRisk(float value) { return this; } /** - * - * *
        * Probability (0-1) of this transaction attempt being part of a card
        * testing attack.
        * 
* * float risk = 1; - * * @return This builder for chaining. */ public Builder clearRisk() { @@ -1196,7 +1004,6 @@ public Builder clearRisk() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1209,47 +1016,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict) - private static final com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .CardTestingVerdict - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict(); + DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict(); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .CardTestingVerdict - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CardTestingVerdict parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CardTestingVerdict parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1261,88 +1062,75 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface BehavioralTrustVerdictOrBuilder - extends + public interface BehavioralTrustVerdictOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Probability (0-1) of this transaction attempt being executed in a
      * behaviorally trustworthy way.
      * 
* * float trust = 1; - * * @return The trust. */ float getTrust(); } /** - * - * *
    * Information about behavioral trust of the transaction.
    * 
* - * Protobuf type {@code - * google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict} + * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict} */ - public static final class BehavioralTrustVerdict extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class BehavioralTrustVerdict extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict) BehavioralTrustVerdictOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BehavioralTrustVerdict.newBuilder() to construct. private BehavioralTrustVerdict(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BehavioralTrustVerdict() {} + private BehavioralTrustVerdict() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BehavioralTrustVerdict(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict.class, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict.Builder.class); + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.class, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder.class); } public static final int TRUST_FIELD_NUMBER = 1; private float trust_ = 0F; /** - * - * *
      * Probability (0-1) of this transaction attempt being executed in a
      * behaviorally trustworthy way.
      * 
* * float trust = 1; - * * @return The trust. */ @java.lang.Override @@ -1351,7 +1139,6 @@ public float getTrust() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1363,7 +1150,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(trust_) != 0) { output.writeFloat(1, trust_); } @@ -1377,7 +1165,8 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(trust_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, trust_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, trust_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1387,22 +1176,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict)) { + if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict - other = - (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict) - obj; + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict other = (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict) obj; if (java.lang.Float.floatToIntBits(getTrust()) - != java.lang.Float.floatToIntBits(other.getTrust())) return false; + != java.lang.Float.floatToIntBits( + other.getTrust())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1415,120 +1198,97 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TRUST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getTrust()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getTrust()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict - prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1538,46 +1298,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information about behavioral trust of the transaction.
      * 
* - * Protobuf type {@code - * google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict} + * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict) - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdictOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict.class, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict.Builder.class); + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.class, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder.class); } - // Construct using - // com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.newBuilder() - private Builder() {} + // Construct using com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1587,23 +1340,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict - getDefaultInstanceForType() { - return com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict.getDefaultInstance(); + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance(); } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict - build() { - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict - result = buildPartial(); + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict build() { + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1611,22 +1360,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict - buildPartial() { - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict - result = - new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict buildPartial() { + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict result = new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict - result) { + private void buildPartial0(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.trust_ = trust_; @@ -1637,59 +1378,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict) { - return mergeFrom( - (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict) - other); + if (other instanceof com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict) { + return mergeFrom((com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict - other) { - if (other - == com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict other) { + if (other == com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance()) return this; if (other.getTrust() != 0F) { setTrust(other.getTrust()); } @@ -1719,19 +1447,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: - { - trust_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: { + trust_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1741,20 +1467,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private float trust_; + private float trust_ ; /** - * - * *
        * Probability (0-1) of this transaction attempt being executed in a
        * behaviorally trustworthy way.
        * 
* * float trust = 1; - * * @return The trust. */ @java.lang.Override @@ -1762,15 +1484,12 @@ public float getTrust() { return trust_; } /** - * - * *
        * Probability (0-1) of this transaction attempt being executed in a
        * behaviorally trustworthy way.
        * 
* * float trust = 1; - * * @param value The trust to set. * @return This builder for chaining. */ @@ -1782,15 +1501,12 @@ public Builder setTrust(float value) { return this; } /** - * - * *
        * Probability (0-1) of this transaction attempt being executed in a
        * behaviorally trustworthy way.
        * 
* * float trust = 1; - * * @return This builder for chaining. */ public Builder clearTrust() { @@ -1799,7 +1515,6 @@ public Builder clearTrust() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1812,48 +1527,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict) - private static final com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict(); + DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict(); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BehavioralTrustVerdict parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BehavioralTrustVerdict parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1865,24 +1573,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int TRANSACTION_RISK_FIELD_NUMBER = 1; private float transactionRisk_ = 0F; /** - * - * *
    * Probability (0-1) of this transaction being fraudulent. Summarizes the
    * combined risk of attack vectors below.
    * 
* * float transaction_risk = 1; - * * @return The transactionRisk. */ @java.lang.Override @@ -1891,19 +1596,13 @@ public float getTransactionRisk() { } public static final int STOLEN_INSTRUMENT_VERDICT_FIELD_NUMBER = 2; - private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict - stolenInstrumentVerdict_; + private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolenInstrumentVerdict_; /** - * - * *
    * Assessment of this transaction for risk of a stolen instrument.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; * @return Whether the stolenInstrumentVerdict field is set. */ @java.lang.Override @@ -1911,62 +1610,38 @@ public boolean hasStolenInstrumentVerdict() { return stolenInstrumentVerdict_ != null; } /** - * - * *
    * Assessment of this transaction for risk of a stolen instrument.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; * @return The stolenInstrumentVerdict. */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict - getStolenInstrumentVerdict() { - return stolenInstrumentVerdict_ == null - ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict - .getDefaultInstance() - : stolenInstrumentVerdict_; + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict getStolenInstrumentVerdict() { + return stolenInstrumentVerdict_ == null ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance() : stolenInstrumentVerdict_; } /** - * - * *
    * Assessment of this transaction for risk of a stolen instrument.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdictOrBuilder - getStolenInstrumentVerdictOrBuilder() { - return stolenInstrumentVerdict_ == null - ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict - .getDefaultInstance() - : stolenInstrumentVerdict_; + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder getStolenInstrumentVerdictOrBuilder() { + return stolenInstrumentVerdict_ == null ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance() : stolenInstrumentVerdict_; } public static final int CARD_TESTING_VERDICT_FIELD_NUMBER = 3; - private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - cardTestingVerdict_; + private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict cardTestingVerdict_; /** - * - * *
    * Assessment of this transaction for risk of being part of a card testing
    * attack.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; * @return Whether the cardTestingVerdict field is set. */ @java.lang.Override @@ -1974,63 +1649,39 @@ public boolean hasCardTestingVerdict() { return cardTestingVerdict_ != null; } /** - * - * *
    * Assessment of this transaction for risk of being part of a card testing
    * attack.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; * @return The cardTestingVerdict. */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - getCardTestingVerdict() { - return cardTestingVerdict_ == null - ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - .getDefaultInstance() - : cardTestingVerdict_; + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict getCardTestingVerdict() { + return cardTestingVerdict_ == null ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance() : cardTestingVerdict_; } /** - * - * *
    * Assessment of this transaction for risk of being part of a card testing
    * attack.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .CardTestingVerdictOrBuilder - getCardTestingVerdictOrBuilder() { - return cardTestingVerdict_ == null - ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - .getDefaultInstance() - : cardTestingVerdict_; + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdictOrBuilder getCardTestingVerdictOrBuilder() { + return cardTestingVerdict_ == null ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance() : cardTestingVerdict_; } public static final int BEHAVIORAL_TRUST_VERDICT_FIELD_NUMBER = 4; - private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict - behavioralTrustVerdict_; + private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioralTrustVerdict_; /** - * - * *
    * Assessment of this transaction for behavioral trust.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; * @return Whether the behavioralTrustVerdict field is set. */ @java.lang.Override @@ -2038,49 +1689,30 @@ public boolean hasBehavioralTrustVerdict() { return behavioralTrustVerdict_ != null; } /** - * - * *
    * Assessment of this transaction for behavioral trust.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; * @return The behavioralTrustVerdict. */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict - getBehavioralTrustVerdict() { - return behavioralTrustVerdict_ == null - ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict - .getDefaultInstance() - : behavioralTrustVerdict_; + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict getBehavioralTrustVerdict() { + return behavioralTrustVerdict_ == null ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance() : behavioralTrustVerdict_; } /** - * - * *
    * Assessment of this transaction for behavioral trust.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdictOrBuilder - getBehavioralTrustVerdictOrBuilder() { - return behavioralTrustVerdict_ == null - ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict - .getDefaultInstance() - : behavioralTrustVerdict_; + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder getBehavioralTrustVerdictOrBuilder() { + return behavioralTrustVerdict_ == null ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance() : behavioralTrustVerdict_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2092,7 +1724,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(transactionRisk_) != 0) { output.writeFloat(1, transactionRisk_); } @@ -2115,18 +1748,20 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(transactionRisk_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, transactionRisk_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, transactionRisk_); } if (stolenInstrumentVerdict_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStolenInstrumentVerdict()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStolenInstrumentVerdict()); } if (cardTestingVerdict_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCardTestingVerdict()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCardTestingVerdict()); } if (behavioralTrustVerdict_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, getBehavioralTrustVerdict()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getBehavioralTrustVerdict()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2136,27 +1771,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment other = - (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment) obj; + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment other = (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment) obj; if (java.lang.Float.floatToIntBits(getTransactionRisk()) - != java.lang.Float.floatToIntBits(other.getTransactionRisk())) return false; + != java.lang.Float.floatToIntBits( + other.getTransactionRisk())) return false; if (hasStolenInstrumentVerdict() != other.hasStolenInstrumentVerdict()) return false; if (hasStolenInstrumentVerdict()) { - if (!getStolenInstrumentVerdict().equals(other.getStolenInstrumentVerdict())) return false; + if (!getStolenInstrumentVerdict() + .equals(other.getStolenInstrumentVerdict())) return false; } if (hasCardTestingVerdict() != other.hasCardTestingVerdict()) return false; if (hasCardTestingVerdict()) { - if (!getCardTestingVerdict().equals(other.getCardTestingVerdict())) return false; + if (!getCardTestingVerdict() + .equals(other.getCardTestingVerdict())) return false; } if (hasBehavioralTrustVerdict() != other.hasBehavioralTrustVerdict()) return false; if (hasBehavioralTrustVerdict()) { - if (!getBehavioralTrustVerdict().equals(other.getBehavioralTrustVerdict())) return false; + if (!getBehavioralTrustVerdict() + .equals(other.getBehavioralTrustVerdict())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2170,7 +1808,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TRANSACTION_RISK_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getTransactionRisk()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getTransactionRisk()); if (hasStolenInstrumentVerdict()) { hash = (37 * hash) + STOLEN_INSTRUMENT_VERDICT_FIELD_NUMBER; hash = (53 * hash) + getStolenInstrumentVerdict().hashCode(); @@ -2189,136 +1828,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Assessment for Fraud Prevention.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment) com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.class, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder.class); + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.class, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2343,14 +1977,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance(); } @@ -2365,38 +1998,31 @@ public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment build() @java.lang.Override public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment buildPartial() { - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment result = - new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment result = new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment result) { + private void buildPartial0(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.transactionRisk_ = transactionRisk_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.stolenInstrumentVerdict_ = - stolenInstrumentVerdictBuilder_ == null - ? stolenInstrumentVerdict_ - : stolenInstrumentVerdictBuilder_.build(); + result.stolenInstrumentVerdict_ = stolenInstrumentVerdictBuilder_ == null + ? stolenInstrumentVerdict_ + : stolenInstrumentVerdictBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.cardTestingVerdict_ = - cardTestingVerdictBuilder_ == null - ? cardTestingVerdict_ - : cardTestingVerdictBuilder_.build(); + result.cardTestingVerdict_ = cardTestingVerdictBuilder_ == null + ? cardTestingVerdict_ + : cardTestingVerdictBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.behavioralTrustVerdict_ = - behavioralTrustVerdictBuilder_ == null - ? behavioralTrustVerdict_ - : behavioralTrustVerdictBuilder_.build(); + result.behavioralTrustVerdict_ = behavioralTrustVerdictBuilder_ == null + ? behavioralTrustVerdict_ + : behavioralTrustVerdictBuilder_.build(); } } @@ -2404,50 +2030,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment) other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment other) { - if (other - == com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment other) { + if (other == com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance()) return this; if (other.getTransactionRisk() != 0F) { setTransactionRisk(other.getTransactionRisk()); } @@ -2486,40 +2108,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: - { - transactionRisk_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - case 18: - { - input.readMessage( - getStolenInstrumentVerdictFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getCardTestingVerdictFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getBehavioralTrustVerdictFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: { + transactionRisk_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 18: { + input.readMessage( + getStolenInstrumentVerdictFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getCardTestingVerdictFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getBehavioralTrustVerdictFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2529,20 +2149,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private float transactionRisk_; + private float transactionRisk_ ; /** - * - * *
      * Probability (0-1) of this transaction being fraudulent. Summarizes the
      * combined risk of attack vectors below.
      * 
* * float transaction_risk = 1; - * * @return The transactionRisk. */ @java.lang.Override @@ -2550,15 +2166,12 @@ public float getTransactionRisk() { return transactionRisk_; } /** - * - * *
      * Probability (0-1) of this transaction being fraudulent. Summarizes the
      * combined risk of attack vectors below.
      * 
* * float transaction_risk = 1; - * * @param value The transactionRisk to set. * @return This builder for chaining. */ @@ -2570,15 +2183,12 @@ public Builder setTransactionRisk(float value) { return this; } /** - * - * *
      * Probability (0-1) of this transaction being fraudulent. Summarizes the
      * combined risk of attack vectors below.
      * 
* * float transaction_risk = 1; - * * @return This builder for chaining. */ public Builder clearTransactionRisk() { @@ -2588,70 +2198,43 @@ public Builder clearTransactionRisk() { return this; } - private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict - stolenInstrumentVerdict_; + private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolenInstrumentVerdict_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict - .Builder, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdictOrBuilder> - stolenInstrumentVerdictBuilder_; + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder> stolenInstrumentVerdictBuilder_; /** - * - * *
      * Assessment of this transaction for risk of a stolen instrument.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; * @return Whether the stolenInstrumentVerdict field is set. */ public boolean hasStolenInstrumentVerdict() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Assessment of this transaction for risk of a stolen instrument.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; * @return The stolenInstrumentVerdict. */ - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict - getStolenInstrumentVerdict() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict getStolenInstrumentVerdict() { if (stolenInstrumentVerdictBuilder_ == null) { - return stolenInstrumentVerdict_ == null - ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict.getDefaultInstance() - : stolenInstrumentVerdict_; + return stolenInstrumentVerdict_ == null ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance() : stolenInstrumentVerdict_; } else { return stolenInstrumentVerdictBuilder_.getMessage(); } } /** - * - * *
      * Assessment of this transaction for risk of a stolen instrument.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; */ - public Builder setStolenInstrumentVerdict( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict - value) { + public Builder setStolenInstrumentVerdict(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict value) { if (stolenInstrumentVerdictBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2665,20 +2248,14 @@ public Builder setStolenInstrumentVerdict( return this; } /** - * - * *
      * Assessment of this transaction for risk of a stolen instrument.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; */ public Builder setStolenInstrumentVerdict( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict - .Builder - builderForValue) { + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder builderForValue) { if (stolenInstrumentVerdictBuilder_ == null) { stolenInstrumentVerdict_ = builderForValue.build(); } else { @@ -2689,25 +2266,17 @@ public Builder setStolenInstrumentVerdict( return this; } /** - * - * *
      * Assessment of this transaction for risk of a stolen instrument.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; */ - public Builder mergeStolenInstrumentVerdict( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict - value) { + public Builder mergeStolenInstrumentVerdict(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict value) { if (stolenInstrumentVerdictBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && stolenInstrumentVerdict_ != null - && stolenInstrumentVerdict_ - != com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + stolenInstrumentVerdict_ != null && + stolenInstrumentVerdict_ != com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance()) { getStolenInstrumentVerdictBuilder().mergeFrom(value); } else { stolenInstrumentVerdict_ = value; @@ -2720,15 +2289,11 @@ public Builder mergeStolenInstrumentVerdict( return this; } /** - * - * *
      * Assessment of this transaction for risk of a stolen instrument.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; */ public Builder clearStolenInstrumentVerdict() { bitField0_ = (bitField0_ & ~0x00000002); @@ -2741,145 +2306,93 @@ public Builder clearStolenInstrumentVerdict() { return this; } /** - * - * *
      * Assessment of this transaction for risk of a stolen instrument.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; */ - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict - .Builder - getStolenInstrumentVerdictBuilder() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder getStolenInstrumentVerdictBuilder() { bitField0_ |= 0x00000002; onChanged(); return getStolenInstrumentVerdictFieldBuilder().getBuilder(); } /** - * - * *
      * Assessment of this transaction for risk of a stolen instrument.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; */ - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdictOrBuilder - getStolenInstrumentVerdictOrBuilder() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder getStolenInstrumentVerdictOrBuilder() { if (stolenInstrumentVerdictBuilder_ != null) { return stolenInstrumentVerdictBuilder_.getMessageOrBuilder(); } else { - return stolenInstrumentVerdict_ == null - ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict.getDefaultInstance() - : stolenInstrumentVerdict_; + return stolenInstrumentVerdict_ == null ? + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.getDefaultInstance() : stolenInstrumentVerdict_; } } /** - * - * *
      * Assessment of this transaction for risk of a stolen instrument.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict - .Builder, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdictOrBuilder> + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder> getStolenInstrumentVerdictFieldBuilder() { if (stolenInstrumentVerdictBuilder_ == null) { - stolenInstrumentVerdictBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdict.Builder, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .StolenInstrumentVerdictOrBuilder>( - getStolenInstrumentVerdict(), getParentForChildren(), isClean()); + stolenInstrumentVerdictBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.Builder, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder>( + getStolenInstrumentVerdict(), + getParentForChildren(), + isClean()); stolenInstrumentVerdict_ = null; } return stolenInstrumentVerdictBuilder_; } - private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - cardTestingVerdict_; + private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict cardTestingVerdict_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - .Builder, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .CardTestingVerdictOrBuilder> - cardTestingVerdictBuilder_; + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.Builder, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdictOrBuilder> cardTestingVerdictBuilder_; /** - * - * *
      * Assessment of this transaction for risk of being part of a card testing
      * attack.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; * @return Whether the cardTestingVerdict field is set. */ public boolean hasCardTestingVerdict() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Assessment of this transaction for risk of being part of a card testing
      * attack.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; * @return The cardTestingVerdict. */ - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - getCardTestingVerdict() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict getCardTestingVerdict() { if (cardTestingVerdictBuilder_ == null) { - return cardTestingVerdict_ == null - ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - .getDefaultInstance() - : cardTestingVerdict_; + return cardTestingVerdict_ == null ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance() : cardTestingVerdict_; } else { return cardTestingVerdictBuilder_.getMessage(); } } /** - * - * *
      * Assessment of this transaction for risk of being part of a card testing
      * attack.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; */ - public Builder setCardTestingVerdict( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict value) { + public Builder setCardTestingVerdict(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict value) { if (cardTestingVerdictBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2893,20 +2406,15 @@ public Builder setCardTestingVerdict( return this; } /** - * - * *
      * Assessment of this transaction for risk of being part of a card testing
      * attack.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; */ public Builder setCardTestingVerdict( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.Builder - builderForValue) { + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.Builder builderForValue) { if (cardTestingVerdictBuilder_ == null) { cardTestingVerdict_ = builderForValue.build(); } else { @@ -2917,25 +2425,18 @@ public Builder setCardTestingVerdict( return this; } /** - * - * *
      * Assessment of this transaction for risk of being part of a card testing
      * attack.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; */ - public Builder mergeCardTestingVerdict( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict value) { + public Builder mergeCardTestingVerdict(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict value) { if (cardTestingVerdictBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && cardTestingVerdict_ != null - && cardTestingVerdict_ - != com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .CardTestingVerdict.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + cardTestingVerdict_ != null && + cardTestingVerdict_ != com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance()) { getCardTestingVerdictBuilder().mergeFrom(value); } else { cardTestingVerdict_ = value; @@ -2948,16 +2449,12 @@ public Builder mergeCardTestingVerdict( return this; } /** - * - * *
      * Assessment of this transaction for risk of being part of a card testing
      * attack.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; */ public Builder clearCardTestingVerdict() { bitField0_ = (bitField0_ & ~0x00000004); @@ -2970,144 +2467,93 @@ public Builder clearCardTestingVerdict() { return this; } /** - * - * *
      * Assessment of this transaction for risk of being part of a card testing
      * attack.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; */ - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - .Builder - getCardTestingVerdictBuilder() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.Builder getCardTestingVerdictBuilder() { bitField0_ |= 0x00000004; onChanged(); return getCardTestingVerdictFieldBuilder().getBuilder(); } /** - * - * *
      * Assessment of this transaction for risk of being part of a card testing
      * attack.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; */ - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .CardTestingVerdictOrBuilder - getCardTestingVerdictOrBuilder() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdictOrBuilder getCardTestingVerdictOrBuilder() { if (cardTestingVerdictBuilder_ != null) { return cardTestingVerdictBuilder_.getMessageOrBuilder(); } else { - return cardTestingVerdict_ == null - ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - .getDefaultInstance() - : cardTestingVerdict_; + return cardTestingVerdict_ == null ? + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.getDefaultInstance() : cardTestingVerdict_; } } /** - * - * *
      * Assessment of this transaction for risk of being part of a card testing
      * attack.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - .Builder, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .CardTestingVerdictOrBuilder> + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.Builder, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdictOrBuilder> getCardTestingVerdictFieldBuilder() { if (cardTestingVerdictBuilder_ == null) { - cardTestingVerdictBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict - .Builder, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .CardTestingVerdictOrBuilder>( - getCardTestingVerdict(), getParentForChildren(), isClean()); + cardTestingVerdictBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.Builder, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdictOrBuilder>( + getCardTestingVerdict(), + getParentForChildren(), + isClean()); cardTestingVerdict_ = null; } return cardTestingVerdictBuilder_; } - private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict - behavioralTrustVerdict_; + private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioralTrustVerdict_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict - .Builder, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdictOrBuilder> - behavioralTrustVerdictBuilder_; + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder> behavioralTrustVerdictBuilder_; /** - * - * *
      * Assessment of this transaction for behavioral trust.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; * @return Whether the behavioralTrustVerdict field is set. */ public boolean hasBehavioralTrustVerdict() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Assessment of this transaction for behavioral trust.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; * @return The behavioralTrustVerdict. */ - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict - getBehavioralTrustVerdict() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict getBehavioralTrustVerdict() { if (behavioralTrustVerdictBuilder_ == null) { - return behavioralTrustVerdict_ == null - ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict.getDefaultInstance() - : behavioralTrustVerdict_; + return behavioralTrustVerdict_ == null ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance() : behavioralTrustVerdict_; } else { return behavioralTrustVerdictBuilder_.getMessage(); } } /** - * - * *
      * Assessment of this transaction for behavioral trust.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; */ - public Builder setBehavioralTrustVerdict( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict - value) { + public Builder setBehavioralTrustVerdict(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict value) { if (behavioralTrustVerdictBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3121,20 +2567,14 @@ public Builder setBehavioralTrustVerdict( return this; } /** - * - * *
      * Assessment of this transaction for behavioral trust.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; */ public Builder setBehavioralTrustVerdict( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict - .Builder - builderForValue) { + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder builderForValue) { if (behavioralTrustVerdictBuilder_ == null) { behavioralTrustVerdict_ = builderForValue.build(); } else { @@ -3145,25 +2585,17 @@ public Builder setBehavioralTrustVerdict( return this; } /** - * - * *
      * Assessment of this transaction for behavioral trust.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; */ - public Builder mergeBehavioralTrustVerdict( - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict - value) { + public Builder mergeBehavioralTrustVerdict(com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict value) { if (behavioralTrustVerdictBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && behavioralTrustVerdict_ != null - && behavioralTrustVerdict_ - != com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + behavioralTrustVerdict_ != null && + behavioralTrustVerdict_ != com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance()) { getBehavioralTrustVerdictBuilder().mergeFrom(value); } else { behavioralTrustVerdict_ = value; @@ -3176,15 +2608,11 @@ public Builder mergeBehavioralTrustVerdict( return this; } /** - * - * *
      * Assessment of this transaction for behavioral trust.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; */ public Builder clearBehavioralTrustVerdict() { bitField0_ = (bitField0_ & ~0x00000008); @@ -3197,81 +2625,55 @@ public Builder clearBehavioralTrustVerdict() { return this; } /** - * - * *
      * Assessment of this transaction for behavioral trust.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; */ - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict - .Builder - getBehavioralTrustVerdictBuilder() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder getBehavioralTrustVerdictBuilder() { bitField0_ |= 0x00000008; onChanged(); return getBehavioralTrustVerdictFieldBuilder().getBuilder(); } /** - * - * *
      * Assessment of this transaction for behavioral trust.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; */ - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdictOrBuilder - getBehavioralTrustVerdictOrBuilder() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder getBehavioralTrustVerdictOrBuilder() { if (behavioralTrustVerdictBuilder_ != null) { return behavioralTrustVerdictBuilder_.getMessageOrBuilder(); } else { - return behavioralTrustVerdict_ == null - ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict.getDefaultInstance() - : behavioralTrustVerdict_; + return behavioralTrustVerdict_ == null ? + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.getDefaultInstance() : behavioralTrustVerdict_; } } /** - * - * *
      * Assessment of this transaction for behavioral trust.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; - * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict - .Builder, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdictOrBuilder> + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder> getBehavioralTrustVerdictFieldBuilder() { if (behavioralTrustVerdictBuilder_ == null) { - behavioralTrustVerdictBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdict.Builder, - com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - .BehavioralTrustVerdictOrBuilder>( - getBehavioralTrustVerdict(), getParentForChildren(), isClean()); + behavioralTrustVerdictBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict.Builder, com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder>( + getBehavioralTrustVerdict(), + getParentForChildren(), + isClean()); behavioralTrustVerdict_ = null; } return behavioralTrustVerdictBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3281,43 +2683,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment) - private static final com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment(); } - public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FraudPreventionAssessment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FraudPreventionAssessment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3329,8 +2729,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessmentOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessmentOrBuilder.java new file mode 100644 index 000000000000..9f1bd169476d --- /dev/null +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/FraudPreventionAssessmentOrBuilder.java @@ -0,0 +1,104 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1beta1; + +public interface FraudPreventionAssessmentOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Probability (0-1) of this transaction being fraudulent. Summarizes the
+   * combined risk of attack vectors below.
+   * 
+ * + * float transaction_risk = 1; + * @return The transactionRisk. + */ + float getTransactionRisk(); + + /** + *
+   * Assessment of this transaction for risk of a stolen instrument.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * @return Whether the stolenInstrumentVerdict field is set. + */ + boolean hasStolenInstrumentVerdict(); + /** + *
+   * Assessment of this transaction for risk of a stolen instrument.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + * @return The stolenInstrumentVerdict. + */ + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict getStolenInstrumentVerdict(); + /** + *
+   * Assessment of this transaction for risk of a stolen instrument.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2; + */ + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdictOrBuilder getStolenInstrumentVerdictOrBuilder(); + + /** + *
+   * Assessment of this transaction for risk of being part of a card testing
+   * attack.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * @return Whether the cardTestingVerdict field is set. + */ + boolean hasCardTestingVerdict(); + /** + *
+   * Assessment of this transaction for risk of being part of a card testing
+   * attack.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + * @return The cardTestingVerdict. + */ + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict getCardTestingVerdict(); + /** + *
+   * Assessment of this transaction for risk of being part of a card testing
+   * attack.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3; + */ + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdictOrBuilder getCardTestingVerdictOrBuilder(); + + /** + *
+   * Assessment of this transaction for behavioral trust.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * @return Whether the behavioralTrustVerdict field is set. + */ + boolean hasBehavioralTrustVerdict(); + /** + *
+   * Assessment of this transaction for behavioral trust.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + * @return The behavioralTrustVerdict. + */ + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict getBehavioralTrustVerdict(); + /** + *
+   * Assessment of this transaction for behavioral trust.
+   * 
+ * + * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdict behavioral_trust_verdict = 4; + */ + com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.BehavioralTrustVerdictOrBuilder getBehavioralTrustVerdictOrBuilder(); +} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerification.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerification.java similarity index 70% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerification.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerification.java index 6244f0736c82..a5f55adc3413 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerification.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerification.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; /** - * - * *
  * Password leak verification info.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification} */ -public final class PasswordLeakVerification extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PasswordLeakVerification extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification) PasswordLeakVerificationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PasswordLeakVerification.newBuilder() to construct. private PasswordLeakVerification(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PasswordLeakVerification() { hashedUserCredentials_ = com.google.protobuf.ByteString.EMPTY; canonicalizedUsername_ = ""; @@ -44,38 +26,33 @@ private PasswordLeakVerification() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PasswordLeakVerification(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.class, - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder.class); + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.class, com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder.class); } public static final int HASHED_USER_CREDENTIALS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString hashedUserCredentials_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString hashedUserCredentials_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * Optional. Scrypt hash of the username+password that the customer wants to
    * verify against a known password leak.
    * 
* * bytes hashed_user_credentials = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hashedUserCredentials. */ @java.lang.Override @@ -86,15 +63,12 @@ public com.google.protobuf.ByteString getHashedUserCredentials() { public static final int CREDENTIALS_LEAKED_FIELD_NUMBER = 2; private boolean credentialsLeaked_ = false; /** - * - * *
    * Output only. Whether or not the user's credentials are present in a known
    * leak.
    * 
* * bool credentials_leaked = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The credentialsLeaked. */ @java.lang.Override @@ -103,12 +77,9 @@ public boolean getCredentialsLeaked() { } public static final int CANONICALIZED_USERNAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object canonicalizedUsername_ = ""; /** - * - * *
    * Optional. The username part of the user credentials for which we want to
    * trigger a leak check in canonicalized form. This is the same data used to
@@ -116,7 +87,6 @@ public boolean getCredentialsLeaked() {
    * 
* * string canonicalized_username = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The canonicalizedUsername. */ @java.lang.Override @@ -125,15 +95,14 @@ public java.lang.String getCanonicalizedUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalizedUsername_ = s; return s; } } /** - * - * *
    * Optional. The username part of the user credentials for which we want to
    * trigger a leak check in canonicalized form. This is the same data used to
@@ -141,15 +110,16 @@ public java.lang.String getCanonicalizedUsername() {
    * 
* * string canonicalized_username = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for canonicalizedUsername. */ @java.lang.Override - public com.google.protobuf.ByteString getCanonicalizedUsernameBytes() { + public com.google.protobuf.ByteString + getCanonicalizedUsernameBytes() { java.lang.Object ref = canonicalizedUsername_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); canonicalizedUsername_ = b; return b; } else { @@ -158,7 +128,6 @@ public com.google.protobuf.ByteString getCanonicalizedUsernameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,7 +139,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!hashedUserCredentials_.isEmpty()) { output.writeBytes(1, hashedUserCredentials_); } @@ -190,10 +160,12 @@ public int getSerializedSize() { size = 0; if (!hashedUserCredentials_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, hashedUserCredentials_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, hashedUserCredentials_); } if (credentialsLeaked_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, credentialsLeaked_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, credentialsLeaked_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalizedUsername_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, canonicalizedUsername_); @@ -206,17 +178,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification other = - (com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification) obj; + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification other = (com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification) obj; - if (!getHashedUserCredentials().equals(other.getHashedUserCredentials())) return false; - if (getCredentialsLeaked() != other.getCredentialsLeaked()) return false; - if (!getCanonicalizedUsername().equals(other.getCanonicalizedUsername())) return false; + if (!getHashedUserCredentials() + .equals(other.getHashedUserCredentials())) return false; + if (getCredentialsLeaked() + != other.getCredentialsLeaked()) return false; + if (!getCanonicalizedUsername() + .equals(other.getCanonicalizedUsername())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -231,7 +205,8 @@ public int hashCode() { hash = (37 * hash) + HASHED_USER_CREDENTIALS_FIELD_NUMBER; hash = (53 * hash) + getHashedUserCredentials().hashCode(); hash = (37 * hash) + CREDENTIALS_LEAKED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCredentialsLeaked()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCredentialsLeaked()); hash = (37 * hash) + CANONICALIZED_USERNAME_FIELD_NUMBER; hash = (53 * hash) + getCanonicalizedUsername().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -240,136 +215,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Password leak verification info.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification) com.google.recaptchaenterprise.v1beta1.PasswordLeakVerificationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.class, - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder.class); + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.class, com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -381,14 +351,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.getDefaultInstance(); } @@ -403,17 +372,13 @@ public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification build() { @java.lang.Override public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification buildPartial() { - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification result = - new com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification result = new com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification result) { + private void buildPartial0(com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.hashedUserCredentials_ = hashedUserCredentials_; @@ -430,50 +395,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification) other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification other) { - if (other - == com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification other) { + if (other == com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification.getDefaultInstance()) return this; if (other.getHashedUserCredentials() != com.google.protobuf.ByteString.EMPTY) { setHashedUserCredentials(other.getHashedUserCredentials()); } @@ -511,31 +472,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - hashedUserCredentials_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - credentialsLeaked_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - canonicalizedUsername_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + hashedUserCredentials_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + credentialsLeaked_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + canonicalizedUsername_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -545,21 +502,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.ByteString hashedUserCredentials_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString hashedUserCredentials_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Optional. Scrypt hash of the username+password that the customer wants to
      * verify against a known password leak.
      * 
* * bytes hashed_user_credentials = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hashedUserCredentials. */ @java.lang.Override @@ -567,37 +519,29 @@ public com.google.protobuf.ByteString getHashedUserCredentials() { return hashedUserCredentials_; } /** - * - * *
      * Optional. Scrypt hash of the username+password that the customer wants to
      * verify against a known password leak.
      * 
* * bytes hashed_user_credentials = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The hashedUserCredentials to set. * @return This builder for chaining. */ public Builder setHashedUserCredentials(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } hashedUserCredentials_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Optional. Scrypt hash of the username+password that the customer wants to
      * verify against a known password leak.
      * 
* * bytes hashed_user_credentials = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearHashedUserCredentials() { @@ -607,17 +551,14 @@ public Builder clearHashedUserCredentials() { return this; } - private boolean credentialsLeaked_; + private boolean credentialsLeaked_ ; /** - * - * *
      * Output only. Whether or not the user's credentials are present in a known
      * leak.
      * 
* * bool credentials_leaked = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The credentialsLeaked. */ @java.lang.Override @@ -625,15 +566,12 @@ public boolean getCredentialsLeaked() { return credentialsLeaked_; } /** - * - * *
      * Output only. Whether or not the user's credentials are present in a known
      * leak.
      * 
* * bool credentials_leaked = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The credentialsLeaked to set. * @return This builder for chaining. */ @@ -645,15 +583,12 @@ public Builder setCredentialsLeaked(boolean value) { return this; } /** - * - * *
      * Output only. Whether or not the user's credentials are present in a known
      * leak.
      * 
* * bool credentials_leaked = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCredentialsLeaked() { @@ -665,8 +600,6 @@ public Builder clearCredentialsLeaked() { private java.lang.Object canonicalizedUsername_ = ""; /** - * - * *
      * Optional. The username part of the user credentials for which we want to
      * trigger a leak check in canonicalized form. This is the same data used to
@@ -674,13 +607,13 @@ public Builder clearCredentialsLeaked() {
      * 
* * string canonicalized_username = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The canonicalizedUsername. */ public java.lang.String getCanonicalizedUsername() { java.lang.Object ref = canonicalizedUsername_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalizedUsername_ = s; return s; @@ -689,8 +622,6 @@ public java.lang.String getCanonicalizedUsername() { } } /** - * - * *
      * Optional. The username part of the user credentials for which we want to
      * trigger a leak check in canonicalized form. This is the same data used to
@@ -698,14 +629,15 @@ public java.lang.String getCanonicalizedUsername() {
      * 
* * string canonicalized_username = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for canonicalizedUsername. */ - public com.google.protobuf.ByteString getCanonicalizedUsernameBytes() { + public com.google.protobuf.ByteString + getCanonicalizedUsernameBytes() { java.lang.Object ref = canonicalizedUsername_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); canonicalizedUsername_ = b; return b; } else { @@ -713,8 +645,6 @@ public com.google.protobuf.ByteString getCanonicalizedUsernameBytes() { } } /** - * - * *
      * Optional. The username part of the user credentials for which we want to
      * trigger a leak check in canonicalized form. This is the same data used to
@@ -722,22 +652,18 @@ public com.google.protobuf.ByteString getCanonicalizedUsernameBytes() {
      * 
* * string canonicalized_username = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The canonicalizedUsername to set. * @return This builder for chaining. */ - public Builder setCanonicalizedUsername(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCanonicalizedUsername( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } canonicalizedUsername_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. The username part of the user credentials for which we want to
      * trigger a leak check in canonicalized form. This is the same data used to
@@ -745,7 +671,6 @@ public Builder setCanonicalizedUsername(java.lang.String value) {
      * 
* * string canonicalized_username = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCanonicalizedUsername() { @@ -755,8 +680,6 @@ public Builder clearCanonicalizedUsername() { return this; } /** - * - * *
      * Optional. The username part of the user credentials for which we want to
      * trigger a leak check in canonicalized form. This is the same data used to
@@ -764,23 +687,21 @@ public Builder clearCanonicalizedUsername() {
      * 
* * string canonicalized_username = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for canonicalizedUsername to set. * @return This builder for chaining. */ - public Builder setCanonicalizedUsernameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCanonicalizedUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); canonicalizedUsername_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -790,43 +711,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification) - private static final com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification(); } - public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PasswordLeakVerification parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PasswordLeakVerification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -838,8 +757,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.PasswordLeakVerification getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerificationOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerificationOrBuilder.java similarity index 70% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerificationOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerificationOrBuilder.java index 09cef6490eed..525e8a30a279 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerificationOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/PasswordLeakVerificationOrBuilder.java @@ -1,59 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; -public interface PasswordLeakVerificationOrBuilder - extends +public interface PasswordLeakVerificationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Scrypt hash of the username+password that the customer wants to
    * verify against a known password leak.
    * 
* * bytes hashed_user_credentials = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hashedUserCredentials. */ com.google.protobuf.ByteString getHashedUserCredentials(); /** - * - * *
    * Output only. Whether or not the user's credentials are present in a known
    * leak.
    * 
* * bool credentials_leaked = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The credentialsLeaked. */ boolean getCredentialsLeaked(); /** - * - * *
    * Optional. The username part of the user credentials for which we want to
    * trigger a leak check in canonicalized form. This is the same data used to
@@ -61,13 +37,10 @@ public interface PasswordLeakVerificationOrBuilder
    * 
* * string canonicalized_username = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The canonicalizedUsername. */ java.lang.String getCanonicalizedUsername(); /** - * - * *
    * Optional. The username part of the user credentials for which we want to
    * trigger a leak check in canonicalized form. This is the same data used to
@@ -75,8 +48,8 @@ public interface PasswordLeakVerificationOrBuilder
    * 
* * string canonicalized_username = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for canonicalizedUsername. */ - com.google.protobuf.ByteString getCanonicalizedUsernameBytes(); + com.google.protobuf.ByteString + getCanonicalizedUsernameBytes(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ProjectName.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ProjectName.java similarity index 100% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ProjectName.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ProjectName.java diff --git a/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseProto.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseProto.java new file mode 100644 index 000000000000..d0f29d298ba0 --- /dev/null +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseProto.java @@ -0,0 +1,422 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto + +package com.google.recaptchaenterprise.v1beta1; + +public final class RecaptchaEnterpriseProto { + private RecaptchaEnterpriseProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nBgoogle/cloud/recaptchaenterprise/v1bet" + + "a1/recaptchaenterprise.proto\022(google.clo" + + "ud.recaptchaenterprise.v1beta1\032\034google/a" + + "pi/annotations.proto\032\027google/api/client." + + "proto\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032\037google/protob" + + "uf/timestamp.proto\"\257\001\n\027CreateAssessmentR" + + "equest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudre" + + "sourcemanager.googleapis.com/Project\022N\n\n" + + "assessment\030\002 \001(\01324.google.cloud.recaptch" + + "aenterprise.v1beta1.AssessmentB\004\342A\001\002\"\233\005\n" + + "\020TransactionEvent\022i\n\nevent_type\030\001 \001(\0162O." + + "google.cloud.recaptchaenterprise.v1beta1" + + ".TransactionEvent.TransactionEventTypeB\004" + + "\342A\001\001\022\024\n\006reason\030\002 \001(\tB\004\342A\001\001\022\023\n\005value\030\003 \001(" + + "\001B\004\342A\001\001\0224\n\nevent_time\030\004 \001(\0132\032.google.pro" + + "tobuf.TimestampB\004\342A\001\001\"\272\003\n\024TransactionEve" + + "ntType\022&\n\"TRANSACTION_EVENT_TYPE_UNSPECI" + + "FIED\020\000\022\024\n\020MERCHANT_APPROVE\020\001\022\021\n\rMERCHANT" + + "_DENY\020\002\022\021\n\rMANUAL_REVIEW\020\003\022\021\n\rAUTHORIZAT" + + "ION\020\004\022\031\n\025AUTHORIZATION_DECLINE\020\005\022\023\n\017PAYM" + + "ENT_CAPTURE\020\006\022\033\n\027PAYMENT_CAPTURE_DECLINE" + + "\020\007\022\n\n\006CANCEL\020\010\022\026\n\022CHARGEBACK_INQUIRY\020\t\022\024" + + "\n\020CHARGEBACK_ALERT\020\n\022\026\n\022FRAUD_NOTIFICATI" + + "ON\020\013\022\016\n\nCHARGEBACK\020\014\022\034\n\030CHARGEBACK_REPRE" + + "SENTMENT\020\r\022\026\n\022CHARGEBACK_REVERSE\020\016\022\022\n\016RE" + + "FUND_REQUEST\020\017\022\022\n\016REFUND_DECLINE\020\020\022\n\n\006RE" + + "FUND\020\021\022\022\n\016REFUND_REVERSE\020\022\"\376\006\n\031AnnotateA" + + "ssessmentRequest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n" + + "-recaptchaenterprise.googleapis.com/Asse" + + "ssment\022h\n\nannotation\030\002 \001(\0162N.google.clou" + + "d.recaptchaenterprise.v1beta1.AnnotateAs" + + "sessmentRequest.AnnotationB\004\342A\001\001\022a\n\007reas" + + "ons\030\003 \003(\0162J.google.cloud.recaptchaenterp" + + "rise.v1beta1.AnnotateAssessmentRequest.R" + + "easonB\004\342A\001\001\022\037\n\021hashed_account_id\030\004 \001(\014B\004" + + "\342A\001\001\022[\n\021transaction_event\030\005 \001(\0132:.google" + + ".cloud.recaptchaenterprise.v1beta1.Trans" + + "actionEventB\004\342A\001\001\"~\n\nAnnotation\022\032\n\026ANNOT" + + "ATION_UNSPECIFIED\020\000\022\016\n\nLEGITIMATE\020\001\022\016\n\nF" + + "RAUDULENT\020\002\022\030\n\020PASSWORD_CORRECT\020\003\032\002\010\001\022\032\n" + + "\022PASSWORD_INCORRECT\020\004\032\002\010\001\"\317\002\n\006Reason\022\026\n\022" + + "REASON_UNSPECIFIED\020\000\022\016\n\nCHARGEBACK\020\001\022\024\n\020" + + "CHARGEBACK_FRAUD\020\010\022\026\n\022CHARGEBACK_DISPUTE" + + "\020\t\022\n\n\006REFUND\020\n\022\020\n\014REFUND_FRAUD\020\013\022\030\n\024TRAN" + + "SACTION_ACCEPTED\020\014\022\030\n\024TRANSACTION_DECLIN" + + "ED\020\r\022\026\n\022PAYMENT_HEURISTICS\020\002\022\030\n\024INITIATE" + + "D_TWO_FACTOR\020\007\022\025\n\021PASSED_TWO_FACTOR\020\003\022\025\n" + + "\021FAILED_TWO_FACTOR\020\004\022\024\n\020CORRECT_PASSWORD" + + "\020\005\022\026\n\022INCORRECT_PASSWORD\020\006\022\017\n\013SOCIAL_SPA" + + "M\020\016\"\034\n\032AnnotateAssessmentResponse\"\211\001\n\030Pa" + + "sswordLeakVerification\022%\n\027hashed_user_cr" + + "edentials\030\001 \001(\014B\004\342A\001\001\022 \n\022credentials_lea" + + "ked\030\002 \001(\010B\004\342A\001\003\022$\n\026canonicalized_usernam" + + "e\030\003 \001(\tB\004\342A\001\001\"\273\007\n\nAssessment\022\022\n\004name\030\001 \001" + + "(\tB\004\342A\001\003\022>\n\005event\030\002 \001(\0132/.google.cloud.r" + + "ecaptchaenterprise.v1beta1.Event\022\023\n\005scor" + + "e\030\003 \001(\002B\004\342A\001\003\022Y\n\020token_properties\030\004 \001(\0132" + + "9.google.cloud.recaptchaenterprise.v1bet" + + "a1.TokenPropertiesB\004\342A\001\003\022`\n\007reasons\030\005 \003(" + + "\0162I.google.cloud.recaptchaenterprise.v1b" + + "eta1.Assessment.ClassificationReasonB\004\342A" + + "\001\003\022f\n\032password_leak_verification\030\007 \001(\0132B" + + ".google.cloud.recaptchaenterprise.v1beta" + + "1.PasswordLeakVerification\022h\n\033account_de" + + "fender_assessment\030\010 \001(\0132C.google.cloud.r" + + "ecaptchaenterprise.v1beta1.AccountDefend" + + "erAssessment\022h\n\033fraud_prevention_assessm" + + "ent\030\013 \001(\0132C.google.cloud.recaptchaenterp" + + "rise.v1beta1.FraudPreventionAssessment\"\351" + + "\001\n\024ClassificationReason\022%\n!CLASSIFICATIO" + + "N_REASON_UNSPECIFIED\020\000\022\016\n\nAUTOMATION\020\001\022\032" + + "\n\026UNEXPECTED_ENVIRONMENT\020\002\022\024\n\020TOO_MUCH_T" + + "RAFFIC\020\003\022\035\n\031UNEXPECTED_USAGE_PATTERNS\020\004\022" + + "\030\n\024LOW_CONFIDENCE_SCORE\020\005\022\025\n\021SUSPECTED_C" + + "ARDING\020\006\022\030\n\024SUSPECTED_CHARGEBACK\020\007:_\352A\\\n" + + "-recaptchaenterprise.googleapis.com/Asse" + + "ssment\022+projects/{project}/assessments/{" + + "assessment}\"\210\002\n\005Event\022\023\n\005token\030\001 \001(\tB\004\342A" + + "\001\001\022\026\n\010site_key\030\002 \001(\tB\004\342A\001\001\022\030\n\nuser_agent" + + "\030\003 \001(\tB\004\342A\001\001\022\035\n\017user_ip_address\030\004 \001(\tB\004\342" + + "A\001\001\022\035\n\017expected_action\030\005 \001(\tB\004\342A\001\001\022\037\n\021ha" + + "shed_account_id\030\006 \001(\014B\004\342A\001\001\022Y\n\020transacti" + + "on_data\030\r \001(\01329.google.cloud.recaptchaen" + + "terprise.v1beta1.TransactionDataB\004\342A\001\001\"\235" + + "\t\n\017TransactionData\022\033\n\016transaction_id\030\013 \001" + + "(\tH\000\210\001\001\022\026\n\016payment_method\030\001 \001(\t\022\020\n\010card_" + + "bin\030\002 \001(\t\022\026\n\016card_last_four\030\003 \001(\t\022\025\n\rcur" + + "rency_code\030\004 \001(\t\022\r\n\005value\030\005 \001(\001\022\026\n\016shipp" + + "ing_value\030\014 \001(\001\022[\n\020shipping_address\030\006 \001(" + + "\0132A.google.cloud.recaptchaenterprise.v1b" + + "eta1.TransactionData.Address\022Z\n\017billing_" + + "address\030\007 \001(\0132A.google.cloud.recaptchaen" + + "terprise.v1beta1.TransactionData.Address" + + "\022L\n\004user\030\010 \001(\0132>.google.cloud.recaptchae" + + "nterprise.v1beta1.TransactionData.User\022Q" + + "\n\tmerchants\030\r \003(\0132>.google.cloud.recaptc" + + "haenterprise.v1beta1.TransactionData.Use" + + "r\022M\n\005items\030\016 \003(\0132>.google.cloud.recaptch" + + "aenterprise.v1beta1.TransactionData.Item" + + "\022[\n\014gateway_info\030\n \001(\0132E.google.cloud.re" + + "captchaenterprise.v1beta1.TransactionDat" + + "a.GatewayInfo\032\206\001\n\007Address\022\021\n\trecipient\030\001" + + " \001(\t\022\017\n\007address\030\002 \003(\t\022\020\n\010locality\030\003 \001(\t\022" + + "\033\n\023administrative_area\030\004 \001(\t\022\023\n\013region_c" + + "ode\030\005 \001(\t\022\023\n\013postal_code\030\006 \001(\t\032\204\001\n\004User\022" + + "\022\n\naccount_id\030\006 \001(\t\022\023\n\013creation_ms\030\001 \001(\003" + + "\022\r\n\005email\030\002 \001(\t\022\026\n\016email_verified\030\003 \001(\010\022" + + "\024\n\014phone_number\030\004 \001(\t\022\026\n\016phone_verified\030" + + "\005 \001(\010\032R\n\004Item\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\001\022\020\n\010quantity\030\003 \001(\003\022\033\n\023merchant_account" + + "_id\030\004 \001(\t\032p\n\013GatewayInfo\022\014\n\004name\030\001 \001(\t\022\035" + + "\n\025gateway_response_code\030\002 \001(\t\022\031\n\021avs_res" + + "ponse_code\030\003 \001(\t\022\031\n\021cvv_response_code\030\004 " + + "\001(\tB\021\n\017_transaction_id\"\377\002\n\017TokenProperti" + + "es\022\r\n\005valid\030\001 \001(\010\022_\n\016invalid_reason\030\002 \001(" + + "\0162G.google.cloud.recaptchaenterprise.v1b" + + "eta1.TokenProperties.InvalidReason\022/\n\013cr" + + "eate_time\030\003 \001(\0132\032.google.protobuf.Timest" + + "amp\022\020\n\010hostname\030\004 \001(\t\022\016\n\006action\030\005 \001(\t\"\250\001" + + "\n\rInvalidReason\022\036\n\032INVALID_REASON_UNSPEC" + + "IFIED\020\000\022\032\n\026UNKNOWN_INVALID_REASON\020\001\022\r\n\tM" + + "ALFORMED\020\002\022\013\n\007EXPIRED\020\003\022\010\n\004DUPE\020\004\022\025\n\rSIT" + + "E_MISMATCH\020\005\032\002\010\001\022\013\n\007MISSING\020\006\022\021\n\rBROWSER" + + "_ERROR\020\007\"\237\004\n\031FraudPreventionAssessment\022\030" + + "\n\020transaction_risk\030\001 \001(\002\022~\n\031stolen_instr" + + "ument_verdict\030\002 \001(\0132[.google.cloud.recap" + + "tchaenterprise.v1beta1.FraudPreventionAs" + + "sessment.StolenInstrumentVerdict\022t\n\024card" + + "_testing_verdict\030\003 \001(\0132V.google.cloud.re" + + "captchaenterprise.v1beta1.FraudPreventio" + + "nAssessment.CardTestingVerdict\022|\n\030behavi" + + "oral_trust_verdict\030\004 \001(\0132Z.google.cloud." + + "recaptchaenterprise.v1beta1.FraudPrevent" + + "ionAssessment.BehavioralTrustVerdict\032\'\n\027" + + "StolenInstrumentVerdict\022\014\n\004risk\030\001 \001(\002\032\"\n" + + "\022CardTestingVerdict\022\014\n\004risk\030\001 \001(\002\032\'\n\026Beh" + + "avioralTrustVerdict\022\r\n\005trust\030\001 \001(\002\"\273\002\n\031A" + + "ccountDefenderAssessment\022h\n\006labels\030\001 \003(\016" + + "2X.google.cloud.recaptchaenterprise.v1be" + + "ta1.AccountDefenderAssessment.AccountDef" + + "enderLabel\"\263\001\n\024AccountDefenderLabel\022&\n\"A" + + "CCOUNT_DEFENDER_LABEL_UNSPECIFIED\020\000\022\021\n\rP" + + "ROFILE_MATCH\020\001\022\035\n\031SUSPICIOUS_LOGIN_ACTIV" + + "ITY\020\002\022\037\n\033SUSPICIOUS_ACCOUNT_CREATION\020\003\022 " + + "\n\034RELATED_ACCOUNTS_NUMBER_HIGH\020\0042\315\004\n!Rec" + + "aptchaEnterpriseServiceV1Beta1\022\335\001\n\020Creat" + + "eAssessment\022A.google.cloud.recaptchaente" + + "rprise.v1beta1.CreateAssessmentRequest\0324" + + ".google.cloud.recaptchaenterprise.v1beta" + + "1.Assessment\"P\332A\021parent,assessment\202\323\344\223\0026" + + "\"(/v1beta1/{parent=projects/*}/assessmen" + + "ts:\nassessment\022\357\001\n\022AnnotateAssessment\022C." + + "google.cloud.recaptchaenterprise.v1beta1" + + ".AnnotateAssessmentRequest\032D.google.clou" + + "d.recaptchaenterprise.v1beta1.AnnotateAs" + + "sessmentResponse\"N\332A\017name,annotation\202\323\344\223" + + "\0026\"1/v1beta1/{name=projects/*/assessment" + + "s/*}:annotate:\001*\032V\312A\"recaptchaenterprise" + + ".googleapis.com\322A.https://www.googleapis" + + ".com/auth/cloud-platformB\262\002\n&com.google." + + "recaptchaenterprise.v1beta1B\030RecaptchaEn" + + "terpriseProtoP\001Zacloud.google.com/go/rec" + + "aptchaenterprise/v2/apiv1beta1/recaptcha" + + "enterprisepb;recaptchaenterprisepb\242\002\004GCR" + + "E\252\002(Google.Cloud.RecaptchaEnterprise.V1B" + + "eta1\312\002(Google\\Cloud\\RecaptchaEnterprise\\" + + "V1beta1\352\002+Google::Cloud::RecaptchaEnterp" + + "rise::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_CreateAssessmentRequest_descriptor, + new java.lang.String[] { "Parent", "Assessment", }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_descriptor, + new java.lang.String[] { "EventType", "Reason", "Value", "EventTime", }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentRequest_descriptor, + new java.lang.String[] { "Name", "Annotation", "Reasons", "HashedAccountId", "TransactionEvent", }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_AnnotateAssessmentResponse_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_PasswordLeakVerification_descriptor, + new java.lang.String[] { "HashedUserCredentials", "CredentialsLeaked", "CanonicalizedUsername", }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_Assessment_descriptor, + new java.lang.String[] { "Name", "Event", "Score", "TokenProperties", "Reasons", "PasswordLeakVerification", "AccountDefenderAssessment", "FraudPreventionAssessment", }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_Event_descriptor, + new java.lang.String[] { "Token", "SiteKey", "UserAgent", "UserIpAddress", "ExpectedAction", "HashedAccountId", "TransactionData", }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor, + new java.lang.String[] { "TransactionId", "PaymentMethod", "CardBin", "CardLastFour", "CurrencyCode", "Value", "ShippingValue", "ShippingAddress", "BillingAddress", "User", "Merchants", "Items", "GatewayInfo", "TransactionId", }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_descriptor, + new java.lang.String[] { "Recipient", "Address", "Locality", "AdministrativeArea", "RegionCode", "PostalCode", }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_descriptor, + new java.lang.String[] { "AccountId", "CreationMs", "Email", "EmailVerified", "PhoneNumber", "PhoneVerified", }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_descriptor, + new java.lang.String[] { "Name", "Value", "Quantity", "MerchantAccountId", }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_descriptor, + new java.lang.String[] { "Name", "GatewayResponseCode", "AvsResponseCode", "CvvResponseCode", }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_descriptor, + new java.lang.String[] { "Valid", "InvalidReason", "CreateTime", "Hostname", "Action", }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor, + new java.lang.String[] { "TransactionRisk", "StolenInstrumentVerdict", "CardTestingVerdict", "BehavioralTrustVerdict", }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor, + new java.lang.String[] { "Risk", }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor, + new java.lang.String[] { "Risk", }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_BehavioralTrustVerdict_descriptor, + new java.lang.String[] { "Trust", }); + internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1beta1_AccountDefenderAssessment_descriptor, + new java.lang.String[] { "Labels", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenProperties.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenProperties.java similarity index 70% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenProperties.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenProperties.java index 980d71e8af1b..d2ef5cd61c2c 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenProperties.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenProperties.java @@ -1,34 +1,20 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; -/** Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TokenProperties} */ -public final class TokenProperties extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TokenProperties} + */ +public final class TokenProperties extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.TokenProperties) TokenPropertiesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TokenProperties.newBuilder() to construct. private TokenProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TokenProperties() { invalidReason_ = 0; hostname_ = ""; @@ -37,38 +23,34 @@ private TokenProperties() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TokenProperties(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TokenProperties.class, - com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder.class); + com.google.recaptchaenterprise.v1beta1.TokenProperties.class, com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder.class); } /** - * - * *
    * Enum that represents the types of invalid token reasons.
    * 
* * Protobuf enum {@code google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason} */ - public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { + public enum InvalidReason + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default unspecified type.
      * 
@@ -77,8 +59,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { */ INVALID_REASON_UNSPECIFIED(0), /** - * - * *
      * If the failure reason was not accounted for.
      * 
@@ -87,8 +67,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN_INVALID_REASON(1), /** - * - * *
      * The provided user verification token was malformed.
      * 
@@ -97,8 +75,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { */ MALFORMED(2), /** - * - * *
      * The user verification token had expired.
      * 
@@ -107,8 +83,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { */ EXPIRED(3), /** - * - * *
      * The user verification had already been seen.
      * 
@@ -117,8 +91,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { */ DUPE(4), /** - * - * *
      * The user verification token did not match the provided site key.
      * This may be a configuration error (for example, development keys used in
@@ -131,8 +103,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum {
     @java.lang.Deprecated
     SITE_MISMATCH(5),
     /**
-     *
-     *
      * 
      * The user verification token was not present.  It is a required input.
      * 
@@ -141,8 +111,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { */ MISSING(6), /** - * - * *
      * A retriable error (such as network failure) occurred on the browser.
      * Could easily be simulated by an attacker.
@@ -155,8 +123,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default unspecified type.
      * 
@@ -165,8 +131,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INVALID_REASON_UNSPECIFIED_VALUE = 0; /** - * - * *
      * If the failure reason was not accounted for.
      * 
@@ -175,8 +139,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_INVALID_REASON_VALUE = 1; /** - * - * *
      * The provided user verification token was malformed.
      * 
@@ -185,8 +147,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MALFORMED_VALUE = 2; /** - * - * *
      * The user verification token had expired.
      * 
@@ -195,8 +155,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EXPIRED_VALUE = 3; /** - * - * *
      * The user verification had already been seen.
      * 
@@ -205,8 +163,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DUPE_VALUE = 4; /** - * - * *
      * The user verification token did not match the provided site key.
      * This may be a configuration error (for example, development keys used in
@@ -218,8 +174,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum {
      */
     @java.lang.Deprecated public static final int SITE_MISMATCH_VALUE = 5;
     /**
-     *
-     *
      * 
      * The user verification token was not present.  It is a required input.
      * 
@@ -228,8 +182,6 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MISSING_VALUE = 6; /** - * - * *
      * A retriable error (such as network failure) occurred on the browser.
      * Could easily be simulated by an attacker.
@@ -239,6 +191,7 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int BROWSER_ERROR_VALUE = 7;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -263,61 +216,54 @@ public static InvalidReason valueOf(int value) {
      */
     public static InvalidReason forNumber(int value) {
       switch (value) {
-        case 0:
-          return INVALID_REASON_UNSPECIFIED;
-        case 1:
-          return UNKNOWN_INVALID_REASON;
-        case 2:
-          return MALFORMED;
-        case 3:
-          return EXPIRED;
-        case 4:
-          return DUPE;
-        case 5:
-          return SITE_MISMATCH;
-        case 6:
-          return MISSING;
-        case 7:
-          return BROWSER_ERROR;
-        default:
-          return null;
+        case 0: return INVALID_REASON_UNSPECIFIED;
+        case 1: return UNKNOWN_INVALID_REASON;
+        case 2: return MALFORMED;
+        case 3: return EXPIRED;
+        case 4: return DUPE;
+        case 5: return SITE_MISMATCH;
+        case 6: return MISSING;
+        case 7: return BROWSER_ERROR;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        InvalidReason> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public InvalidReason findValueByNumber(int number) {
+              return InvalidReason.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public InvalidReason findValueByNumber(int number) {
-            return InvalidReason.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.recaptchaenterprise.v1beta1.TokenProperties.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.recaptchaenterprise.v1beta1.TokenProperties.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final InvalidReason[] VALUES = values();
 
-    public static InvalidReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static InvalidReason valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -337,8 +283,6 @@ private InvalidReason(int value) {
   public static final int VALID_FIELD_NUMBER = 1;
   private boolean valid_ = false;
   /**
-   *
-   *
    * 
    * Whether the provided user response token is valid. When valid = false, the
    * reason could be specified in invalid_reason or it could also be due to
@@ -348,7 +292,6 @@ private InvalidReason(int value) {
    * 
* * bool valid = 1; - * * @return The valid. */ @java.lang.Override @@ -359,56 +302,37 @@ public boolean getValid() { public static final int INVALID_REASON_FIELD_NUMBER = 2; private int invalidReason_ = 0; /** - * - * *
    * Reason associated with the response when valid = false.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; * @return The enum numeric value on the wire for invalidReason. */ - @java.lang.Override - public int getInvalidReasonValue() { + @java.lang.Override public int getInvalidReasonValue() { return invalidReason_; } /** - * - * *
    * Reason associated with the response when valid = false.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; * @return The invalidReason. */ - @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason getInvalidReason() { - com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason result = - com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason.forNumber( - invalidReason_); - return result == null - ? com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason.UNRECOGNIZED - : result; + @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason getInvalidReason() { + com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason result = com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason.forNumber(invalidReason_); + return result == null ? com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * The timestamp corresponding to the generation of the token.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -416,14 +340,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The timestamp corresponding to the generation of the token.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ @java.lang.Override @@ -431,8 +352,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The timestamp corresponding to the generation of the token.
    * 
@@ -445,18 +364,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } public static final int HOSTNAME_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object hostname_ = ""; /** - * - * *
    * The hostname of the page on which the token was generated.
    * 
* * string hostname = 4; - * * @return The hostname. */ @java.lang.Override @@ -465,29 +380,29 @@ public java.lang.String getHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; } } /** - * - * *
    * The hostname of the page on which the token was generated.
    * 
* * string hostname = 4; - * * @return The bytes for hostname. */ @java.lang.Override - public com.google.protobuf.ByteString getHostnameBytes() { + public com.google.protobuf.ByteString + getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hostname_ = b; return b; } else { @@ -496,18 +411,14 @@ public com.google.protobuf.ByteString getHostnameBytes() { } public static final int ACTION_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object action_ = ""; /** - * - * *
    * Action name provided at token generation.
    * 
* * string action = 5; - * * @return The action. */ @java.lang.Override @@ -516,29 +427,29 @@ public java.lang.String getAction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); action_ = s; return s; } } /** - * - * *
    * Action name provided at token generation.
    * 
* * string action = 5; - * * @return The bytes for action. */ @java.lang.Override - public com.google.protobuf.ByteString getActionBytes() { + public com.google.protobuf.ByteString + getActionBytes() { java.lang.Object ref = action_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); action_ = b; return b; } else { @@ -547,7 +458,6 @@ public com.google.protobuf.ByteString getActionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -559,14 +469,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (valid_ != false) { output.writeBool(1, valid_); } - if (invalidReason_ - != com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason - .INVALID_REASON_UNSPECIFIED - .getNumber()) { + if (invalidReason_ != com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason.INVALID_REASON_UNSPECIFIED.getNumber()) { output.writeEnum(2, invalidReason_); } if (createTime_ != null) { @@ -588,16 +496,16 @@ public int getSerializedSize() { size = 0; if (valid_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, valid_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, valid_); } - if (invalidReason_ - != com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason - .INVALID_REASON_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, invalidReason_); + if (invalidReason_ != com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason.INVALID_REASON_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, invalidReason_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, hostname_); @@ -613,22 +521,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.TokenProperties)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.TokenProperties other = - (com.google.recaptchaenterprise.v1beta1.TokenProperties) obj; + com.google.recaptchaenterprise.v1beta1.TokenProperties other = (com.google.recaptchaenterprise.v1beta1.TokenProperties) obj; - if (getValid() != other.getValid()) return false; + if (getValid() + != other.getValid()) return false; if (invalidReason_ != other.invalidReason_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } - if (!getHostname().equals(other.getHostname())) return false; - if (!getAction().equals(other.getAction())) return false; + if (!getHostname() + .equals(other.getHostname())) return false; + if (!getAction() + .equals(other.getAction())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -641,7 +552,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VALID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValid()); hash = (37 * hash) + INVALID_REASON_FIELD_NUMBER; hash = (53 * hash) + invalidReason_; if (hasCreateTime()) { @@ -658,128 +570,127 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.TokenProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1beta1.TokenProperties prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.TokenProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TokenProperties} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TokenProperties} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.TokenProperties) com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TokenProperties.class, - com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder.class); + com.google.recaptchaenterprise.v1beta1.TokenProperties.class, com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.TokenProperties.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -797,9 +708,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TokenProperties_descriptor; } @java.lang.Override @@ -818,11 +729,8 @@ public com.google.recaptchaenterprise.v1beta1.TokenProperties build() { @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TokenProperties buildPartial() { - com.google.recaptchaenterprise.v1beta1.TokenProperties result = - new com.google.recaptchaenterprise.v1beta1.TokenProperties(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1beta1.TokenProperties result = new com.google.recaptchaenterprise.v1beta1.TokenProperties(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -836,7 +744,9 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.TokenPropertie result.invalidReason_ = invalidReason_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.hostname_ = hostname_; @@ -850,39 +760,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.TokenPropertie public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1beta1.TokenProperties) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.TokenProperties) other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.TokenProperties)other); } else { super.mergeFrom(other); return this; @@ -890,8 +799,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.TokenProperties other) { - if (other == com.google.recaptchaenterprise.v1beta1.TokenProperties.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1beta1.TokenProperties.getDefaultInstance()) return this; if (other.getValid() != false) { setValid(other.getValid()); } @@ -937,43 +845,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - valid_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - invalidReason_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - hostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - action_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + valid_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + invalidReason_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + action_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -983,13 +887,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean valid_; + private boolean valid_ ; /** - * - * *
      * Whether the provided user response token is valid. When valid = false, the
      * reason could be specified in invalid_reason or it could also be due to
@@ -999,7 +900,6 @@ public Builder mergeFrom(
      * 
* * bool valid = 1; - * * @return The valid. */ @java.lang.Override @@ -1007,8 +907,6 @@ public boolean getValid() { return valid_; } /** - * - * *
      * Whether the provided user response token is valid. When valid = false, the
      * reason could be specified in invalid_reason or it could also be due to
@@ -1018,7 +916,6 @@ public boolean getValid() {
      * 
* * bool valid = 1; - * * @param value The valid to set. * @return This builder for chaining. */ @@ -1030,8 +927,6 @@ public Builder setValid(boolean value) { return this; } /** - * - * *
      * Whether the provided user response token is valid. When valid = false, the
      * reason could be specified in invalid_reason or it could also be due to
@@ -1041,7 +936,6 @@ public Builder setValid(boolean value) {
      * 
* * bool valid = 1; - * * @return This builder for chaining. */ public Builder clearValid() { @@ -1053,33 +947,22 @@ public Builder clearValid() { private int invalidReason_ = 0; /** - * - * *
      * Reason associated with the response when valid = false.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; * @return The enum numeric value on the wire for invalidReason. */ - @java.lang.Override - public int getInvalidReasonValue() { + @java.lang.Override public int getInvalidReasonValue() { return invalidReason_; } /** - * - * *
      * Reason associated with the response when valid = false.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; - * - * + * .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. */ @@ -1090,43 +973,28 @@ public Builder setInvalidReasonValue(int value) { return this; } /** - * - * *
      * Reason associated with the response when valid = false.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; * @return The invalidReason. */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason getInvalidReason() { - com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason result = - com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason.forNumber( - invalidReason_); - return result == null - ? com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason.UNRECOGNIZED - : result; + com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason result = com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason.forNumber(invalidReason_); + return result == null ? com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason.UNRECOGNIZED : result; } /** - * - * *
      * Reason associated with the response when valid = false.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; - * - * + * .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) { + public Builder setInvalidReason(com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason value) { if (value == null) { throw new NullPointerException(); } @@ -1136,16 +1004,11 @@ public Builder setInvalidReason( return this; } /** - * - * *
      * Reason associated with the response when valid = false.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; * @return This builder for chaining. */ public Builder clearInvalidReason() { @@ -1157,47 +1020,34 @@ public Builder clearInvalidReason() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * The timestamp corresponding to the generation of the token.
      * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The timestamp corresponding to the generation of the token.
      * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * The timestamp corresponding to the generation of the token.
      * 
@@ -1218,15 +1068,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The timestamp corresponding to the generation of the token.
      * 
* * .google.protobuf.Timestamp create_time = 3; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1237,8 +1086,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The timestamp corresponding to the generation of the token.
      * 
@@ -1247,9 +1094,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1262,8 +1109,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The timestamp corresponding to the generation of the token.
      * 
@@ -1281,8 +1126,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The timestamp corresponding to the generation of the token.
      * 
@@ -1295,8 +1138,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The timestamp corresponding to the generation of the token.
      * 
@@ -1307,14 +1148,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The timestamp corresponding to the generation of the token.
      * 
@@ -1322,17 +1160,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1340,20 +1175,18 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private java.lang.Object hostname_ = ""; /** - * - * *
      * The hostname of the page on which the token was generated.
      * 
* * string hostname = 4; - * * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; @@ -1362,21 +1195,20 @@ public java.lang.String getHostname() { } } /** - * - * *
      * The hostname of the page on which the token was generated.
      * 
* * string hostname = 4; - * * @return The bytes for hostname. */ - public com.google.protobuf.ByteString getHostnameBytes() { + public com.google.protobuf.ByteString + getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hostname_ = b; return b; } else { @@ -1384,35 +1216,28 @@ public com.google.protobuf.ByteString getHostnameBytes() { } } /** - * - * *
      * The hostname of the page on which the token was generated.
      * 
* * string hostname = 4; - * * @param value The hostname to set. * @return This builder for chaining. */ - public Builder setHostname(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHostname( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } hostname_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * The hostname of the page on which the token was generated.
      * 
* * string hostname = 4; - * * @return This builder for chaining. */ public Builder clearHostname() { @@ -1422,21 +1247,17 @@ public Builder clearHostname() { return this; } /** - * - * *
      * The hostname of the page on which the token was generated.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setHostnameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hostname_ = value; bitField0_ |= 0x00000008; @@ -1446,20 +1267,18 @@ public Builder setHostnameBytes(com.google.protobuf.ByteString value) { private java.lang.Object action_ = ""; /** - * - * *
      * Action name provided at token generation.
      * 
* * string action = 5; - * * @return The action. */ public java.lang.String getAction() { java.lang.Object ref = action_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); action_ = s; return s; @@ -1468,21 +1287,20 @@ public java.lang.String getAction() { } } /** - * - * *
      * Action name provided at token generation.
      * 
* * string action = 5; - * * @return The bytes for action. */ - public com.google.protobuf.ByteString getActionBytes() { + public com.google.protobuf.ByteString + getActionBytes() { java.lang.Object ref = action_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); action_ = b; return b; } else { @@ -1490,35 +1308,28 @@ public com.google.protobuf.ByteString getActionBytes() { } } /** - * - * *
      * Action name provided at token generation.
      * 
* * string action = 5; - * * @param value The action to set. * @return This builder for chaining. */ - public Builder setAction(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAction( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } action_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Action name provided at token generation.
      * 
* * string action = 5; - * * @return This builder for chaining. */ public Builder clearAction() { @@ -1528,30 +1339,26 @@ public Builder clearAction() { return this; } /** - * - * *
      * Action name provided at token generation.
      * 
* * 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) { - throw new NullPointerException(); - } + public Builder setActionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); action_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1561,12 +1368,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.TokenProperties) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.TokenProperties) private static final com.google.recaptchaenterprise.v1beta1.TokenProperties DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.TokenProperties(); } @@ -1575,27 +1382,27 @@ public static com.google.recaptchaenterprise.v1beta1.TokenProperties getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TokenProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TokenProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1610,4 +1417,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1beta1.TokenProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenPropertiesOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenPropertiesOrBuilder.java similarity index 70% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenPropertiesOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenPropertiesOrBuilder.java index f5ad339051d4..a41a61759f7a 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenPropertiesOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenPropertiesOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; -public interface TokenPropertiesOrBuilder - extends +public interface TokenPropertiesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.TokenProperties) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Whether the provided user response token is valid. When valid = false, the
    * reason could be specified in invalid_reason or it could also be due to
@@ -35,67 +17,48 @@ public interface TokenPropertiesOrBuilder
    * 
* * bool valid = 1; - * * @return The valid. */ boolean getValid(); /** - * - * *
    * Reason associated with the response when valid = false.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; * @return The enum numeric value on the wire for invalidReason. */ int getInvalidReasonValue(); /** - * - * *
    * Reason associated with the response when valid = false.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2; * @return The invalidReason. */ com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason getInvalidReason(); /** - * - * *
    * The timestamp corresponding to the generation of the token.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The timestamp corresponding to the generation of the token.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The timestamp corresponding to the generation of the token.
    * 
@@ -105,52 +68,42 @@ public interface TokenPropertiesOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The hostname of the page on which the token was generated.
    * 
* * string hostname = 4; - * * @return The hostname. */ java.lang.String getHostname(); /** - * - * *
    * The hostname of the page on which the token was generated.
    * 
* * string hostname = 4; - * * @return The bytes for hostname. */ - com.google.protobuf.ByteString getHostnameBytes(); + com.google.protobuf.ByteString + getHostnameBytes(); /** - * - * *
    * Action name provided at token generation.
    * 
* * string action = 5; - * * @return The action. */ java.lang.String getAction(); /** - * - * *
    * Action name provided at token generation.
    * 
* * string action = 5; - * * @return The bytes for action. */ - com.google.protobuf.ByteString getActionBytes(); + com.google.protobuf.ByteString + getActionBytes(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionData.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionData.java similarity index 72% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionData.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionData.java index 11865c1020c2..7fd202e5c46c 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionData.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionData.java @@ -1,43 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; /** - * - * *
  * Transaction data associated with a payment protected by reCAPTCHA Enterprise.
- * All fields are optional.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionData} */ -public final class TransactionData extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TransactionData extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.TransactionData) TransactionDataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TransactionData.newBuilder() to construct. private TransactionData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TransactionData() { transactionId_ = ""; paymentMethod_ = ""; @@ -50,58 +31,49 @@ private TransactionData() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TransactionData(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TransactionData.class, - com.google.recaptchaenterprise.v1beta1.TransactionData.Builder.class); + com.google.recaptchaenterprise.v1beta1.TransactionData.class, com.google.recaptchaenterprise.v1beta1.TransactionData.Builder.class); } - public interface AddressOrBuilder - extends + public interface AddressOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The recipient name, potentially including information such as "care of".
      * 
* * string recipient = 1; - * * @return The recipient. */ java.lang.String getRecipient(); /** - * - * *
      * The recipient name, potentially including information such as "care of".
      * 
* * string recipient = 1; - * * @return The bytes for recipient. */ - com.google.protobuf.ByteString getRecipientBytes(); + com.google.protobuf.ByteString + getRecipientBytes(); /** - * - * *
      * The first lines of the address. The first line generally contains the
      * street name and number, and further lines may include information such as
@@ -109,13 +81,11 @@ public interface AddressOrBuilder
      * 
* * repeated string address = 2; - * * @return A list containing the address. */ - java.util.List getAddressList(); + java.util.List + getAddressList(); /** - * - * *
      * The first lines of the address. The first line generally contains the
      * street name and number, and further lines may include information such as
@@ -123,13 +93,10 @@ public interface AddressOrBuilder
      * 
* * repeated string address = 2; - * * @return The count of address. */ int getAddressCount(); /** - * - * *
      * The first lines of the address. The first line generally contains the
      * street name and number, and further lines may include information such as
@@ -137,14 +104,11 @@ public interface AddressOrBuilder
      * 
* * repeated string address = 2; - * * @param index The index of the element to return. * @return The address at the given index. */ java.lang.String getAddress(int index); /** - * - * *
      * The first lines of the address. The first line generally contains the
      * street name and number, and further lines may include information such as
@@ -152,134 +116,112 @@ public interface AddressOrBuilder
      * 
* * repeated string address = 2; - * * @param index The index of the value to return. * @return The bytes of the address at the given index. */ - com.google.protobuf.ByteString getAddressBytes(int index); + com.google.protobuf.ByteString + getAddressBytes(int index); /** - * - * *
      * The town/city of the address.
      * 
* * string locality = 3; - * * @return The locality. */ java.lang.String getLocality(); /** - * - * *
      * The town/city of the address.
      * 
* * string locality = 3; - * * @return The bytes for locality. */ - com.google.protobuf.ByteString getLocalityBytes(); + com.google.protobuf.ByteString + getLocalityBytes(); /** - * - * *
      * The state, province, or otherwise administrative area of the address.
      * 
* * string administrative_area = 4; - * * @return The administrativeArea. */ java.lang.String getAdministrativeArea(); /** - * - * *
      * The state, province, or otherwise administrative area of the address.
      * 
* * string administrative_area = 4; - * * @return The bytes for administrativeArea. */ - com.google.protobuf.ByteString getAdministrativeAreaBytes(); + com.google.protobuf.ByteString + getAdministrativeAreaBytes(); /** - * - * *
      * The CLDR country/region of the address.
      * 
* * string region_code = 5; - * * @return The regionCode. */ java.lang.String getRegionCode(); /** - * - * *
      * The CLDR country/region of the address.
      * 
* * string region_code = 5; - * * @return The bytes for regionCode. */ - com.google.protobuf.ByteString getRegionCodeBytes(); + com.google.protobuf.ByteString + getRegionCodeBytes(); /** - * - * *
      * The postal or ZIP code of the address.
      * 
* * string postal_code = 6; - * * @return The postalCode. */ java.lang.String getPostalCode(); /** - * - * *
      * The postal or ZIP code of the address.
      * 
* * string postal_code = 6; - * * @return The bytes for postalCode. */ - com.google.protobuf.ByteString getPostalCodeBytes(); + com.google.protobuf.ByteString + getPostalCodeBytes(); } /** - * - * *
    * Structured address format for billing and shipping addresses.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address} */ - public static final class Address extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Address extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address) AddressOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Address.newBuilder() to construct. private Address(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Address() { recipient_ = ""; - address_ = com.google.protobuf.LazyStringArrayList.emptyList(); + address_ = + com.google.protobuf.LazyStringArrayList.emptyList(); locality_ = ""; administrativeArea_ = ""; regionCode_ = ""; @@ -288,38 +230,33 @@ private Address() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Address(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TransactionData.Address.class, - com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder.class); + com.google.recaptchaenterprise.v1beta1.TransactionData.Address.class, com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder.class); } public static final int RECIPIENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object recipient_ = ""; /** - * - * *
      * The recipient name, potentially including information such as "care of".
      * 
* * string recipient = 1; - * * @return The recipient. */ @java.lang.Override @@ -328,29 +265,29 @@ public java.lang.String getRecipient() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recipient_ = s; return s; } } /** - * - * *
      * The recipient name, potentially including information such as "care of".
      * 
* * string recipient = 1; - * * @return The bytes for recipient. */ @java.lang.Override - public com.google.protobuf.ByteString getRecipientBytes() { + public com.google.protobuf.ByteString + getRecipientBytes() { java.lang.Object ref = recipient_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); recipient_ = b; return b; } else { @@ -359,13 +296,10 @@ public com.google.protobuf.ByteString getRecipientBytes() { } public static final int ADDRESS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList address_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
      * The first lines of the address. The first line generally contains the
      * street name and number, and further lines may include information such as
@@ -373,15 +307,13 @@ public com.google.protobuf.ByteString getRecipientBytes() {
      * 
* * repeated string address = 2; - * * @return A list containing the address. */ - public com.google.protobuf.ProtocolStringList getAddressList() { + public com.google.protobuf.ProtocolStringList + getAddressList() { return address_; } /** - * - * *
      * The first lines of the address. The first line generally contains the
      * street name and number, and further lines may include information such as
@@ -389,15 +321,12 @@ public com.google.protobuf.ProtocolStringList getAddressList() {
      * 
* * repeated string address = 2; - * * @return The count of address. */ public int getAddressCount() { return address_.size(); } /** - * - * *
      * The first lines of the address. The first line generally contains the
      * street name and number, and further lines may include information such as
@@ -405,7 +334,6 @@ public int getAddressCount() {
      * 
* * repeated string address = 2; - * * @param index The index of the element to return. * @return The address at the given index. */ @@ -413,8 +341,6 @@ public java.lang.String getAddress(int index) { return address_.get(index); } /** - * - * *
      * The first lines of the address. The first line generally contains the
      * street name and number, and further lines may include information such as
@@ -422,27 +348,23 @@ public java.lang.String getAddress(int index) {
      * 
* * repeated string address = 2; - * * @param index The index of the value to return. * @return The bytes of the address at the given index. */ - public com.google.protobuf.ByteString getAddressBytes(int index) { + public com.google.protobuf.ByteString + getAddressBytes(int index) { return address_.getByteString(index); } public static final int LOCALITY_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object locality_ = ""; /** - * - * *
      * The town/city of the address.
      * 
* * string locality = 3; - * * @return The locality. */ @java.lang.Override @@ -451,29 +373,29 @@ public java.lang.String getLocality() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locality_ = s; return s; } } /** - * - * *
      * The town/city of the address.
      * 
* * string locality = 3; - * * @return The bytes for locality. */ @java.lang.Override - public com.google.protobuf.ByteString getLocalityBytes() { + public com.google.protobuf.ByteString + getLocalityBytes() { java.lang.Object ref = locality_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locality_ = b; return b; } else { @@ -482,18 +404,14 @@ public com.google.protobuf.ByteString getLocalityBytes() { } public static final int ADMINISTRATIVE_AREA_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object administrativeArea_ = ""; /** - * - * *
      * The state, province, or otherwise administrative area of the address.
      * 
* * string administrative_area = 4; - * * @return The administrativeArea. */ @java.lang.Override @@ -502,29 +420,29 @@ public java.lang.String getAdministrativeArea() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); administrativeArea_ = s; return s; } } /** - * - * *
      * The state, province, or otherwise administrative area of the address.
      * 
* * string administrative_area = 4; - * * @return The bytes for administrativeArea. */ @java.lang.Override - public com.google.protobuf.ByteString getAdministrativeAreaBytes() { + public com.google.protobuf.ByteString + getAdministrativeAreaBytes() { java.lang.Object ref = administrativeArea_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); administrativeArea_ = b; return b; } else { @@ -533,18 +451,14 @@ public com.google.protobuf.ByteString getAdministrativeAreaBytes() { } public static final int REGION_CODE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object regionCode_ = ""; /** - * - * *
      * The CLDR country/region of the address.
      * 
* * string region_code = 5; - * * @return The regionCode. */ @java.lang.Override @@ -553,29 +467,29 @@ public java.lang.String getRegionCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); regionCode_ = s; return s; } } /** - * - * *
      * The CLDR country/region of the address.
      * 
* * string region_code = 5; - * * @return The bytes for regionCode. */ @java.lang.Override - public com.google.protobuf.ByteString getRegionCodeBytes() { + public com.google.protobuf.ByteString + getRegionCodeBytes() { java.lang.Object ref = regionCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); regionCode_ = b; return b; } else { @@ -584,18 +498,14 @@ public com.google.protobuf.ByteString getRegionCodeBytes() { } public static final int POSTAL_CODE_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object postalCode_ = ""; /** - * - * *
      * The postal or ZIP code of the address.
      * 
* * string postal_code = 6; - * * @return The postalCode. */ @java.lang.Override @@ -604,29 +514,29 @@ public java.lang.String getPostalCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postalCode_ = s; return s; } } /** - * - * *
      * The postal or ZIP code of the address.
      * 
* * string postal_code = 6; - * * @return The bytes for postalCode. */ @java.lang.Override - public com.google.protobuf.ByteString getPostalCodeBytes() { + public com.google.protobuf.ByteString + getPostalCodeBytes() { java.lang.Object ref = postalCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); postalCode_ = b; return b; } else { @@ -635,7 +545,6 @@ public com.google.protobuf.ByteString getPostalCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -647,7 +556,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recipient_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipient_); } @@ -706,20 +616,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.TransactionData.Address)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.TransactionData.Address other = - (com.google.recaptchaenterprise.v1beta1.TransactionData.Address) obj; - - if (!getRecipient().equals(other.getRecipient())) return false; - if (!getAddressList().equals(other.getAddressList())) return false; - if (!getLocality().equals(other.getLocality())) return false; - if (!getAdministrativeArea().equals(other.getAdministrativeArea())) return false; - if (!getRegionCode().equals(other.getRegionCode())) return false; - if (!getPostalCode().equals(other.getPostalCode())) return false; + com.google.recaptchaenterprise.v1beta1.TransactionData.Address other = (com.google.recaptchaenterprise.v1beta1.TransactionData.Address) obj; + + if (!getRecipient() + .equals(other.getRecipient())) return false; + if (!getAddressList() + .equals(other.getAddressList())) return false; + if (!getLocality() + .equals(other.getLocality())) return false; + if (!getAdministrativeArea() + .equals(other.getAdministrativeArea())) return false; + if (!getRegionCode() + .equals(other.getRegionCode())) return false; + if (!getPostalCode() + .equals(other.getPostalCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -751,94 +666,89 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1beta1.TransactionData.Address prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.TransactionData.Address prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -848,47 +758,46 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Structured address format for billing and shipping addresses.
      * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address) com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TransactionData.Address.class, - com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder.class); + com.google.recaptchaenterprise.v1beta1.TransactionData.Address.class, com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.TransactionData.Address.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; recipient_ = ""; - address_ = com.google.protobuf.LazyStringArrayList.emptyList(); + address_ = + com.google.protobuf.LazyStringArrayList.emptyList(); locality_ = ""; administrativeArea_ = ""; regionCode_ = ""; @@ -897,14 +806,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Address_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TransactionData.Address - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.TransactionData.Address getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance(); } @@ -919,17 +827,13 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.Address build() { @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.Address buildPartial() { - com.google.recaptchaenterprise.v1beta1.TransactionData.Address result = - new com.google.recaptchaenterprise.v1beta1.TransactionData.Address(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1beta1.TransactionData.Address result = new com.google.recaptchaenterprise.v1beta1.TransactionData.Address(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.recaptchaenterprise.v1beta1.TransactionData.Address result) { + private void buildPartial0(com.google.recaptchaenterprise.v1beta1.TransactionData.Address result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.recipient_ = recipient_; @@ -956,52 +860,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1beta1.TransactionData.Address) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.TransactionData.Address) other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.TransactionData.Address)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.recaptchaenterprise.v1beta1.TransactionData.Address other) { - if (other - == com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.TransactionData.Address other) { + if (other == com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance()) return this; if (!other.getRecipient().isEmpty()) { recipient_ = other.recipient_; bitField0_ |= 0x00000001; @@ -1063,50 +961,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - recipient_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureAddressIsMutable(); - address_.add(s); - break; - } // case 18 - case 26: - { - locality_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - administrativeArea_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - regionCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - postalCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + recipient_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAddressIsMutable(); + address_.add(s); + break; + } // case 18 + case 26: { + locality_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + administrativeArea_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + regionCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + postalCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1116,25 +1007,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object recipient_ = ""; /** - * - * *
        * The recipient name, potentially including information such as "care of".
        * 
* * string recipient = 1; - * * @return The recipient. */ public java.lang.String getRecipient() { java.lang.Object ref = recipient_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recipient_ = s; return s; @@ -1143,21 +1031,20 @@ public java.lang.String getRecipient() { } } /** - * - * *
        * The recipient name, potentially including information such as "care of".
        * 
* * string recipient = 1; - * * @return The bytes for recipient. */ - public com.google.protobuf.ByteString getRecipientBytes() { + public com.google.protobuf.ByteString + getRecipientBytes() { java.lang.Object ref = recipient_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); recipient_ = b; return b; } else { @@ -1165,35 +1052,28 @@ public com.google.protobuf.ByteString getRecipientBytes() { } } /** - * - * *
        * The recipient name, potentially including information such as "care of".
        * 
* * string recipient = 1; - * * @param value The recipient to set. * @return This builder for chaining. */ - public Builder setRecipient(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecipient( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } recipient_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The recipient name, potentially including information such as "care of".
        * 
* * string recipient = 1; - * * @return This builder for chaining. */ public Builder clearRecipient() { @@ -1203,21 +1083,17 @@ public Builder clearRecipient() { return this; } /** - * - * *
        * The recipient name, potentially including information such as "care of".
        * 
* * string recipient = 1; - * * @param value The bytes for recipient to set. * @return This builder for chaining. */ - public Builder setRecipientBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecipientBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); recipient_ = value; bitField0_ |= 0x00000001; @@ -1227,7 +1103,6 @@ public Builder setRecipientBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList address_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureAddressIsMutable() { if (!address_.isModifiable()) { address_ = new com.google.protobuf.LazyStringArrayList(address_); @@ -1235,8 +1110,6 @@ private void ensureAddressIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
        * The first lines of the address. The first line generally contains the
        * street name and number, and further lines may include information such as
@@ -1244,16 +1117,14 @@ private void ensureAddressIsMutable() {
        * 
* * repeated string address = 2; - * * @return A list containing the address. */ - public com.google.protobuf.ProtocolStringList getAddressList() { + public com.google.protobuf.ProtocolStringList + getAddressList() { address_.makeImmutable(); return address_; } /** - * - * *
        * The first lines of the address. The first line generally contains the
        * street name and number, and further lines may include information such as
@@ -1261,15 +1132,12 @@ public com.google.protobuf.ProtocolStringList getAddressList() {
        * 
* * repeated string address = 2; - * * @return The count of address. */ public int getAddressCount() { return address_.size(); } /** - * - * *
        * The first lines of the address. The first line generally contains the
        * street name and number, and further lines may include information such as
@@ -1277,7 +1145,6 @@ public int getAddressCount() {
        * 
* * repeated string address = 2; - * * @param index The index of the element to return. * @return The address at the given index. */ @@ -1285,8 +1152,6 @@ public java.lang.String getAddress(int index) { return address_.get(index); } /** - * - * *
        * The first lines of the address. The first line generally contains the
        * street name and number, and further lines may include information such as
@@ -1294,16 +1159,14 @@ public java.lang.String getAddress(int index) {
        * 
* * repeated string address = 2; - * * @param index The index of the value to return. * @return The bytes of the address at the given index. */ - public com.google.protobuf.ByteString getAddressBytes(int index) { + public com.google.protobuf.ByteString + getAddressBytes(int index) { return address_.getByteString(index); } /** - * - * *
        * The first lines of the address. The first line generally contains the
        * street name and number, and further lines may include information such as
@@ -1311,15 +1174,13 @@ public com.google.protobuf.ByteString getAddressBytes(int index) {
        * 
* * repeated string address = 2; - * * @param index The index to set the value at. * @param value The address to set. * @return This builder for chaining. */ - public Builder setAddress(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAddress( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAddressIsMutable(); address_.set(index, value); bitField0_ |= 0x00000002; @@ -1327,8 +1188,6 @@ public Builder setAddress(int index, java.lang.String value) { return this; } /** - * - * *
        * The first lines of the address. The first line generally contains the
        * street name and number, and further lines may include information such as
@@ -1336,14 +1195,12 @@ public Builder setAddress(int index, java.lang.String value) {
        * 
* * repeated string address = 2; - * * @param value The address to add. * @return This builder for chaining. */ - public Builder addAddress(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAddress( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAddressIsMutable(); address_.add(value); bitField0_ |= 0x00000002; @@ -1351,8 +1208,6 @@ public Builder addAddress(java.lang.String value) { return this; } /** - * - * *
        * The first lines of the address. The first line generally contains the
        * street name and number, and further lines may include information such as
@@ -1360,20 +1215,19 @@ public Builder addAddress(java.lang.String value) {
        * 
* * repeated string address = 2; - * * @param values The address to add. * @return This builder for chaining. */ - public Builder addAllAddress(java.lang.Iterable values) { + public Builder addAllAddress( + java.lang.Iterable values) { ensureAddressIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, address_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, address_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * The first lines of the address. The first line generally contains the
        * street name and number, and further lines may include information such as
@@ -1381,19 +1235,16 @@ public Builder addAllAddress(java.lang.Iterable values) {
        * 
* * repeated string address = 2; - * * @return This builder for chaining. */ public Builder clearAddress() { - address_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + address_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
        * The first lines of the address. The first line generally contains the
        * street name and number, and further lines may include information such as
@@ -1401,14 +1252,12 @@ public Builder clearAddress() {
        * 
* * repeated string address = 2; - * * @param value The bytes of the address to add. * @return This builder for chaining. */ - public Builder addAddressBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAddressIsMutable(); address_.add(value); @@ -1419,20 +1268,18 @@ public Builder addAddressBytes(com.google.protobuf.ByteString value) { private java.lang.Object locality_ = ""; /** - * - * *
        * The town/city of the address.
        * 
* * string locality = 3; - * * @return The locality. */ public java.lang.String getLocality() { java.lang.Object ref = locality_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locality_ = s; return s; @@ -1441,21 +1288,20 @@ public java.lang.String getLocality() { } } /** - * - * *
        * The town/city of the address.
        * 
* * string locality = 3; - * * @return The bytes for locality. */ - public com.google.protobuf.ByteString getLocalityBytes() { + public com.google.protobuf.ByteString + getLocalityBytes() { java.lang.Object ref = locality_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locality_ = b; return b; } else { @@ -1463,35 +1309,28 @@ public com.google.protobuf.ByteString getLocalityBytes() { } } /** - * - * *
        * The town/city of the address.
        * 
* * string locality = 3; - * * @param value The locality to set. * @return This builder for chaining. */ - public Builder setLocality(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocality( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } locality_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * The town/city of the address.
        * 
* * string locality = 3; - * * @return This builder for chaining. */ public Builder clearLocality() { @@ -1501,21 +1340,17 @@ public Builder clearLocality() { return this; } /** - * - * *
        * The town/city of the address.
        * 
* * string locality = 3; - * * @param value The bytes for locality to set. * @return This builder for chaining. */ - public Builder setLocalityBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocalityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); locality_ = value; bitField0_ |= 0x00000004; @@ -1525,20 +1360,18 @@ public Builder setLocalityBytes(com.google.protobuf.ByteString value) { private java.lang.Object administrativeArea_ = ""; /** - * - * *
        * The state, province, or otherwise administrative area of the address.
        * 
* * string administrative_area = 4; - * * @return The administrativeArea. */ public java.lang.String getAdministrativeArea() { java.lang.Object ref = administrativeArea_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); administrativeArea_ = s; return s; @@ -1547,21 +1380,20 @@ public java.lang.String getAdministrativeArea() { } } /** - * - * *
        * The state, province, or otherwise administrative area of the address.
        * 
* * string administrative_area = 4; - * * @return The bytes for administrativeArea. */ - public com.google.protobuf.ByteString getAdministrativeAreaBytes() { + public com.google.protobuf.ByteString + getAdministrativeAreaBytes() { java.lang.Object ref = administrativeArea_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); administrativeArea_ = b; return b; } else { @@ -1569,35 +1401,28 @@ public com.google.protobuf.ByteString getAdministrativeAreaBytes() { } } /** - * - * *
        * The state, province, or otherwise administrative area of the address.
        * 
* * string administrative_area = 4; - * * @param value The administrativeArea to set. * @return This builder for chaining. */ - public Builder setAdministrativeArea(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAdministrativeArea( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } administrativeArea_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
        * The state, province, or otherwise administrative area of the address.
        * 
* * string administrative_area = 4; - * * @return This builder for chaining. */ public Builder clearAdministrativeArea() { @@ -1607,21 +1432,17 @@ public Builder clearAdministrativeArea() { return this; } /** - * - * *
        * The state, province, or otherwise administrative area of the address.
        * 
* * string administrative_area = 4; - * * @param value The bytes for administrativeArea to set. * @return This builder for chaining. */ - public Builder setAdministrativeAreaBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAdministrativeAreaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); administrativeArea_ = value; bitField0_ |= 0x00000008; @@ -1631,20 +1452,18 @@ public Builder setAdministrativeAreaBytes(com.google.protobuf.ByteString value) private java.lang.Object regionCode_ = ""; /** - * - * *
        * The CLDR country/region of the address.
        * 
* * string region_code = 5; - * * @return The regionCode. */ public java.lang.String getRegionCode() { java.lang.Object ref = regionCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); regionCode_ = s; return s; @@ -1653,21 +1472,20 @@ public java.lang.String getRegionCode() { } } /** - * - * *
        * The CLDR country/region of the address.
        * 
* * string region_code = 5; - * * @return The bytes for regionCode. */ - public com.google.protobuf.ByteString getRegionCodeBytes() { + public com.google.protobuf.ByteString + getRegionCodeBytes() { java.lang.Object ref = regionCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); regionCode_ = b; return b; } else { @@ -1675,35 +1493,28 @@ public com.google.protobuf.ByteString getRegionCodeBytes() { } } /** - * - * *
        * The CLDR country/region of the address.
        * 
* * string region_code = 5; - * * @param value The regionCode to set. * @return This builder for chaining. */ - public Builder setRegionCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRegionCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } regionCode_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
        * The CLDR country/region of the address.
        * 
* * string region_code = 5; - * * @return This builder for chaining. */ public Builder clearRegionCode() { @@ -1713,21 +1524,17 @@ public Builder clearRegionCode() { return this; } /** - * - * *
        * The CLDR country/region of the address.
        * 
* * string region_code = 5; - * * @param value The bytes for regionCode to set. * @return This builder for chaining. */ - public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRegionCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); regionCode_ = value; bitField0_ |= 0x00000010; @@ -1737,20 +1544,18 @@ public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object postalCode_ = ""; /** - * - * *
        * The postal or ZIP code of the address.
        * 
* * string postal_code = 6; - * * @return The postalCode. */ public java.lang.String getPostalCode() { java.lang.Object ref = postalCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postalCode_ = s; return s; @@ -1759,21 +1564,20 @@ public java.lang.String getPostalCode() { } } /** - * - * *
        * The postal or ZIP code of the address.
        * 
* * string postal_code = 6; - * * @return The bytes for postalCode. */ - public com.google.protobuf.ByteString getPostalCodeBytes() { + public com.google.protobuf.ByteString + getPostalCodeBytes() { java.lang.Object ref = postalCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); postalCode_ = b; return b; } else { @@ -1781,35 +1585,28 @@ public com.google.protobuf.ByteString getPostalCodeBytes() { } } /** - * - * *
        * The postal or ZIP code of the address.
        * 
* * string postal_code = 6; - * * @param value The postalCode to set. * @return This builder for chaining. */ - public Builder setPostalCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPostalCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } postalCode_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
        * The postal or ZIP code of the address.
        * 
* * string postal_code = 6; - * * @return This builder for chaining. */ public Builder clearPostalCode() { @@ -1819,28 +1616,23 @@ public Builder clearPostalCode() { return this; } /** - * - * *
        * The postal or ZIP code of the address.
        * 
* * string postal_code = 6; - * * @param value The bytes for postalCode to set. * @return This builder for chaining. */ - public Builder setPostalCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPostalCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); postalCode_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1853,44 +1645,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address) - private static final com.google.recaptchaenterprise.v1beta1.TransactionData.Address - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1beta1.TransactionData.Address DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.TransactionData.Address(); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Address getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser
PARSER = - new com.google.protobuf.AbstractParser
() { - @java.lang.Override - public Address parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser
() { + @java.lang.Override + public Address parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser
parser() { return PARSER; @@ -1902,20 +1691,17 @@ public com.google.protobuf.Parser
getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TransactionData.Address - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.TransactionData.Address getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface UserOrBuilder - extends + public interface UserOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.TransactionData.User) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Unique account identifier for this user. If using account defender,
      * this should match the hashed_account_id field. Otherwise, a unique and
@@ -1923,13 +1709,10 @@ public interface UserOrBuilder
      * 
* * string account_id = 6; - * * @return The accountId. */ java.lang.String getAccountId(); /** - * - * *
      * Unique account identifier for this user. If using account defender,
      * this should match the hashed_account_id field. Otherwise, a unique and
@@ -1937,121 +1720,99 @@ public interface UserOrBuilder
      * 
* * string account_id = 6; - * * @return The bytes for accountId. */ - com.google.protobuf.ByteString getAccountIdBytes(); + com.google.protobuf.ByteString + getAccountIdBytes(); /** - * - * *
      * The epoch milliseconds of the user's account creation.
      * 
* * int64 creation_ms = 1; - * * @return The creationMs. */ long getCreationMs(); /** - * - * *
      * The email address of the user.
      * 
* * string email = 2; - * * @return The email. */ java.lang.String getEmail(); /** - * - * *
      * The email address of the user.
      * 
* * string email = 2; - * * @return The bytes for email. */ - com.google.protobuf.ByteString getEmailBytes(); + com.google.protobuf.ByteString + getEmailBytes(); /** - * - * *
      * Whether the email has been verified to be accessible by the user (OTP or
      * similar).
      * 
* * bool email_verified = 3; - * * @return The emailVerified. */ boolean getEmailVerified(); /** - * - * *
      * The phone number of the user, with country code.
      * 
* * string phone_number = 4; - * * @return The phoneNumber. */ java.lang.String getPhoneNumber(); /** - * - * *
      * The phone number of the user, with country code.
      * 
* * string phone_number = 4; - * * @return The bytes for phoneNumber. */ - com.google.protobuf.ByteString getPhoneNumberBytes(); + com.google.protobuf.ByteString + getPhoneNumberBytes(); /** - * - * *
      * Whether the phone number has been verified to be accessible by the user
      * (OTP or similar).
      * 
* * bool phone_verified = 5; - * * @return The phoneVerified. */ boolean getPhoneVerified(); } /** - * - * *
    * Details about a user's account involved in the transaction.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionData.User} */ - public static final class User extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class User extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.TransactionData.User) UserOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use User.newBuilder() to construct. private User(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private User() { accountId_ = ""; email_ = ""; @@ -2060,32 +1821,28 @@ private User() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new User(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TransactionData.User.class, - com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder.class); + com.google.recaptchaenterprise.v1beta1.TransactionData.User.class, com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder.class); } public static final int ACCOUNT_ID_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object accountId_ = ""; /** - * - * *
      * Unique account identifier for this user. If using account defender,
      * this should match the hashed_account_id field. Otherwise, a unique and
@@ -2093,7 +1850,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string account_id = 6; - * * @return The accountId. */ @java.lang.Override @@ -2102,15 +1858,14 @@ public java.lang.String getAccountId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountId_ = s; return s; } } /** - * - * *
      * Unique account identifier for this user. If using account defender,
      * this should match the hashed_account_id field. Otherwise, a unique and
@@ -2118,15 +1873,16 @@ public java.lang.String getAccountId() {
      * 
* * string account_id = 6; - * * @return The bytes for accountId. */ @java.lang.Override - public com.google.protobuf.ByteString getAccountIdBytes() { + public com.google.protobuf.ByteString + getAccountIdBytes() { java.lang.Object ref = accountId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accountId_ = b; return b; } else { @@ -2137,14 +1893,11 @@ public com.google.protobuf.ByteString getAccountIdBytes() { public static final int CREATION_MS_FIELD_NUMBER = 1; private long creationMs_ = 0L; /** - * - * *
      * The epoch milliseconds of the user's account creation.
      * 
* * int64 creation_ms = 1; - * * @return The creationMs. */ @java.lang.Override @@ -2153,18 +1906,14 @@ public long getCreationMs() { } public static final int EMAIL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object email_ = ""; /** - * - * *
      * The email address of the user.
      * 
* * string email = 2; - * * @return The email. */ @java.lang.Override @@ -2173,29 +1922,29 @@ public java.lang.String getEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; } } /** - * - * *
      * The email address of the user.
      * 
* * string email = 2; - * * @return The bytes for email. */ @java.lang.Override - public com.google.protobuf.ByteString getEmailBytes() { + public com.google.protobuf.ByteString + getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); email_ = b; return b; } else { @@ -2206,15 +1955,12 @@ public com.google.protobuf.ByteString getEmailBytes() { public static final int EMAIL_VERIFIED_FIELD_NUMBER = 3; private boolean emailVerified_ = false; /** - * - * *
      * Whether the email has been verified to be accessible by the user (OTP or
      * similar).
      * 
* * bool email_verified = 3; - * * @return The emailVerified. */ @java.lang.Override @@ -2223,18 +1969,14 @@ public boolean getEmailVerified() { } public static final int PHONE_NUMBER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object phoneNumber_ = ""; /** - * - * *
      * The phone number of the user, with country code.
      * 
* * string phone_number = 4; - * * @return The phoneNumber. */ @java.lang.Override @@ -2243,29 +1985,29 @@ public java.lang.String getPhoneNumber() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phoneNumber_ = s; return s; } } /** - * - * *
      * The phone number of the user, with country code.
      * 
* * string phone_number = 4; - * * @return The bytes for phoneNumber. */ @java.lang.Override - public com.google.protobuf.ByteString getPhoneNumberBytes() { + public com.google.protobuf.ByteString + getPhoneNumberBytes() { java.lang.Object ref = phoneNumber_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); phoneNumber_ = b; return b; } else { @@ -2276,15 +2018,12 @@ public com.google.protobuf.ByteString getPhoneNumberBytes() { public static final int PHONE_VERIFIED_FIELD_NUMBER = 5; private boolean phoneVerified_ = false; /** - * - * *
      * Whether the phone number has been verified to be accessible by the user
      * (OTP or similar).
      * 
* * bool phone_verified = 5; - * * @return The phoneVerified. */ @java.lang.Override @@ -2293,7 +2032,6 @@ public boolean getPhoneVerified() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2305,7 +2043,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (creationMs_ != 0L) { output.writeInt64(1, creationMs_); } @@ -2334,19 +2073,22 @@ public int getSerializedSize() { size = 0; if (creationMs_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, creationMs_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, creationMs_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, email_); } if (emailVerified_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, emailVerified_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, emailVerified_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phoneNumber_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, phoneNumber_); } if (phoneVerified_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, phoneVerified_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, phoneVerified_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, accountId_); @@ -2359,20 +2101,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.TransactionData.User)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.TransactionData.User other = - (com.google.recaptchaenterprise.v1beta1.TransactionData.User) obj; - - if (!getAccountId().equals(other.getAccountId())) return false; - if (getCreationMs() != other.getCreationMs()) return false; - if (!getEmail().equals(other.getEmail())) return false; - if (getEmailVerified() != other.getEmailVerified()) return false; - if (!getPhoneNumber().equals(other.getPhoneNumber())) return false; - if (getPhoneVerified() != other.getPhoneVerified()) return false; + com.google.recaptchaenterprise.v1beta1.TransactionData.User other = (com.google.recaptchaenterprise.v1beta1.TransactionData.User) obj; + + if (!getAccountId() + .equals(other.getAccountId())) return false; + if (getCreationMs() + != other.getCreationMs()) return false; + if (!getEmail() + .equals(other.getEmail())) return false; + if (getEmailVerified() + != other.getEmailVerified()) return false; + if (!getPhoneNumber() + .equals(other.getPhoneNumber())) return false; + if (getPhoneVerified() + != other.getPhoneVerified()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2387,109 +2134,107 @@ public int hashCode() { hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getAccountId().hashCode(); hash = (37 * hash) + CREATION_MS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCreationMs()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCreationMs()); hash = (37 * hash) + EMAIL_FIELD_NUMBER; hash = (53 * hash) + getEmail().hashCode(); hash = (37 * hash) + EMAIL_VERIFIED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEmailVerified()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEmailVerified()); hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getPhoneNumber().hashCode(); hash = (37 * hash) + PHONE_VERIFIED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPhoneVerified()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPhoneVerified()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.User parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1beta1.TransactionData.User prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.TransactionData.User prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2499,41 +2244,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Details about a user's account involved in the transaction.
      * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionData.User} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.TransactionData.User) com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TransactionData.User.class, - com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder.class); + com.google.recaptchaenterprise.v1beta1.TransactionData.User.class, com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.TransactionData.User.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2548,14 +2291,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_User_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TransactionData.User - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.TransactionData.User getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance(); } @@ -2570,17 +2312,13 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.User build() { @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.User buildPartial() { - com.google.recaptchaenterprise.v1beta1.TransactionData.User result = - new com.google.recaptchaenterprise.v1beta1.TransactionData.User(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1beta1.TransactionData.User result = new com.google.recaptchaenterprise.v1beta1.TransactionData.User(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.recaptchaenterprise.v1beta1.TransactionData.User result) { + private void buildPartial0(com.google.recaptchaenterprise.v1beta1.TransactionData.User result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.accountId_ = accountId_; @@ -2606,41 +2344,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1beta1.TransactionData.User) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.TransactionData.User) other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.TransactionData.User)other); } else { super.mergeFrom(other); return this; @@ -2648,9 +2383,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.TransactionData.User other) { - if (other - == com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance()) return this; if (!other.getAccountId().isEmpty()) { accountId_ = other.accountId_; bitField0_ |= 0x00000001; @@ -2701,49 +2434,42 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - creationMs_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 8 - case 18: - { - email_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 24: - { - emailVerified_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 24 - case 34: - { - phoneNumber_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 40: - { - phoneVerified_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 40 - case 50: - { - accountId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + creationMs_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 8 + case 18: { + email_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 24: { + emailVerified_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 34: { + phoneNumber_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 40: { + phoneVerified_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 50: { + accountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2753,13 +2479,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object accountId_ = ""; /** - * - * *
        * Unique account identifier for this user. If using account defender,
        * this should match the hashed_account_id field. Otherwise, a unique and
@@ -2767,13 +2490,13 @@ public Builder mergeFrom(
        * 
* * string account_id = 6; - * * @return The accountId. */ public java.lang.String getAccountId() { java.lang.Object ref = accountId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountId_ = s; return s; @@ -2782,8 +2505,6 @@ public java.lang.String getAccountId() { } } /** - * - * *
        * Unique account identifier for this user. If using account defender,
        * this should match the hashed_account_id field. Otherwise, a unique and
@@ -2791,14 +2512,15 @@ public java.lang.String getAccountId() {
        * 
* * string account_id = 6; - * * @return The bytes for accountId. */ - public com.google.protobuf.ByteString getAccountIdBytes() { + public com.google.protobuf.ByteString + getAccountIdBytes() { java.lang.Object ref = accountId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accountId_ = b; return b; } else { @@ -2806,8 +2528,6 @@ public com.google.protobuf.ByteString getAccountIdBytes() { } } /** - * - * *
        * Unique account identifier for this user. If using account defender,
        * this should match the hashed_account_id field. Otherwise, a unique and
@@ -2815,22 +2535,18 @@ public com.google.protobuf.ByteString getAccountIdBytes() {
        * 
* * string account_id = 6; - * * @param value The accountId to set. * @return This builder for chaining. */ - public Builder setAccountId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAccountId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } accountId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Unique account identifier for this user. If using account defender,
        * this should match the hashed_account_id field. Otherwise, a unique and
@@ -2838,7 +2554,6 @@ public Builder setAccountId(java.lang.String value) {
        * 
* * string account_id = 6; - * * @return This builder for chaining. */ public Builder clearAccountId() { @@ -2848,8 +2563,6 @@ public Builder clearAccountId() { return this; } /** - * - * *
        * Unique account identifier for this user. If using account defender,
        * this should match the hashed_account_id field. Otherwise, a unique and
@@ -2857,14 +2570,12 @@ public Builder clearAccountId() {
        * 
* * string account_id = 6; - * * @param value The bytes for accountId to set. * @return This builder for chaining. */ - public Builder setAccountIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAccountIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); accountId_ = value; bitField0_ |= 0x00000001; @@ -2872,16 +2583,13 @@ public Builder setAccountIdBytes(com.google.protobuf.ByteString value) { return this; } - private long creationMs_; + private long creationMs_ ; /** - * - * *
        * The epoch milliseconds of the user's account creation.
        * 
* * int64 creation_ms = 1; - * * @return The creationMs. */ @java.lang.Override @@ -2889,14 +2597,11 @@ public long getCreationMs() { return creationMs_; } /** - * - * *
        * The epoch milliseconds of the user's account creation.
        * 
* * int64 creation_ms = 1; - * * @param value The creationMs to set. * @return This builder for chaining. */ @@ -2908,14 +2613,11 @@ public Builder setCreationMs(long value) { return this; } /** - * - * *
        * The epoch milliseconds of the user's account creation.
        * 
* * int64 creation_ms = 1; - * * @return This builder for chaining. */ public Builder clearCreationMs() { @@ -2927,20 +2629,18 @@ public Builder clearCreationMs() { private java.lang.Object email_ = ""; /** - * - * *
        * The email address of the user.
        * 
* * string email = 2; - * * @return The email. */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; @@ -2949,21 +2649,20 @@ public java.lang.String getEmail() { } } /** - * - * *
        * The email address of the user.
        * 
* * string email = 2; - * * @return The bytes for email. */ - public com.google.protobuf.ByteString getEmailBytes() { + public com.google.protobuf.ByteString + getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); email_ = b; return b; } else { @@ -2971,35 +2670,28 @@ public com.google.protobuf.ByteString getEmailBytes() { } } /** - * - * *
        * The email address of the user.
        * 
* * string email = 2; - * * @param value The email to set. * @return This builder for chaining. */ - public Builder setEmail(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEmail( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } email_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * The email address of the user.
        * 
* * string email = 2; - * * @return This builder for chaining. */ public Builder clearEmail() { @@ -3009,21 +2701,17 @@ public Builder clearEmail() { return this; } /** - * - * *
        * The email address of the user.
        * 
* * string email = 2; - * * @param value The bytes for email to set. * @return This builder for chaining. */ - public Builder setEmailBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); email_ = value; bitField0_ |= 0x00000004; @@ -3031,17 +2719,14 @@ public Builder setEmailBytes(com.google.protobuf.ByteString value) { return this; } - private boolean emailVerified_; + private boolean emailVerified_ ; /** - * - * *
        * Whether the email has been verified to be accessible by the user (OTP or
        * similar).
        * 
* * bool email_verified = 3; - * * @return The emailVerified. */ @java.lang.Override @@ -3049,15 +2734,12 @@ public boolean getEmailVerified() { return emailVerified_; } /** - * - * *
        * Whether the email has been verified to be accessible by the user (OTP or
        * similar).
        * 
* * bool email_verified = 3; - * * @param value The emailVerified to set. * @return This builder for chaining. */ @@ -3069,15 +2751,12 @@ public Builder setEmailVerified(boolean value) { return this; } /** - * - * *
        * Whether the email has been verified to be accessible by the user (OTP or
        * similar).
        * 
* * bool email_verified = 3; - * * @return This builder for chaining. */ public Builder clearEmailVerified() { @@ -3089,20 +2768,18 @@ public Builder clearEmailVerified() { private java.lang.Object phoneNumber_ = ""; /** - * - * *
        * The phone number of the user, with country code.
        * 
* * string phone_number = 4; - * * @return The phoneNumber. */ public java.lang.String getPhoneNumber() { java.lang.Object ref = phoneNumber_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phoneNumber_ = s; return s; @@ -3111,21 +2788,20 @@ public java.lang.String getPhoneNumber() { } } /** - * - * *
        * The phone number of the user, with country code.
        * 
* * string phone_number = 4; - * * @return The bytes for phoneNumber. */ - public com.google.protobuf.ByteString getPhoneNumberBytes() { + public com.google.protobuf.ByteString + getPhoneNumberBytes() { java.lang.Object ref = phoneNumber_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); phoneNumber_ = b; return b; } else { @@ -3133,35 +2809,28 @@ public com.google.protobuf.ByteString getPhoneNumberBytes() { } } /** - * - * *
        * The phone number of the user, with country code.
        * 
* * string phone_number = 4; - * * @param value The phoneNumber to set. * @return This builder for chaining. */ - public Builder setPhoneNumber(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhoneNumber( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } phoneNumber_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
        * The phone number of the user, with country code.
        * 
* * string phone_number = 4; - * * @return This builder for chaining. */ public Builder clearPhoneNumber() { @@ -3171,21 +2840,17 @@ public Builder clearPhoneNumber() { return this; } /** - * - * *
        * The phone number of the user, with country code.
        * 
* * string phone_number = 4; - * * @param value The bytes for phoneNumber to set. * @return This builder for chaining. */ - public Builder setPhoneNumberBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhoneNumberBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); phoneNumber_ = value; bitField0_ |= 0x00000010; @@ -3193,17 +2858,14 @@ public Builder setPhoneNumberBytes(com.google.protobuf.ByteString value) { return this; } - private boolean phoneVerified_; + private boolean phoneVerified_ ; /** - * - * *
        * Whether the phone number has been verified to be accessible by the user
        * (OTP or similar).
        * 
* * bool phone_verified = 5; - * * @return The phoneVerified. */ @java.lang.Override @@ -3211,15 +2873,12 @@ public boolean getPhoneVerified() { return phoneVerified_; } /** - * - * *
        * Whether the phone number has been verified to be accessible by the user
        * (OTP or similar).
        * 
* * bool phone_verified = 5; - * * @param value The phoneVerified to set. * @return This builder for chaining. */ @@ -3231,15 +2890,12 @@ public Builder setPhoneVerified(boolean value) { return this; } /** - * - * *
        * Whether the phone number has been verified to be accessible by the user
        * (OTP or similar).
        * 
* * bool phone_verified = 5; - * * @return This builder for chaining. */ public Builder clearPhoneVerified() { @@ -3248,7 +2904,6 @@ public Builder clearPhoneVerified() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3261,13 +2916,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.TransactionData.User) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.TransactionData.User) - private static final com.google.recaptchaenterprise.v1beta1.TransactionData.User - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1beta1.TransactionData.User DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.TransactionData.User(); } @@ -3276,28 +2930,27 @@ public static com.google.recaptchaenterprise.v1beta1.TransactionData.User getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public User parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public User parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3312,111 +2965,92 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1beta1.TransactionData.User getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ItemOrBuilder - extends + public interface ItemOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The full name of the item.
      * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * The full name of the item.
      * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * The value per item that the user is paying, in the transaction currency,
      * after discounts.
      * 
* * double value = 2; - * * @return The value. */ double getValue(); /** - * - * *
      * The quantity of this item that is being purchased.
      * 
* * int64 quantity = 3; - * * @return The quantity. */ long getQuantity(); /** - * - * *
      * When a merchant is specified, its corresponding account_id. Necessary to
      * populate marketplace-style transactions.
      * 
* * string merchant_account_id = 4; - * * @return The merchantAccountId. */ java.lang.String getMerchantAccountId(); /** - * - * *
      * When a merchant is specified, its corresponding account_id. Necessary to
      * populate marketplace-style transactions.
      * 
* * string merchant_account_id = 4; - * * @return The bytes for merchantAccountId. */ - com.google.protobuf.ByteString getMerchantAccountIdBytes(); + com.google.protobuf.ByteString + getMerchantAccountIdBytes(); } /** - * - * *
    * Line items being purchased in this transaction.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item} */ - public static final class Item extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Item extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item) ItemOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Item.newBuilder() to construct. private Item(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Item() { name_ = ""; merchantAccountId_ = ""; @@ -3424,38 +3058,33 @@ private Item() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Item(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TransactionData.Item.class, - com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder.class); + com.google.recaptchaenterprise.v1beta1.TransactionData.Item.class, com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
      * The full name of the item.
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -3464,29 +3093,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * The full name of the item.
      * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -3497,15 +3126,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALUE_FIELD_NUMBER = 2; private double value_ = 0D; /** - * - * *
      * The value per item that the user is paying, in the transaction currency,
      * after discounts.
      * 
* * double value = 2; - * * @return The value. */ @java.lang.Override @@ -3516,14 +3142,11 @@ public double getValue() { public static final int QUANTITY_FIELD_NUMBER = 3; private long quantity_ = 0L; /** - * - * *
      * The quantity of this item that is being purchased.
      * 
* * int64 quantity = 3; - * * @return The quantity. */ @java.lang.Override @@ -3532,19 +3155,15 @@ public long getQuantity() { } public static final int MERCHANT_ACCOUNT_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object merchantAccountId_ = ""; /** - * - * *
      * When a merchant is specified, its corresponding account_id. Necessary to
      * populate marketplace-style transactions.
      * 
* * string merchant_account_id = 4; - * * @return The merchantAccountId. */ @java.lang.Override @@ -3553,30 +3172,30 @@ public java.lang.String getMerchantAccountId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); merchantAccountId_ = s; return s; } } /** - * - * *
      * When a merchant is specified, its corresponding account_id. Necessary to
      * populate marketplace-style transactions.
      * 
* * string merchant_account_id = 4; - * * @return The bytes for merchantAccountId. */ @java.lang.Override - public com.google.protobuf.ByteString getMerchantAccountIdBytes() { + public com.google.protobuf.ByteString + getMerchantAccountIdBytes() { java.lang.Object ref = merchantAccountId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); merchantAccountId_ = b; return b; } else { @@ -3585,7 +3204,6 @@ public com.google.protobuf.ByteString getMerchantAccountIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3597,7 +3215,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -3623,10 +3242,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (java.lang.Double.doubleToRawLongBits(value_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, value_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, value_); } if (quantity_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, quantity_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, quantity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(merchantAccountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, merchantAccountId_); @@ -3639,19 +3260,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.TransactionData.Item)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.TransactionData.Item other = - (com.google.recaptchaenterprise.v1beta1.TransactionData.Item) obj; + com.google.recaptchaenterprise.v1beta1.TransactionData.Item other = (com.google.recaptchaenterprise.v1beta1.TransactionData.Item) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (java.lang.Double.doubleToLongBits(getValue()) - != java.lang.Double.doubleToLongBits(other.getValue())) return false; - if (getQuantity() != other.getQuantity()) return false; - if (!getMerchantAccountId().equals(other.getMerchantAccountId())) return false; + != java.lang.Double.doubleToLongBits( + other.getValue())) return false; + if (getQuantity() + != other.getQuantity()) return false; + if (!getMerchantAccountId() + .equals(other.getMerchantAccountId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3666,12 +3290,11 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getValue())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getValue())); hash = (37 * hash) + QUANTITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getQuantity()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getQuantity()); hash = (37 * hash) + MERCHANT_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getMerchantAccountId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -3680,94 +3303,89 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1beta1.TransactionData.Item prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.TransactionData.Item prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3777,41 +3395,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Line items being purchased in this transaction.
      * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item) com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TransactionData.Item.class, - com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder.class); + com.google.recaptchaenterprise.v1beta1.TransactionData.Item.class, com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.TransactionData.Item.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -3824,14 +3440,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_Item_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TransactionData.Item - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.TransactionData.Item getDefaultInstanceForType() { return com.google.recaptchaenterprise.v1beta1.TransactionData.Item.getDefaultInstance(); } @@ -3846,17 +3461,13 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.Item build() { @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.Item buildPartial() { - com.google.recaptchaenterprise.v1beta1.TransactionData.Item result = - new com.google.recaptchaenterprise.v1beta1.TransactionData.Item(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1beta1.TransactionData.Item result = new com.google.recaptchaenterprise.v1beta1.TransactionData.Item(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.recaptchaenterprise.v1beta1.TransactionData.Item result) { + private void buildPartial0(com.google.recaptchaenterprise.v1beta1.TransactionData.Item result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -3876,41 +3487,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1beta1.TransactionData.Item) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.TransactionData.Item) other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.TransactionData.Item)other); } else { super.mergeFrom(other); return this; @@ -3918,9 +3526,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.TransactionData.Item other) { - if (other - == com.google.recaptchaenterprise.v1beta1.TransactionData.Item.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1beta1.TransactionData.Item.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -3963,37 +3569,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 17: - { - value_ = input.readDouble(); - bitField0_ |= 0x00000002; - break; - } // case 17 - case 24: - { - quantity_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - merchantAccountId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 17: { + value_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 24: { + quantity_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + merchantAccountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4003,25 +3604,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
        * The full name of the item.
        * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -4030,21 +3628,20 @@ public java.lang.String getName() { } } /** - * - * *
        * The full name of the item.
        * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -4052,35 +3649,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * The full name of the item.
        * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The full name of the item.
        * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -4090,21 +3680,17 @@ public Builder clearName() { return this; } /** - * - * *
        * The full name of the item.
        * 
* * 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) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -4112,17 +3698,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private double value_; + private double value_ ; /** - * - * *
        * The value per item that the user is paying, in the transaction currency,
        * after discounts.
        * 
* * double value = 2; - * * @return The value. */ @java.lang.Override @@ -4130,15 +3713,12 @@ public double getValue() { return value_; } /** - * - * *
        * The value per item that the user is paying, in the transaction currency,
        * after discounts.
        * 
* * double value = 2; - * * @param value The value to set. * @return This builder for chaining. */ @@ -4150,15 +3730,12 @@ public Builder setValue(double value) { return this; } /** - * - * *
        * The value per item that the user is paying, in the transaction currency,
        * after discounts.
        * 
* * double value = 2; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -4168,16 +3745,13 @@ public Builder clearValue() { return this; } - private long quantity_; + private long quantity_ ; /** - * - * *
        * The quantity of this item that is being purchased.
        * 
* * int64 quantity = 3; - * * @return The quantity. */ @java.lang.Override @@ -4185,14 +3759,11 @@ public long getQuantity() { return quantity_; } /** - * - * *
        * The quantity of this item that is being purchased.
        * 
* * int64 quantity = 3; - * * @param value The quantity to set. * @return This builder for chaining. */ @@ -4204,14 +3775,11 @@ public Builder setQuantity(long value) { return this; } /** - * - * *
        * The quantity of this item that is being purchased.
        * 
* * int64 quantity = 3; - * * @return This builder for chaining. */ public Builder clearQuantity() { @@ -4223,21 +3791,19 @@ public Builder clearQuantity() { private java.lang.Object merchantAccountId_ = ""; /** - * - * *
        * When a merchant is specified, its corresponding account_id. Necessary to
        * populate marketplace-style transactions.
        * 
* * string merchant_account_id = 4; - * * @return The merchantAccountId. */ public java.lang.String getMerchantAccountId() { java.lang.Object ref = merchantAccountId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); merchantAccountId_ = s; return s; @@ -4246,22 +3812,21 @@ public java.lang.String getMerchantAccountId() { } } /** - * - * *
        * When a merchant is specified, its corresponding account_id. Necessary to
        * populate marketplace-style transactions.
        * 
* * string merchant_account_id = 4; - * * @return The bytes for merchantAccountId. */ - public com.google.protobuf.ByteString getMerchantAccountIdBytes() { + public com.google.protobuf.ByteString + getMerchantAccountIdBytes() { java.lang.Object ref = merchantAccountId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); merchantAccountId_ = b; return b; } else { @@ -4269,37 +3834,30 @@ public com.google.protobuf.ByteString getMerchantAccountIdBytes() { } } /** - * - * *
        * When a merchant is specified, its corresponding account_id. Necessary to
        * populate marketplace-style transactions.
        * 
* * string merchant_account_id = 4; - * * @param value The merchantAccountId to set. * @return This builder for chaining. */ - public Builder setMerchantAccountId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMerchantAccountId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } merchantAccountId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
        * When a merchant is specified, its corresponding account_id. Necessary to
        * populate marketplace-style transactions.
        * 
* * string merchant_account_id = 4; - * * @return This builder for chaining. */ public Builder clearMerchantAccountId() { @@ -4309,29 +3867,24 @@ public Builder clearMerchantAccountId() { return this; } /** - * - * *
        * When a merchant is specified, its corresponding account_id. Necessary to
        * populate marketplace-style transactions.
        * 
* * string merchant_account_id = 4; - * * @param value The bytes for merchantAccountId to set. * @return This builder for chaining. */ - public Builder setMerchantAccountIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMerchantAccountIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); merchantAccountId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4344,13 +3897,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item) - private static final com.google.recaptchaenterprise.v1beta1.TransactionData.Item - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1beta1.TransactionData.Item DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.TransactionData.Item(); } @@ -4359,28 +3911,27 @@ public static com.google.recaptchaenterprise.v1beta1.TransactionData.Item getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Item parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Item parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4395,136 +3946,113 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1beta1.TransactionData.Item getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface GatewayInfoOrBuilder - extends + public interface GatewayInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Name of the gateway service (for example, stripe, square, paypal).
      * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Name of the gateway service (for example, stripe, square, paypal).
      * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * Gateway response code describing the state of the transaction.
      * 
* * string gateway_response_code = 2; - * * @return The gatewayResponseCode. */ java.lang.String getGatewayResponseCode(); /** - * - * *
      * Gateway response code describing the state of the transaction.
      * 
* * string gateway_response_code = 2; - * * @return The bytes for gatewayResponseCode. */ - com.google.protobuf.ByteString getGatewayResponseCodeBytes(); + com.google.protobuf.ByteString + getGatewayResponseCodeBytes(); /** - * - * *
      * AVS response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string avs_response_code = 3; - * * @return The avsResponseCode. */ java.lang.String getAvsResponseCode(); /** - * - * *
      * AVS response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string avs_response_code = 3; - * * @return The bytes for avsResponseCode. */ - com.google.protobuf.ByteString getAvsResponseCodeBytes(); + com.google.protobuf.ByteString + getAvsResponseCodeBytes(); /** - * - * *
      * CVV response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string cvv_response_code = 4; - * * @return The cvvResponseCode. */ java.lang.String getCvvResponseCode(); /** - * - * *
      * CVV response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string cvv_response_code = 4; - * * @return The bytes for cvvResponseCode. */ - com.google.protobuf.ByteString getCvvResponseCodeBytes(); + com.google.protobuf.ByteString + getCvvResponseCodeBytes(); } /** - * - * *
    * Details about the transaction from the gateway.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo} */ - public static final class GatewayInfo extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GatewayInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo) GatewayInfoOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GatewayInfo.newBuilder() to construct. private GatewayInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GatewayInfo() { name_ = ""; gatewayResponseCode_ = ""; @@ -4534,38 +4062,33 @@ private GatewayInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GatewayInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.class, - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder.class); + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.class, com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
      * Name of the gateway service (for example, stripe, square, paypal).
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -4574,29 +4097,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Name of the gateway service (for example, stripe, square, paypal).
      * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -4605,18 +4128,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int GATEWAY_RESPONSE_CODE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object gatewayResponseCode_ = ""; /** - * - * *
      * Gateway response code describing the state of the transaction.
      * 
* * string gateway_response_code = 2; - * * @return The gatewayResponseCode. */ @java.lang.Override @@ -4625,29 +4144,29 @@ public java.lang.String getGatewayResponseCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gatewayResponseCode_ = s; return s; } } /** - * - * *
      * Gateway response code describing the state of the transaction.
      * 
* * string gateway_response_code = 2; - * * @return The bytes for gatewayResponseCode. */ @java.lang.Override - public com.google.protobuf.ByteString getGatewayResponseCodeBytes() { + public com.google.protobuf.ByteString + getGatewayResponseCodeBytes() { java.lang.Object ref = gatewayResponseCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gatewayResponseCode_ = b; return b; } else { @@ -4656,19 +4175,15 @@ public com.google.protobuf.ByteString getGatewayResponseCodeBytes() { } public static final int AVS_RESPONSE_CODE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object avsResponseCode_ = ""; /** - * - * *
      * AVS response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string avs_response_code = 3; - * * @return The avsResponseCode. */ @java.lang.Override @@ -4677,30 +4192,30 @@ public java.lang.String getAvsResponseCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); avsResponseCode_ = s; return s; } } /** - * - * *
      * AVS response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string avs_response_code = 3; - * * @return The bytes for avsResponseCode. */ @java.lang.Override - public com.google.protobuf.ByteString getAvsResponseCodeBytes() { + public com.google.protobuf.ByteString + getAvsResponseCodeBytes() { java.lang.Object ref = avsResponseCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); avsResponseCode_ = b; return b; } else { @@ -4709,19 +4224,15 @@ public com.google.protobuf.ByteString getAvsResponseCodeBytes() { } public static final int CVV_RESPONSE_CODE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object cvvResponseCode_ = ""; /** - * - * *
      * CVV response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string cvv_response_code = 4; - * * @return The cvvResponseCode. */ @java.lang.Override @@ -4730,30 +4241,30 @@ public java.lang.String getCvvResponseCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cvvResponseCode_ = s; return s; } } /** - * - * *
      * CVV response code from the gateway
      * (available only when reCAPTCHA Enterprise is called after authorization).
      * 
* * string cvv_response_code = 4; - * * @return The bytes for cvvResponseCode. */ @java.lang.Override - public com.google.protobuf.ByteString getCvvResponseCodeBytes() { + public com.google.protobuf.ByteString + getCvvResponseCodeBytes() { java.lang.Object ref = cvvResponseCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cvvResponseCode_ = b; return b; } else { @@ -4762,7 +4273,6 @@ public com.google.protobuf.ByteString getCvvResponseCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4774,7 +4284,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -4816,18 +4327,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo other = - (com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo) obj; + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo other = (com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo) obj; - if (!getName().equals(other.getName())) return false; - if (!getGatewayResponseCode().equals(other.getGatewayResponseCode())) return false; - if (!getAvsResponseCode().equals(other.getAvsResponseCode())) return false; - if (!getCvvResponseCode().equals(other.getCvvResponseCode())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getGatewayResponseCode() + .equals(other.getGatewayResponseCode())) return false; + if (!getAvsResponseCode() + .equals(other.getAvsResponseCode())) return false; + if (!getCvvResponseCode() + .equals(other.getCvvResponseCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4853,95 +4367,89 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4951,42 +4459,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Details about the transaction from the gateway.
      * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo) com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.class, - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder.class); + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.class, com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder.class); } - // Construct using - // com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.newBuilder() - private Builder() {} + // Construct using com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -4999,16 +4504,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_GatewayInfo_descriptor; } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo - getDefaultInstanceForType() { - return com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo - .getDefaultInstance(); + public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.getDefaultInstance(); } @java.lang.Override @@ -5022,17 +4525,13 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo build( @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo buildPartial() { - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo result = - new com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo result = new com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo result) { + private void buildPartial0(com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -5052,53 +4551,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo) { - return mergeFrom( - (com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo) other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo other) { - if (other - == com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo other) { + if (other == com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -5145,37 +4637,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - gatewayResponseCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - avsResponseCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - cvvResponseCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + gatewayResponseCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + avsResponseCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + cvvResponseCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5185,25 +4672,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
        * Name of the gateway service (for example, stripe, square, paypal).
        * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -5212,21 +4696,20 @@ public java.lang.String getName() { } } /** - * - * *
        * Name of the gateway service (for example, stripe, square, paypal).
        * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -5234,35 +4717,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Name of the gateway service (for example, stripe, square, paypal).
        * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Name of the gateway service (for example, stripe, square, paypal).
        * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -5272,21 +4748,17 @@ public Builder clearName() { return this; } /** - * - * *
        * Name of the gateway service (for example, stripe, square, paypal).
        * 
* * 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) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -5296,20 +4768,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object gatewayResponseCode_ = ""; /** - * - * *
        * Gateway response code describing the state of the transaction.
        * 
* * string gateway_response_code = 2; - * * @return The gatewayResponseCode. */ public java.lang.String getGatewayResponseCode() { java.lang.Object ref = gatewayResponseCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gatewayResponseCode_ = s; return s; @@ -5318,21 +4788,20 @@ public java.lang.String getGatewayResponseCode() { } } /** - * - * *
        * Gateway response code describing the state of the transaction.
        * 
* * string gateway_response_code = 2; - * * @return The bytes for gatewayResponseCode. */ - public com.google.protobuf.ByteString getGatewayResponseCodeBytes() { + public com.google.protobuf.ByteString + getGatewayResponseCodeBytes() { java.lang.Object ref = gatewayResponseCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gatewayResponseCode_ = b; return b; } else { @@ -5340,35 +4809,28 @@ public com.google.protobuf.ByteString getGatewayResponseCodeBytes() { } } /** - * - * *
        * Gateway response code describing the state of the transaction.
        * 
* * string gateway_response_code = 2; - * * @param value The gatewayResponseCode to set. * @return This builder for chaining. */ - public Builder setGatewayResponseCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGatewayResponseCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } gatewayResponseCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Gateway response code describing the state of the transaction.
        * 
* * string gateway_response_code = 2; - * * @return This builder for chaining. */ public Builder clearGatewayResponseCode() { @@ -5378,21 +4840,17 @@ public Builder clearGatewayResponseCode() { return this; } /** - * - * *
        * Gateway response code describing the state of the transaction.
        * 
* * string gateway_response_code = 2; - * * @param value The bytes for gatewayResponseCode to set. * @return This builder for chaining. */ - public Builder setGatewayResponseCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGatewayResponseCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); gatewayResponseCode_ = value; bitField0_ |= 0x00000002; @@ -5402,21 +4860,19 @@ public Builder setGatewayResponseCodeBytes(com.google.protobuf.ByteString value) private java.lang.Object avsResponseCode_ = ""; /** - * - * *
        * AVS response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string avs_response_code = 3; - * * @return The avsResponseCode. */ public java.lang.String getAvsResponseCode() { java.lang.Object ref = avsResponseCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); avsResponseCode_ = s; return s; @@ -5425,22 +4881,21 @@ public java.lang.String getAvsResponseCode() { } } /** - * - * *
        * AVS response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string avs_response_code = 3; - * * @return The bytes for avsResponseCode. */ - public com.google.protobuf.ByteString getAvsResponseCodeBytes() { + public com.google.protobuf.ByteString + getAvsResponseCodeBytes() { java.lang.Object ref = avsResponseCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); avsResponseCode_ = b; return b; } else { @@ -5448,37 +4903,30 @@ public com.google.protobuf.ByteString getAvsResponseCodeBytes() { } } /** - * - * *
        * AVS response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string avs_response_code = 3; - * * @param value The avsResponseCode to set. * @return This builder for chaining. */ - public Builder setAvsResponseCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAvsResponseCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } avsResponseCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * AVS response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string avs_response_code = 3; - * * @return This builder for chaining. */ public Builder clearAvsResponseCode() { @@ -5488,22 +4936,18 @@ public Builder clearAvsResponseCode() { return this; } /** - * - * *
        * AVS response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string avs_response_code = 3; - * * @param value The bytes for avsResponseCode to set. * @return This builder for chaining. - */ - public Builder setAvsResponseCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + */ + public Builder setAvsResponseCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); avsResponseCode_ = value; bitField0_ |= 0x00000004; @@ -5513,21 +4957,19 @@ public Builder setAvsResponseCodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object cvvResponseCode_ = ""; /** - * - * *
        * CVV response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string cvv_response_code = 4; - * * @return The cvvResponseCode. */ public java.lang.String getCvvResponseCode() { java.lang.Object ref = cvvResponseCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cvvResponseCode_ = s; return s; @@ -5536,22 +4978,21 @@ public java.lang.String getCvvResponseCode() { } } /** - * - * *
        * CVV response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string cvv_response_code = 4; - * * @return The bytes for cvvResponseCode. */ - public com.google.protobuf.ByteString getCvvResponseCodeBytes() { + public com.google.protobuf.ByteString + getCvvResponseCodeBytes() { java.lang.Object ref = cvvResponseCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cvvResponseCode_ = b; return b; } else { @@ -5559,37 +5000,30 @@ public com.google.protobuf.ByteString getCvvResponseCodeBytes() { } } /** - * - * *
        * CVV response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string cvv_response_code = 4; - * * @param value The cvvResponseCode to set. * @return This builder for chaining. */ - public Builder setCvvResponseCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCvvResponseCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } cvvResponseCode_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
        * CVV response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string cvv_response_code = 4; - * * @return This builder for chaining. */ public Builder clearCvvResponseCode() { @@ -5599,29 +5033,24 @@ public Builder clearCvvResponseCode() { return this; } /** - * - * *
        * CVV response code from the gateway
        * (available only when reCAPTCHA Enterprise is called after authorization).
        * 
* * string cvv_response_code = 4; - * * @param value The bytes for cvvResponseCode to set. * @return This builder for chaining. */ - public Builder setCvvResponseCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCvvResponseCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cvvResponseCode_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5634,44 +5063,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo) - private static final com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo - DEFAULT_INSTANCE; - + private static final com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo(); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo - getDefaultInstance() { + public static com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GatewayInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GatewayInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5683,20 +5109,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo - getDefaultInstanceForType() { + public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int bitField0_; public static final int TRANSACTION_ID_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private volatile java.lang.Object transactionId_ = ""; /** - * - * *
    * Unique identifier for the transaction. This custom identifier can be used
    * to reference this transaction in the future, for example, labeling a refund
@@ -5705,7 +5128,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * optional string transaction_id = 11; - * * @return Whether the transactionId field is set. */ @java.lang.Override @@ -5713,8 +5135,6 @@ public boolean hasTransactionId() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Unique identifier for the transaction. This custom identifier can be used
    * to reference this transaction in the future, for example, labeling a refund
@@ -5723,7 +5143,6 @@ public boolean hasTransactionId() {
    * 
* * optional string transaction_id = 11; - * * @return The transactionId. */ @java.lang.Override @@ -5732,15 +5151,14 @@ public java.lang.String getTransactionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transactionId_ = s; return s; } } /** - * - * *
    * Unique identifier for the transaction. This custom identifier can be used
    * to reference this transaction in the future, for example, labeling a refund
@@ -5749,15 +5167,16 @@ public java.lang.String getTransactionId() {
    * 
* * optional string transaction_id = 11; - * * @return The bytes for transactionId. */ @java.lang.Override - public com.google.protobuf.ByteString getTransactionIdBytes() { + public com.google.protobuf.ByteString + getTransactionIdBytes() { java.lang.Object ref = transactionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); transactionId_ = b; return b; } else { @@ -5766,12 +5185,9 @@ public com.google.protobuf.ByteString getTransactionIdBytes() { } public static final int PAYMENT_METHOD_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object paymentMethod_ = ""; /** - * - * *
    * The payment method for the transaction. The allowed values are:
    *
@@ -5785,7 +5201,6 @@ public com.google.protobuf.ByteString getTransactionIdBytes() {
    * 
* * string payment_method = 1; - * * @return The paymentMethod. */ @java.lang.Override @@ -5794,15 +5209,14 @@ public java.lang.String getPaymentMethod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); paymentMethod_ = s; return s; } } /** - * - * *
    * The payment method for the transaction. The allowed values are:
    *
@@ -5816,15 +5230,16 @@ public java.lang.String getPaymentMethod() {
    * 
* * string payment_method = 1; - * * @return The bytes for paymentMethod. */ @java.lang.Override - public com.google.protobuf.ByteString getPaymentMethodBytes() { + public com.google.protobuf.ByteString + getPaymentMethodBytes() { java.lang.Object ref = paymentMethod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); paymentMethod_ = b; return b; } else { @@ -5833,19 +5248,15 @@ public com.google.protobuf.ByteString getPaymentMethodBytes() { } public static final int CARD_BIN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object cardBin_ = ""; /** - * - * *
    * The Bank Identification Number - generally the first 6 or 8 digits of the
    * card.
    * 
* * string card_bin = 2; - * * @return The cardBin. */ @java.lang.Override @@ -5854,30 +5265,30 @@ public java.lang.String getCardBin() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cardBin_ = s; return s; } } /** - * - * *
    * The Bank Identification Number - generally the first 6 or 8 digits of the
    * card.
    * 
* * string card_bin = 2; - * * @return The bytes for cardBin. */ @java.lang.Override - public com.google.protobuf.ByteString getCardBinBytes() { + public com.google.protobuf.ByteString + getCardBinBytes() { java.lang.Object ref = cardBin_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cardBin_ = b; return b; } else { @@ -5886,18 +5297,14 @@ public com.google.protobuf.ByteString getCardBinBytes() { } public static final int CARD_LAST_FOUR_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object cardLastFour_ = ""; /** - * - * *
    * The last four digits of the card.
    * 
* * string card_last_four = 3; - * * @return The cardLastFour. */ @java.lang.Override @@ -5906,29 +5313,29 @@ public java.lang.String getCardLastFour() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cardLastFour_ = s; return s; } } /** - * - * *
    * The last four digits of the card.
    * 
* * string card_last_four = 3; - * * @return The bytes for cardLastFour. */ @java.lang.Override - public com.google.protobuf.ByteString getCardLastFourBytes() { + public com.google.protobuf.ByteString + getCardLastFourBytes() { java.lang.Object ref = cardLastFour_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cardLastFour_ = b; return b; } else { @@ -5937,18 +5344,14 @@ public com.google.protobuf.ByteString getCardLastFourBytes() { } public static final int CURRENCY_CODE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object currencyCode_ = ""; /** - * - * *
    * The currency code in ISO-4217 format.
    * 
* * string currency_code = 4; - * * @return The currencyCode. */ @java.lang.Override @@ -5957,29 +5360,29 @@ public java.lang.String getCurrencyCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; } } /** - * - * *
    * The currency code in ISO-4217 format.
    * 
* * string currency_code = 4; - * * @return The bytes for currencyCode. */ @java.lang.Override - public com.google.protobuf.ByteString getCurrencyCodeBytes() { + public com.google.protobuf.ByteString + getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -5990,14 +5393,11 @@ public com.google.protobuf.ByteString getCurrencyCodeBytes() { public static final int VALUE_FIELD_NUMBER = 5; private double value_ = 0D; /** - * - * *
    * The decimal value of the transaction in the specified currency.
    * 
* * double value = 5; - * * @return The value. */ @java.lang.Override @@ -6008,14 +5408,11 @@ public double getValue() { public static final int SHIPPING_VALUE_FIELD_NUMBER = 12; private double shippingValue_ = 0D; /** - * - * *
    * The value of shipping in the specified currency. 0 for free or no shipping.
    * 
* * double shipping_value = 12; - * * @return The shippingValue. */ @java.lang.Override @@ -6026,15 +5423,11 @@ public double getShippingValue() { public static final int SHIPPING_ADDRESS_FIELD_NUMBER = 6; private com.google.recaptchaenterprise.v1beta1.TransactionData.Address shippingAddress_; /** - * - * *
    * Destination address if this transaction involves shipping a physical item.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; * @return Whether the shippingAddress field is set. */ @java.lang.Override @@ -6042,53 +5435,37 @@ public boolean hasShippingAddress() { return shippingAddress_ != null; } /** - * - * *
    * Destination address if this transaction involves shipping a physical item.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; * @return The shippingAddress. */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.Address getShippingAddress() { - return shippingAddress_ == null - ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() - : shippingAddress_; + return shippingAddress_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() : shippingAddress_; } /** - * - * *
    * Destination address if this transaction involves shipping a physical item.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder - getShippingAddressOrBuilder() { - return shippingAddress_ == null - ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() - : shippingAddress_; + public com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder getShippingAddressOrBuilder() { + return shippingAddress_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() : shippingAddress_; } public static final int BILLING_ADDRESS_FIELD_NUMBER = 7; private com.google.recaptchaenterprise.v1beta1.TransactionData.Address billingAddress_; /** - * - * *
    * Address associated with the payment method when applicable.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; * @return Whether the billingAddress field is set. */ @java.lang.Override @@ -6096,52 +5473,37 @@ public boolean hasBillingAddress() { return billingAddress_ != null; } /** - * - * *
    * Address associated with the payment method when applicable.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; * @return The billingAddress. */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.Address getBillingAddress() { - return billingAddress_ == null - ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() - : billingAddress_; + return billingAddress_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() : billingAddress_; } /** - * - * *
    * Address associated with the payment method when applicable.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder - getBillingAddressOrBuilder() { - return billingAddress_ == null - ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() - : billingAddress_; + public com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder getBillingAddressOrBuilder() { + return billingAddress_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() : billingAddress_; } public static final int USER_FIELD_NUMBER = 8; private com.google.recaptchaenterprise.v1beta1.TransactionData.User user_; /** - * - * *
    * Information about the user paying/initiating the transaction.
    * 
* * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User user = 8; - * * @return Whether the user field is set. */ @java.lang.Override @@ -6149,25 +5511,18 @@ public boolean hasUser() { return user_ != null; } /** - * - * *
    * Information about the user paying/initiating the transaction.
    * 
* * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User user = 8; - * * @return The user. */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.User getUser() { - return user_ == null - ? com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance() - : user_; + return user_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance() : user_; } /** - * - * *
    * Information about the user paying/initiating the transaction.
    * 
@@ -6176,83 +5531,63 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.User getUser() { */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder getUserOrBuilder() { - return user_ == null - ? com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance() - : user_; + return user_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance() : user_; } public static final int MERCHANTS_FIELD_NUMBER = 13; - @SuppressWarnings("serial") private java.util.List merchants_; /** - * - * *
    * Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ @java.lang.Override - public java.util.List - getMerchantsList() { + public java.util.List getMerchantsList() { return merchants_; } /** - * - * *
    * Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ @java.lang.Override - public java.util.List< - ? extends com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder> + public java.util.List getMerchantsOrBuilderList() { return merchants_; } /** - * - * *
    * Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ @java.lang.Override public int getMerchantsCount() { return merchants_.size(); } /** - * - * *
    * Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.User getMerchants(int index) { return merchants_.get(index); } /** - * - * *
    * Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder getMerchantsOrBuilder( @@ -6261,77 +5596,59 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder getM } public static final int ITEMS_FIELD_NUMBER = 14; - @SuppressWarnings("serial") private java.util.List items_; /** - * - * *
    * Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ @java.lang.Override - public java.util.List - getItemsList() { + public java.util.List getItemsList() { return items_; } /** - * - * *
    * Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ @java.lang.Override - public java.util.List< - ? extends com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder> + public java.util.List getItemsOrBuilderList() { return items_; } /** - * - * *
    * Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ @java.lang.Override public int getItemsCount() { return items_.size(); } /** - * - * *
    * Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.Item getItems(int index) { return items_.get(index); } /** - * - * *
    * Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder getItemsOrBuilder( @@ -6342,15 +5659,11 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder getI public static final int GATEWAY_INFO_FIELD_NUMBER = 10; private com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gatewayInfo_; /** - * - * *
    * Information about the payment gateway's response to the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; * @return Whether the gatewayInfo field is set. */ @java.lang.Override @@ -6358,43 +5671,30 @@ public boolean hasGatewayInfo() { return gatewayInfo_ != null; } /** - * - * *
    * Information about the payment gateway's response to the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; * @return The gatewayInfo. */ @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo getGatewayInfo() { - return gatewayInfo_ == null - ? com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.getDefaultInstance() - : gatewayInfo_; + return gatewayInfo_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.getDefaultInstance() : gatewayInfo_; } /** - * - * *
    * Information about the payment gateway's response to the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder - getGatewayInfoOrBuilder() { - return gatewayInfo_ == null - ? com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.getDefaultInstance() - : gatewayInfo_; + public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder getGatewayInfoOrBuilder() { + return gatewayInfo_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.getDefaultInstance() : gatewayInfo_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6406,7 +5706,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(paymentMethod_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, paymentMethod_); } @@ -6468,31 +5769,39 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, currencyCode_); } if (java.lang.Double.doubleToRawLongBits(value_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, value_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(5, value_); } if (shippingAddress_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getShippingAddress()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getShippingAddress()); } if (billingAddress_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getBillingAddress()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getBillingAddress()); } if (user_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUser()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getUser()); } if (gatewayInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getGatewayInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getGatewayInfo()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, transactionId_); } if (java.lang.Double.doubleToRawLongBits(shippingValue_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(12, shippingValue_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(12, shippingValue_); } for (int i = 0; i < merchants_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, merchants_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, merchants_.get(i)); } for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, items_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, items_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6502,43 +5811,55 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.TransactionData)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.TransactionData other = - (com.google.recaptchaenterprise.v1beta1.TransactionData) obj; + com.google.recaptchaenterprise.v1beta1.TransactionData other = (com.google.recaptchaenterprise.v1beta1.TransactionData) obj; if (hasTransactionId() != other.hasTransactionId()) return false; if (hasTransactionId()) { - if (!getTransactionId().equals(other.getTransactionId())) return false; - } - if (!getPaymentMethod().equals(other.getPaymentMethod())) return false; - if (!getCardBin().equals(other.getCardBin())) return false; - if (!getCardLastFour().equals(other.getCardLastFour())) return false; - if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; + if (!getTransactionId() + .equals(other.getTransactionId())) return false; + } + if (!getPaymentMethod() + .equals(other.getPaymentMethod())) return false; + if (!getCardBin() + .equals(other.getCardBin())) return false; + if (!getCardLastFour() + .equals(other.getCardLastFour())) return false; + if (!getCurrencyCode() + .equals(other.getCurrencyCode())) return false; if (java.lang.Double.doubleToLongBits(getValue()) - != java.lang.Double.doubleToLongBits(other.getValue())) return false; + != java.lang.Double.doubleToLongBits( + other.getValue())) return false; if (java.lang.Double.doubleToLongBits(getShippingValue()) - != java.lang.Double.doubleToLongBits(other.getShippingValue())) return false; + != java.lang.Double.doubleToLongBits( + other.getShippingValue())) return false; if (hasShippingAddress() != other.hasShippingAddress()) return false; if (hasShippingAddress()) { - if (!getShippingAddress().equals(other.getShippingAddress())) return false; + if (!getShippingAddress() + .equals(other.getShippingAddress())) return false; } if (hasBillingAddress() != other.hasBillingAddress()) return false; if (hasBillingAddress()) { - if (!getBillingAddress().equals(other.getBillingAddress())) return false; + if (!getBillingAddress() + .equals(other.getBillingAddress())) return false; } if (hasUser() != other.hasUser()) return false; if (hasUser()) { - if (!getUser().equals(other.getUser())) return false; + if (!getUser() + .equals(other.getUser())) return false; } - if (!getMerchantsList().equals(other.getMerchantsList())) return false; - if (!getItemsList().equals(other.getItemsList())) return false; + if (!getMerchantsList() + .equals(other.getMerchantsList())) return false; + if (!getItemsList() + .equals(other.getItemsList())) return false; if (hasGatewayInfo() != other.hasGatewayInfo()) return false; if (hasGatewayInfo()) { - if (!getGatewayInfo().equals(other.getGatewayInfo())) return false; + if (!getGatewayInfo() + .equals(other.getGatewayInfo())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -6564,14 +5885,11 @@ public int hashCode() { hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; hash = (53 * hash) + getCurrencyCode().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getValue())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getValue())); hash = (37 * hash) + SHIPPING_VALUE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getShippingValue())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getShippingValue())); if (hasShippingAddress()) { hash = (37 * hash) + SHIPPING_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getShippingAddress().hashCode(); @@ -6602,137 +5920,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.TransactionData parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.TransactionData parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.TransactionData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.TransactionData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.TransactionData parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.TransactionData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1beta1.TransactionData prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.TransactionData prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Transaction data associated with a payment protected by reCAPTCHA Enterprise.
-   * All fields are optional.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionData} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.TransactionData) com.google.recaptchaenterprise.v1beta1.TransactionDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TransactionData.class, - com.google.recaptchaenterprise.v1beta1.TransactionData.Builder.class); + com.google.recaptchaenterprise.v1beta1.TransactionData.class, com.google.recaptchaenterprise.v1beta1.TransactionData.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.TransactionData.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -6782,9 +6094,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionData_descriptor; } @java.lang.Override @@ -6803,18 +6115,14 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData build() { @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionData buildPartial() { - com.google.recaptchaenterprise.v1beta1.TransactionData result = - new com.google.recaptchaenterprise.v1beta1.TransactionData(this); + com.google.recaptchaenterprise.v1beta1.TransactionData result = new com.google.recaptchaenterprise.v1beta1.TransactionData(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.recaptchaenterprise.v1beta1.TransactionData result) { + private void buildPartialRepeatedFields(com.google.recaptchaenterprise.v1beta1.TransactionData result) { if (merchantsBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0)) { merchants_ = java.util.Collections.unmodifiableList(merchants_); @@ -6861,19 +6169,24 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.TransactionDat result.shippingValue_ = shippingValue_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.shippingAddress_ = - shippingAddressBuilder_ == null ? shippingAddress_ : shippingAddressBuilder_.build(); + result.shippingAddress_ = shippingAddressBuilder_ == null + ? shippingAddress_ + : shippingAddressBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { - result.billingAddress_ = - billingAddressBuilder_ == null ? billingAddress_ : billingAddressBuilder_.build(); + result.billingAddress_ = billingAddressBuilder_ == null + ? billingAddress_ + : billingAddressBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { - result.user_ = userBuilder_ == null ? user_ : userBuilder_.build(); + result.user_ = userBuilder_ == null + ? user_ + : userBuilder_.build(); } if (((from_bitField0_ & 0x00001000) != 0)) { - result.gatewayInfo_ = - gatewayInfoBuilder_ == null ? gatewayInfo_ : gatewayInfoBuilder_.build(); + result.gatewayInfo_ = gatewayInfoBuilder_ == null + ? gatewayInfo_ + : gatewayInfoBuilder_.build(); } result.bitField0_ |= to_bitField0_; } @@ -6882,39 +6195,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.TransactionDat public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1beta1.TransactionData) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.TransactionData) other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.TransactionData)other); } else { super.mergeFrom(other); return this; @@ -6922,8 +6234,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.TransactionData other) { - if (other == com.google.recaptchaenterprise.v1beta1.TransactionData.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1beta1.TransactionData.getDefaultInstance()) return this; if (other.hasTransactionId()) { transactionId_ = other.transactionId_; bitField0_ |= 0x00000001; @@ -6982,10 +6293,9 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.TransactionData merchantsBuilder_ = null; merchants_ = other.merchants_; bitField0_ = (bitField0_ & ~0x00000400); - merchantsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMerchantsFieldBuilder() - : null; + merchantsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMerchantsFieldBuilder() : null; } else { merchantsBuilder_.addAllMessages(other.merchants_); } @@ -7009,10 +6319,9 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.TransactionData itemsBuilder_ = null; items_ = other.items_; bitField0_ = (bitField0_ & ~0x00000800); - itemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getItemsFieldBuilder() - : null; + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getItemsFieldBuilder() : null; } else { itemsBuilder_.addAllMessages(other.items_); } @@ -7047,107 +6356,101 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - paymentMethod_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: - { - cardBin_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - cardLastFour_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: - { - currencyCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 41: - { - value_ = input.readDouble(); - bitField0_ |= 0x00000020; - break; - } // case 41 - case 50: - { - input.readMessage(getShippingAddressFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 50 - case 58: - { - input.readMessage(getBillingAddressFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 58 - case 66: - { - input.readMessage(getUserFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 66 - case 82: - { - input.readMessage(getGatewayInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 82 - case 90: - { - transactionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 90 - case 97: - { - shippingValue_ = input.readDouble(); - bitField0_ |= 0x00000040; - break; - } // case 97 - case 106: - { - com.google.recaptchaenterprise.v1beta1.TransactionData.User m = - input.readMessage( - com.google.recaptchaenterprise.v1beta1.TransactionData.User.parser(), - extensionRegistry); - if (merchantsBuilder_ == null) { - ensureMerchantsIsMutable(); - merchants_.add(m); - } else { - merchantsBuilder_.addMessage(m); - } - break; - } // case 106 - case 114: - { - com.google.recaptchaenterprise.v1beta1.TransactionData.Item m = - input.readMessage( - com.google.recaptchaenterprise.v1beta1.TransactionData.Item.parser(), - extensionRegistry); - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(m); - } else { - itemsBuilder_.addMessage(m); - } - break; - } // case 114 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + paymentMethod_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: { + cardBin_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: { + cardLastFour_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: { + currencyCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 41: { + value_ = input.readDouble(); + bitField0_ |= 0x00000020; + break; + } // case 41 + case 50: { + input.readMessage( + getShippingAddressFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 50 + case 58: { + input.readMessage( + getBillingAddressFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 58 + case 66: { + input.readMessage( + getUserFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 66 + case 82: { + input.readMessage( + getGatewayInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 82 + case 90: { + transactionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 90 + case 97: { + shippingValue_ = input.readDouble(); + bitField0_ |= 0x00000040; + break; + } // case 97 + case 106: { + com.google.recaptchaenterprise.v1beta1.TransactionData.User m = + input.readMessage( + com.google.recaptchaenterprise.v1beta1.TransactionData.User.parser(), + extensionRegistry); + if (merchantsBuilder_ == null) { + ensureMerchantsIsMutable(); + merchants_.add(m); + } else { + merchantsBuilder_.addMessage(m); + } + break; + } // case 106 + case 114: { + com.google.recaptchaenterprise.v1beta1.TransactionData.Item m = + input.readMessage( + com.google.recaptchaenterprise.v1beta1.TransactionData.Item.parser(), + extensionRegistry); + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(m); + } else { + itemsBuilder_.addMessage(m); + } + break; + } // case 114 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -7157,13 +6460,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object transactionId_ = ""; /** - * - * *
      * Unique identifier for the transaction. This custom identifier can be used
      * to reference this transaction in the future, for example, labeling a refund
@@ -7172,15 +6472,12 @@ public Builder mergeFrom(
      * 
* * optional string transaction_id = 11; - * * @return Whether the transactionId field is set. */ public boolean hasTransactionId() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Unique identifier for the transaction. This custom identifier can be used
      * to reference this transaction in the future, for example, labeling a refund
@@ -7189,13 +6486,13 @@ public boolean hasTransactionId() {
      * 
* * optional string transaction_id = 11; - * * @return The transactionId. */ public java.lang.String getTransactionId() { java.lang.Object ref = transactionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transactionId_ = s; return s; @@ -7204,8 +6501,6 @@ public java.lang.String getTransactionId() { } } /** - * - * *
      * Unique identifier for the transaction. This custom identifier can be used
      * to reference this transaction in the future, for example, labeling a refund
@@ -7214,14 +6509,15 @@ public java.lang.String getTransactionId() {
      * 
* * optional string transaction_id = 11; - * * @return The bytes for transactionId. */ - public com.google.protobuf.ByteString getTransactionIdBytes() { + public com.google.protobuf.ByteString + getTransactionIdBytes() { java.lang.Object ref = transactionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); transactionId_ = b; return b; } else { @@ -7229,8 +6525,6 @@ public com.google.protobuf.ByteString getTransactionIdBytes() { } } /** - * - * *
      * Unique identifier for the transaction. This custom identifier can be used
      * to reference this transaction in the future, for example, labeling a refund
@@ -7239,22 +6533,18 @@ public com.google.protobuf.ByteString getTransactionIdBytes() {
      * 
* * optional string transaction_id = 11; - * * @param value The transactionId to set. * @return This builder for chaining. */ - public Builder setTransactionId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTransactionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } transactionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Unique identifier for the transaction. This custom identifier can be used
      * to reference this transaction in the future, for example, labeling a refund
@@ -7263,7 +6553,6 @@ public Builder setTransactionId(java.lang.String value) {
      * 
* * optional string transaction_id = 11; - * * @return This builder for chaining. */ public Builder clearTransactionId() { @@ -7273,8 +6562,6 @@ public Builder clearTransactionId() { return this; } /** - * - * *
      * Unique identifier for the transaction. This custom identifier can be used
      * to reference this transaction in the future, for example, labeling a refund
@@ -7283,14 +6570,12 @@ public Builder clearTransactionId() {
      * 
* * optional string transaction_id = 11; - * * @param value The bytes for transactionId to set. * @return This builder for chaining. */ - public Builder setTransactionIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTransactionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); transactionId_ = value; bitField0_ |= 0x00000001; @@ -7300,8 +6585,6 @@ public Builder setTransactionIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object paymentMethod_ = ""; /** - * - * *
      * The payment method for the transaction. The allowed values are:
      *
@@ -7315,13 +6598,13 @@ public Builder setTransactionIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string payment_method = 1; - * * @return The paymentMethod. */ public java.lang.String getPaymentMethod() { java.lang.Object ref = paymentMethod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); paymentMethod_ = s; return s; @@ -7330,8 +6613,6 @@ public java.lang.String getPaymentMethod() { } } /** - * - * *
      * The payment method for the transaction. The allowed values are:
      *
@@ -7345,14 +6626,15 @@ public java.lang.String getPaymentMethod() {
      * 
* * string payment_method = 1; - * * @return The bytes for paymentMethod. */ - public com.google.protobuf.ByteString getPaymentMethodBytes() { + public com.google.protobuf.ByteString + getPaymentMethodBytes() { java.lang.Object ref = paymentMethod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); paymentMethod_ = b; return b; } else { @@ -7360,8 +6642,6 @@ public com.google.protobuf.ByteString getPaymentMethodBytes() { } } /** - * - * *
      * The payment method for the transaction. The allowed values are:
      *
@@ -7375,22 +6655,18 @@ public com.google.protobuf.ByteString getPaymentMethodBytes() {
      * 
* * string payment_method = 1; - * * @param value The paymentMethod to set. * @return This builder for chaining. */ - public Builder setPaymentMethod(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPaymentMethod( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } paymentMethod_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The payment method for the transaction. The allowed values are:
      *
@@ -7404,7 +6680,6 @@ public Builder setPaymentMethod(java.lang.String value) {
      * 
* * string payment_method = 1; - * * @return This builder for chaining. */ public Builder clearPaymentMethod() { @@ -7414,8 +6689,6 @@ public Builder clearPaymentMethod() { return this; } /** - * - * *
      * The payment method for the transaction. The allowed values are:
      *
@@ -7429,14 +6702,12 @@ public Builder clearPaymentMethod() {
      * 
* * string payment_method = 1; - * * @param value The bytes for paymentMethod to set. * @return This builder for chaining. */ - public Builder setPaymentMethodBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPaymentMethodBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); paymentMethod_ = value; bitField0_ |= 0x00000002; @@ -7446,21 +6717,19 @@ public Builder setPaymentMethodBytes(com.google.protobuf.ByteString value) { private java.lang.Object cardBin_ = ""; /** - * - * *
      * The Bank Identification Number - generally the first 6 or 8 digits of the
      * card.
      * 
* * string card_bin = 2; - * * @return The cardBin. */ public java.lang.String getCardBin() { java.lang.Object ref = cardBin_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cardBin_ = s; return s; @@ -7469,22 +6738,21 @@ public java.lang.String getCardBin() { } } /** - * - * *
      * The Bank Identification Number - generally the first 6 or 8 digits of the
      * card.
      * 
* * string card_bin = 2; - * * @return The bytes for cardBin. */ - public com.google.protobuf.ByteString getCardBinBytes() { + public com.google.protobuf.ByteString + getCardBinBytes() { java.lang.Object ref = cardBin_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cardBin_ = b; return b; } else { @@ -7492,37 +6760,30 @@ public com.google.protobuf.ByteString getCardBinBytes() { } } /** - * - * *
      * The Bank Identification Number - generally the first 6 or 8 digits of the
      * card.
      * 
* * string card_bin = 2; - * * @param value The cardBin to set. * @return This builder for chaining. */ - public Builder setCardBin(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCardBin( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } cardBin_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The Bank Identification Number - generally the first 6 or 8 digits of the
      * card.
      * 
* * string card_bin = 2; - * * @return This builder for chaining. */ public Builder clearCardBin() { @@ -7532,22 +6793,18 @@ public Builder clearCardBin() { return this; } /** - * - * *
      * The Bank Identification Number - generally the first 6 or 8 digits of the
      * card.
      * 
* * string card_bin = 2; - * * @param value The bytes for cardBin to set. * @return This builder for chaining. */ - public Builder setCardBinBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCardBinBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cardBin_ = value; bitField0_ |= 0x00000004; @@ -7557,20 +6814,18 @@ public Builder setCardBinBytes(com.google.protobuf.ByteString value) { private java.lang.Object cardLastFour_ = ""; /** - * - * *
      * The last four digits of the card.
      * 
* * string card_last_four = 3; - * * @return The cardLastFour. */ public java.lang.String getCardLastFour() { java.lang.Object ref = cardLastFour_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cardLastFour_ = s; return s; @@ -7579,21 +6834,20 @@ public java.lang.String getCardLastFour() { } } /** - * - * *
      * The last four digits of the card.
      * 
* * string card_last_four = 3; - * * @return The bytes for cardLastFour. */ - public com.google.protobuf.ByteString getCardLastFourBytes() { + public com.google.protobuf.ByteString + getCardLastFourBytes() { java.lang.Object ref = cardLastFour_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cardLastFour_ = b; return b; } else { @@ -7601,35 +6855,28 @@ public com.google.protobuf.ByteString getCardLastFourBytes() { } } /** - * - * *
      * The last four digits of the card.
      * 
* * string card_last_four = 3; - * * @param value The cardLastFour to set. * @return This builder for chaining. */ - public Builder setCardLastFour(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCardLastFour( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } cardLastFour_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * The last four digits of the card.
      * 
* * string card_last_four = 3; - * * @return This builder for chaining. */ public Builder clearCardLastFour() { @@ -7639,21 +6886,17 @@ public Builder clearCardLastFour() { return this; } /** - * - * *
      * The last four digits of the card.
      * 
* * string card_last_four = 3; - * * @param value The bytes for cardLastFour to set. * @return This builder for chaining. */ - public Builder setCardLastFourBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCardLastFourBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cardLastFour_ = value; bitField0_ |= 0x00000008; @@ -7663,20 +6906,18 @@ public Builder setCardLastFourBytes(com.google.protobuf.ByteString value) { private java.lang.Object currencyCode_ = ""; /** - * - * *
      * The currency code in ISO-4217 format.
      * 
* * string currency_code = 4; - * * @return The currencyCode. */ public java.lang.String getCurrencyCode() { java.lang.Object ref = currencyCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; @@ -7685,21 +6926,20 @@ public java.lang.String getCurrencyCode() { } } /** - * - * *
      * The currency code in ISO-4217 format.
      * 
* * string currency_code = 4; - * * @return The bytes for currencyCode. */ - public com.google.protobuf.ByteString getCurrencyCodeBytes() { + public com.google.protobuf.ByteString + getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -7707,35 +6947,28 @@ public com.google.protobuf.ByteString getCurrencyCodeBytes() { } } /** - * - * *
      * The currency code in ISO-4217 format.
      * 
* * string currency_code = 4; - * * @param value The currencyCode to set. * @return This builder for chaining. */ - public Builder setCurrencyCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCurrencyCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } currencyCode_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * The currency code in ISO-4217 format.
      * 
* * string currency_code = 4; - * * @return This builder for chaining. */ public Builder clearCurrencyCode() { @@ -7745,21 +6978,17 @@ public Builder clearCurrencyCode() { return this; } /** - * - * *
      * The currency code in ISO-4217 format.
      * 
* * string currency_code = 4; - * * @param value The bytes for currencyCode to set. * @return This builder for chaining. */ - public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCurrencyCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); currencyCode_ = value; bitField0_ |= 0x00000010; @@ -7767,16 +6996,13 @@ public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { return this; } - private double value_; + private double value_ ; /** - * - * *
      * The decimal value of the transaction in the specified currency.
      * 
* * double value = 5; - * * @return The value. */ @java.lang.Override @@ -7784,14 +7010,11 @@ public double getValue() { return value_; } /** - * - * *
      * The decimal value of the transaction in the specified currency.
      * 
* * double value = 5; - * * @param value The value to set. * @return This builder for chaining. */ @@ -7803,14 +7026,11 @@ public Builder setValue(double value) { return this; } /** - * - * *
      * The decimal value of the transaction in the specified currency.
      * 
* * double value = 5; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -7820,16 +7040,13 @@ public Builder clearValue() { return this; } - private double shippingValue_; + private double shippingValue_ ; /** - * - * *
      * The value of shipping in the specified currency. 0 for free or no shipping.
      * 
* * double shipping_value = 12; - * * @return The shippingValue. */ @java.lang.Override @@ -7837,14 +7054,11 @@ public double getShippingValue() { return shippingValue_; } /** - * - * *
      * The value of shipping in the specified currency. 0 for free or no shipping.
      * 
* * double shipping_value = 12; - * * @param value The shippingValue to set. * @return This builder for chaining. */ @@ -7856,14 +7070,11 @@ public Builder setShippingValue(double value) { return this; } /** - * - * *
      * The value of shipping in the specified currency. 0 for free or no shipping.
      * 
* * double shipping_value = 12; - * * @return This builder for chaining. */ public Builder clearShippingValue() { @@ -7875,58 +7086,41 @@ public Builder clearShippingValue() { private com.google.recaptchaenterprise.v1beta1.TransactionData.Address shippingAddress_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.Address, - com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder, - com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder> - shippingAddressBuilder_; + com.google.recaptchaenterprise.v1beta1.TransactionData.Address, com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder> shippingAddressBuilder_; /** - * - * *
      * Destination address if this transaction involves shipping a physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; * @return Whether the shippingAddress field is set. */ public boolean hasShippingAddress() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Destination address if this transaction involves shipping a physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; * @return The shippingAddress. */ public com.google.recaptchaenterprise.v1beta1.TransactionData.Address getShippingAddress() { if (shippingAddressBuilder_ == null) { - return shippingAddress_ == null - ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() - : shippingAddress_; + return shippingAddress_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() : shippingAddress_; } else { return shippingAddressBuilder_.getMessage(); } } /** - * - * *
      * Destination address if this transaction involves shipping a physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; */ - public Builder setShippingAddress( - com.google.recaptchaenterprise.v1beta1.TransactionData.Address value) { + public Builder setShippingAddress(com.google.recaptchaenterprise.v1beta1.TransactionData.Address value) { if (shippingAddressBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7940,14 +7134,11 @@ public Builder setShippingAddress( return this; } /** - * - * *
      * Destination address if this transaction involves shipping a physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; */ public Builder setShippingAddress( com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder builderForValue) { @@ -7961,23 +7152,17 @@ public Builder setShippingAddress( return this; } /** - * - * *
      * Destination address if this transaction involves shipping a physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; */ - public Builder mergeShippingAddress( - com.google.recaptchaenterprise.v1beta1.TransactionData.Address value) { + public Builder mergeShippingAddress(com.google.recaptchaenterprise.v1beta1.TransactionData.Address value) { if (shippingAddressBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && shippingAddress_ != null - && shippingAddress_ - != com.google.recaptchaenterprise.v1beta1.TransactionData.Address - .getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + shippingAddress_ != null && + shippingAddress_ != com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance()) { getShippingAddressBuilder().mergeFrom(value); } else { shippingAddress_ = value; @@ -7990,14 +7175,11 @@ public Builder mergeShippingAddress( return this; } /** - * - * *
      * Destination address if this transaction involves shipping a physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; */ public Builder clearShippingAddress() { bitField0_ = (bitField0_ & ~0x00000080); @@ -8010,63 +7192,48 @@ public Builder clearShippingAddress() { return this; } /** - * - * *
      * Destination address if this transaction involves shipping a physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; */ - public com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder - getShippingAddressBuilder() { + public com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder getShippingAddressBuilder() { bitField0_ |= 0x00000080; onChanged(); return getShippingAddressFieldBuilder().getBuilder(); } /** - * - * *
      * Destination address if this transaction involves shipping a physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; */ - public com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder - getShippingAddressOrBuilder() { + public com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder getShippingAddressOrBuilder() { if (shippingAddressBuilder_ != null) { return shippingAddressBuilder_.getMessageOrBuilder(); } else { - return shippingAddress_ == null - ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() - : shippingAddress_; + return shippingAddress_ == null ? + com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() : shippingAddress_; } } /** - * - * *
      * Destination address if this transaction involves shipping a physical item.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.Address, - com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder, - com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder> + com.google.recaptchaenterprise.v1beta1.TransactionData.Address, com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder> getShippingAddressFieldBuilder() { if (shippingAddressBuilder_ == null) { - shippingAddressBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.Address, - com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder, - com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder>( - getShippingAddress(), getParentForChildren(), isClean()); + shippingAddressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.TransactionData.Address, com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder>( + getShippingAddress(), + getParentForChildren(), + isClean()); shippingAddress_ = null; } return shippingAddressBuilder_; @@ -8074,58 +7241,41 @@ public Builder clearShippingAddress() { private com.google.recaptchaenterprise.v1beta1.TransactionData.Address billingAddress_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.Address, - com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder, - com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder> - billingAddressBuilder_; + com.google.recaptchaenterprise.v1beta1.TransactionData.Address, com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder> billingAddressBuilder_; /** - * - * *
      * Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; * @return Whether the billingAddress field is set. */ public boolean hasBillingAddress() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; * @return The billingAddress. */ public com.google.recaptchaenterprise.v1beta1.TransactionData.Address getBillingAddress() { if (billingAddressBuilder_ == null) { - return billingAddress_ == null - ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() - : billingAddress_; + return billingAddress_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() : billingAddress_; } else { return billingAddressBuilder_.getMessage(); } } /** - * - * *
      * Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; */ - public Builder setBillingAddress( - com.google.recaptchaenterprise.v1beta1.TransactionData.Address value) { + public Builder setBillingAddress(com.google.recaptchaenterprise.v1beta1.TransactionData.Address value) { if (billingAddressBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8139,14 +7289,11 @@ public Builder setBillingAddress( return this; } /** - * - * *
      * Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; */ public Builder setBillingAddress( com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder builderForValue) { @@ -8160,23 +7307,17 @@ public Builder setBillingAddress( return this; } /** - * - * *
      * Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; */ - public Builder mergeBillingAddress( - com.google.recaptchaenterprise.v1beta1.TransactionData.Address value) { + public Builder mergeBillingAddress(com.google.recaptchaenterprise.v1beta1.TransactionData.Address value) { if (billingAddressBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && billingAddress_ != null - && billingAddress_ - != com.google.recaptchaenterprise.v1beta1.TransactionData.Address - .getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + billingAddress_ != null && + billingAddress_ != com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance()) { getBillingAddressBuilder().mergeFrom(value); } else { billingAddress_ = value; @@ -8189,14 +7330,11 @@ public Builder mergeBillingAddress( return this; } /** - * - * *
      * Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; */ public Builder clearBillingAddress() { bitField0_ = (bitField0_ & ~0x00000100); @@ -8209,63 +7347,48 @@ public Builder clearBillingAddress() { return this; } /** - * - * *
      * Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; */ - public com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder - getBillingAddressBuilder() { + public com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder getBillingAddressBuilder() { bitField0_ |= 0x00000100; onChanged(); return getBillingAddressFieldBuilder().getBuilder(); } /** - * - * *
      * Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; */ - public com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder - getBillingAddressOrBuilder() { + public com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder getBillingAddressOrBuilder() { if (billingAddressBuilder_ != null) { return billingAddressBuilder_.getMessageOrBuilder(); } else { - return billingAddress_ == null - ? com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() - : billingAddress_; + return billingAddress_ == null ? + com.google.recaptchaenterprise.v1beta1.TransactionData.Address.getDefaultInstance() : billingAddress_; } } /** - * - * *
      * Address associated with the payment method when applicable.
      * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.Address, - com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder, - com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder> + com.google.recaptchaenterprise.v1beta1.TransactionData.Address, com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder> getBillingAddressFieldBuilder() { if (billingAddressBuilder_ == null) { - billingAddressBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.Address, - com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder, - com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder>( - getBillingAddress(), getParentForChildren(), isClean()); + billingAddressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.TransactionData.Address, com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder>( + getBillingAddress(), + getParentForChildren(), + isClean()); billingAddress_ = null; } return billingAddressBuilder_; @@ -8273,47 +7396,34 @@ public Builder clearBillingAddress() { private com.google.recaptchaenterprise.v1beta1.TransactionData.User user_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.User, - com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder, - com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder> - userBuilder_; + com.google.recaptchaenterprise.v1beta1.TransactionData.User, com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder> userBuilder_; /** - * - * *
      * Information about the user paying/initiating the transaction.
      * 
* * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User user = 8; - * * @return Whether the user field is set. */ public boolean hasUser() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * Information about the user paying/initiating the transaction.
      * 
* * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User user = 8; - * * @return The user. */ public com.google.recaptchaenterprise.v1beta1.TransactionData.User getUser() { if (userBuilder_ == null) { - return user_ == null - ? com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance() - : user_; + return user_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance() : user_; } else { return userBuilder_.getMessage(); } } /** - * - * *
      * Information about the user paying/initiating the transaction.
      * 
@@ -8334,8 +7444,6 @@ public Builder setUser(com.google.recaptchaenterprise.v1beta1.TransactionData.Us return this; } /** - * - * *
      * Information about the user paying/initiating the transaction.
      * 
@@ -8354,8 +7462,6 @@ public Builder setUser( return this; } /** - * - * *
      * Information about the user paying/initiating the transaction.
      * 
@@ -8364,11 +7470,9 @@ public Builder setUser( */ public Builder mergeUser(com.google.recaptchaenterprise.v1beta1.TransactionData.User value) { if (userBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && user_ != null - && user_ - != com.google.recaptchaenterprise.v1beta1.TransactionData.User - .getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + user_ != null && + user_ != com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance()) { getUserBuilder().mergeFrom(value); } else { user_ = value; @@ -8381,8 +7485,6 @@ public Builder mergeUser(com.google.recaptchaenterprise.v1beta1.TransactionData. return this; } /** - * - * *
      * Information about the user paying/initiating the transaction.
      * 
@@ -8400,8 +7502,6 @@ public Builder clearUser() { return this; } /** - * - * *
      * Information about the user paying/initiating the transaction.
      * 
@@ -8414,8 +7514,6 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder getUs return getUserFieldBuilder().getBuilder(); } /** - * - * *
      * Information about the user paying/initiating the transaction.
      * 
@@ -8426,14 +7524,11 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder getU if (userBuilder_ != null) { return userBuilder_.getMessageOrBuilder(); } else { - return user_ == null - ? com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance() - : user_; + return user_ == null ? + com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance() : user_; } } /** - * - * *
      * Information about the user paying/initiating the transaction.
      * 
@@ -8441,52 +7536,39 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder getU * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User user = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.User, - com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder, - com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder> + com.google.recaptchaenterprise.v1beta1.TransactionData.User, com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder> getUserFieldBuilder() { if (userBuilder_ == null) { - userBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.User, - com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder, - com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder>( - getUser(), getParentForChildren(), isClean()); + userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.TransactionData.User, com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder>( + getUser(), + getParentForChildren(), + isClean()); user_ = null; } return userBuilder_; } private java.util.List merchants_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMerchantsIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { - merchants_ = - new java.util.ArrayList( - merchants_); + merchants_ = new java.util.ArrayList(merchants_); bitField0_ |= 0x00000400; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.User, - com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder, - com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder> - merchantsBuilder_; + com.google.recaptchaenterprise.v1beta1.TransactionData.User, com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder> merchantsBuilder_; /** - * - * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ - public java.util.List - getMerchantsList() { + public java.util.List getMerchantsList() { if (merchantsBuilder_ == null) { return java.util.Collections.unmodifiableList(merchants_); } else { @@ -8494,14 +7576,11 @@ private void ensureMerchantsIsMutable() { } } /** - * - * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ public int getMerchantsCount() { if (merchantsBuilder_ == null) { @@ -8511,14 +7590,11 @@ public int getMerchantsCount() { } } /** - * - * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ public com.google.recaptchaenterprise.v1beta1.TransactionData.User getMerchants(int index) { if (merchantsBuilder_ == null) { @@ -8528,14 +7604,11 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.User getMerchants( } } /** - * - * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ public Builder setMerchants( int index, com.google.recaptchaenterprise.v1beta1.TransactionData.User value) { @@ -8552,18 +7625,14 @@ public Builder setMerchants( return this; } /** - * - * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ public Builder setMerchants( - int index, - com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder builderForValue) { + int index, com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder builderForValue) { if (merchantsBuilder_ == null) { ensureMerchantsIsMutable(); merchants_.set(index, builderForValue.build()); @@ -8574,14 +7643,11 @@ public Builder setMerchants( return this; } /** - * - * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ public Builder addMerchants(com.google.recaptchaenterprise.v1beta1.TransactionData.User value) { if (merchantsBuilder_ == null) { @@ -8597,14 +7663,11 @@ public Builder addMerchants(com.google.recaptchaenterprise.v1beta1.TransactionDa return this; } /** - * - * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ public Builder addMerchants( int index, com.google.recaptchaenterprise.v1beta1.TransactionData.User value) { @@ -8621,14 +7684,11 @@ public Builder addMerchants( return this; } /** - * - * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ public Builder addMerchants( com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder builderForValue) { @@ -8642,18 +7702,14 @@ public Builder addMerchants( return this; } /** - * - * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ public Builder addMerchants( - int index, - com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder builderForValue) { + int index, com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder builderForValue) { if (merchantsBuilder_ == null) { ensureMerchantsIsMutable(); merchants_.add(index, builderForValue.build()); @@ -8664,21 +7720,18 @@ public Builder addMerchants( return this; } /** - * - * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ public Builder addAllMerchants( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (merchantsBuilder_ == null) { ensureMerchantsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, merchants_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, merchants_); onChanged(); } else { merchantsBuilder_.addAllMessages(values); @@ -8686,14 +7739,11 @@ public Builder addAllMerchants( return this; } /** - * - * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ public Builder clearMerchants() { if (merchantsBuilder_ == null) { @@ -8706,14 +7756,11 @@ public Builder clearMerchants() { return this; } /** - * - * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ public Builder removeMerchants(int index) { if (merchantsBuilder_ == null) { @@ -8726,50 +7773,39 @@ public Builder removeMerchants(int index) { return this; } /** - * - * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ public com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder getMerchantsBuilder( int index) { return getMerchantsFieldBuilder().getBuilder(index); } /** - * - * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ - public com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder - getMerchantsOrBuilder(int index) { + public com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder getMerchantsOrBuilder( + int index) { if (merchantsBuilder_ == null) { - return merchants_.get(index); - } else { + return merchants_.get(index); } else { return merchantsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ - public java.util.List< - ? extends com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder> - getMerchantsOrBuilderList() { + public java.util.List + getMerchantsOrBuilderList() { if (merchantsBuilder_ != null) { return merchantsBuilder_.getMessageOrBuilderList(); } else { @@ -8777,100 +7813,74 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder getMe } } /** - * - * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ - public com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder - addMerchantsBuilder() { - return getMerchantsFieldBuilder() - .addBuilder( - com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance()); + public com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder addMerchantsBuilder() { + return getMerchantsFieldBuilder().addBuilder( + com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance()); } /** - * - * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ public com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder addMerchantsBuilder( int index) { - return getMerchantsFieldBuilder() - .addBuilder( - index, - com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance()); + return getMerchantsFieldBuilder().addBuilder( + index, com.google.recaptchaenterprise.v1beta1.TransactionData.User.getDefaultInstance()); } /** - * - * *
      * Information about the user or users fulfilling the transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ - public java.util.List - getMerchantsBuilderList() { + public java.util.List + getMerchantsBuilderList() { return getMerchantsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.User, - com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder, - com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder> + com.google.recaptchaenterprise.v1beta1.TransactionData.User, com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder> getMerchantsFieldBuilder() { if (merchantsBuilder_ == null) { - merchantsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.User, - com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder, - com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder>( - merchants_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); + merchantsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.TransactionData.User, com.google.recaptchaenterprise.v1beta1.TransactionData.User.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder>( + merchants_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); merchants_ = null; } return merchantsBuilder_; } private java.util.List items_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000800) != 0)) { - items_ = - new java.util.ArrayList( - items_); + items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000800; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.Item, - com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder, - com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder> - itemsBuilder_; + com.google.recaptchaenterprise.v1beta1.TransactionData.Item, com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder> itemsBuilder_; /** - * - * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ - public java.util.List - getItemsList() { + public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { @@ -8878,14 +7888,11 @@ private void ensureItemsIsMutable() { } } /** - * - * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ public int getItemsCount() { if (itemsBuilder_ == null) { @@ -8895,14 +7902,11 @@ public int getItemsCount() { } } /** - * - * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ public com.google.recaptchaenterprise.v1beta1.TransactionData.Item getItems(int index) { if (itemsBuilder_ == null) { @@ -8912,14 +7916,11 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.Item getItems(int } } /** - * - * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ public Builder setItems( int index, com.google.recaptchaenterprise.v1beta1.TransactionData.Item value) { @@ -8936,18 +7937,14 @@ public Builder setItems( return this; } /** - * - * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ public Builder setItems( - int index, - com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder builderForValue) { + int index, com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); @@ -8958,14 +7955,11 @@ public Builder setItems( return this; } /** - * - * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ public Builder addItems(com.google.recaptchaenterprise.v1beta1.TransactionData.Item value) { if (itemsBuilder_ == null) { @@ -8981,14 +7975,11 @@ public Builder addItems(com.google.recaptchaenterprise.v1beta1.TransactionData.I return this; } /** - * - * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ public Builder addItems( int index, com.google.recaptchaenterprise.v1beta1.TransactionData.Item value) { @@ -9005,14 +7996,11 @@ public Builder addItems( return this; } /** - * - * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ public Builder addItems( com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder builderForValue) { @@ -9026,18 +8014,14 @@ public Builder addItems( return this; } /** - * - * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ public Builder addItems( - int index, - com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder builderForValue) { + int index, com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); @@ -9048,21 +8032,18 @@ public Builder addItems( return this; } /** - * - * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ public Builder addAllItems( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); onChanged(); } else { itemsBuilder_.addAllMessages(values); @@ -9070,14 +8051,11 @@ public Builder addAllItems( return this; } /** - * - * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ public Builder clearItems() { if (itemsBuilder_ == null) { @@ -9090,14 +8068,11 @@ public Builder clearItems() { return this; } /** - * - * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { @@ -9110,50 +8085,39 @@ public Builder removeItems(int index) { return this; } /** - * - * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ public com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder getItemsBuilder( int index) { return getItemsFieldBuilder().getBuilder(index); } /** - * - * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ public com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder getItemsOrBuilder( int index) { if (itemsBuilder_ == null) { - return items_.get(index); - } else { + return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ - public java.util.List< - ? extends com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder> - getItemsOrBuilderList() { + public java.util.List + getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { @@ -9161,64 +8125,49 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder getI } } /** - * - * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ public com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder addItemsBuilder() { - return getItemsFieldBuilder() - .addBuilder( - com.google.recaptchaenterprise.v1beta1.TransactionData.Item.getDefaultInstance()); + return getItemsFieldBuilder().addBuilder( + com.google.recaptchaenterprise.v1beta1.TransactionData.Item.getDefaultInstance()); } /** - * - * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ public com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder addItemsBuilder( int index) { - return getItemsFieldBuilder() - .addBuilder( - index, - com.google.recaptchaenterprise.v1beta1.TransactionData.Item.getDefaultInstance()); + return getItemsFieldBuilder().addBuilder( + index, com.google.recaptchaenterprise.v1beta1.TransactionData.Item.getDefaultInstance()); } /** - * - * *
      * Items purchased in this transaction.
      * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ - public java.util.List - getItemsBuilderList() { + public java.util.List + getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.Item, - com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder, - com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder> + com.google.recaptchaenterprise.v1beta1.TransactionData.Item, com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { - itemsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.Item, - com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder, - com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder>( - items_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.TransactionData.Item, com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder>( + items_, + ((bitField0_ & 0x00000800) != 0), + getParentForChildren(), + isClean()); items_ = null; } return itemsBuilder_; @@ -9226,62 +8175,41 @@ public com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder addIt private com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gatewayInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo, - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder, - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder> - gatewayInfoBuilder_; + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo, com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder> gatewayInfoBuilder_; /** - * - * *
      * Information about the payment gateway's response to the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; * @return Whether the gatewayInfo field is set. */ public boolean hasGatewayInfo() { return ((bitField0_ & 0x00001000) != 0); } /** - * - * *
      * Information about the payment gateway's response to the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; * @return The gatewayInfo. */ public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo getGatewayInfo() { if (gatewayInfoBuilder_ == null) { - return gatewayInfo_ == null - ? com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo - .getDefaultInstance() - : gatewayInfo_; + return gatewayInfo_ == null ? com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.getDefaultInstance() : gatewayInfo_; } else { return gatewayInfoBuilder_.getMessage(); } } /** - * - * *
      * Information about the payment gateway's response to the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; */ - public Builder setGatewayInfo( - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo value) { + public Builder setGatewayInfo(com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo value) { if (gatewayInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9295,19 +8223,14 @@ public Builder setGatewayInfo( return this; } /** - * - * *
      * Information about the payment gateway's response to the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; */ public Builder setGatewayInfo( - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder - builderForValue) { + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder builderForValue) { if (gatewayInfoBuilder_ == null) { gatewayInfo_ = builderForValue.build(); } else { @@ -9318,24 +8241,17 @@ public Builder setGatewayInfo( return this; } /** - * - * *
      * Information about the payment gateway's response to the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; */ - public Builder mergeGatewayInfo( - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo value) { + public Builder mergeGatewayInfo(com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo value) { if (gatewayInfoBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && gatewayInfo_ != null - && gatewayInfo_ - != com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo - .getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) && + gatewayInfo_ != null && + gatewayInfo_ != com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.getDefaultInstance()) { getGatewayInfoBuilder().mergeFrom(value); } else { gatewayInfo_ = value; @@ -9348,15 +8264,11 @@ public Builder mergeGatewayInfo( return this; } /** - * - * *
      * Information about the payment gateway's response to the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; */ public Builder clearGatewayInfo() { bitField0_ = (bitField0_ & ~0x00001000); @@ -9369,74 +8281,55 @@ public Builder clearGatewayInfo() { return this; } /** - * - * *
      * Information about the payment gateway's response to the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; */ - public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder - getGatewayInfoBuilder() { + public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder getGatewayInfoBuilder() { bitField0_ |= 0x00001000; onChanged(); return getGatewayInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Information about the payment gateway's response to the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; */ - public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder - getGatewayInfoOrBuilder() { + public com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder getGatewayInfoOrBuilder() { if (gatewayInfoBuilder_ != null) { return gatewayInfoBuilder_.getMessageOrBuilder(); } else { - return gatewayInfo_ == null - ? com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo - .getDefaultInstance() - : gatewayInfo_; + return gatewayInfo_ == null ? + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.getDefaultInstance() : gatewayInfo_; } } /** - * - * *
      * Information about the payment gateway's response to the transaction.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo, - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder, - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder> + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo, com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder> getGatewayInfoFieldBuilder() { if (gatewayInfoBuilder_ == null) { - gatewayInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo, - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder, - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder>( - getGatewayInfo(), getParentForChildren(), isClean()); + gatewayInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo, com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo.Builder, com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder>( + getGatewayInfo(), + getParentForChildren(), + isClean()); gatewayInfo_ = null; } return gatewayInfoBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -9446,12 +8339,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.TransactionData) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.TransactionData) private static final com.google.recaptchaenterprise.v1beta1.TransactionData DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.TransactionData(); } @@ -9460,27 +8353,27 @@ public static com.google.recaptchaenterprise.v1beta1.TransactionData getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransactionData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransactionData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9495,4 +8388,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1beta1.TransactionData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionDataOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionDataOrBuilder.java similarity index 78% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionDataOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionDataOrBuilder.java index 9a76771073a7..100fb347d486 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionDataOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionDataOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; -public interface TransactionDataOrBuilder - extends +public interface TransactionDataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.TransactionData) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Unique identifier for the transaction. This custom identifier can be used
    * to reference this transaction in the future, for example, labeling a refund
@@ -34,13 +16,10 @@ public interface TransactionDataOrBuilder
    * 
* * optional string transaction_id = 11; - * * @return Whether the transactionId field is set. */ boolean hasTransactionId(); /** - * - * *
    * Unique identifier for the transaction. This custom identifier can be used
    * to reference this transaction in the future, for example, labeling a refund
@@ -49,13 +28,10 @@ public interface TransactionDataOrBuilder
    * 
* * optional string transaction_id = 11; - * * @return The transactionId. */ java.lang.String getTransactionId(); /** - * - * *
    * Unique identifier for the transaction. This custom identifier can be used
    * to reference this transaction in the future, for example, labeling a refund
@@ -64,14 +40,12 @@ public interface TransactionDataOrBuilder
    * 
* * optional string transaction_id = 11; - * * @return The bytes for transactionId. */ - com.google.protobuf.ByteString getTransactionIdBytes(); + com.google.protobuf.ByteString + getTransactionIdBytes(); /** - * - * *
    * The payment method for the transaction. The allowed values are:
    *
@@ -85,13 +59,10 @@ public interface TransactionDataOrBuilder
    * 
* * string payment_method = 1; - * * @return The paymentMethod. */ java.lang.String getPaymentMethod(); /** - * - * *
    * The payment method for the transaction. The allowed values are:
    *
@@ -105,219 +76,166 @@ public interface TransactionDataOrBuilder
    * 
* * string payment_method = 1; - * * @return The bytes for paymentMethod. */ - com.google.protobuf.ByteString getPaymentMethodBytes(); + com.google.protobuf.ByteString + getPaymentMethodBytes(); /** - * - * *
    * The Bank Identification Number - generally the first 6 or 8 digits of the
    * card.
    * 
* * string card_bin = 2; - * * @return The cardBin. */ java.lang.String getCardBin(); /** - * - * *
    * The Bank Identification Number - generally the first 6 or 8 digits of the
    * card.
    * 
* * string card_bin = 2; - * * @return The bytes for cardBin. */ - com.google.protobuf.ByteString getCardBinBytes(); + com.google.protobuf.ByteString + getCardBinBytes(); /** - * - * *
    * The last four digits of the card.
    * 
* * string card_last_four = 3; - * * @return The cardLastFour. */ java.lang.String getCardLastFour(); /** - * - * *
    * The last four digits of the card.
    * 
* * string card_last_four = 3; - * * @return The bytes for cardLastFour. */ - com.google.protobuf.ByteString getCardLastFourBytes(); + com.google.protobuf.ByteString + getCardLastFourBytes(); /** - * - * *
    * The currency code in ISO-4217 format.
    * 
* * string currency_code = 4; - * * @return The currencyCode. */ java.lang.String getCurrencyCode(); /** - * - * *
    * The currency code in ISO-4217 format.
    * 
* * string currency_code = 4; - * * @return The bytes for currencyCode. */ - com.google.protobuf.ByteString getCurrencyCodeBytes(); + com.google.protobuf.ByteString + getCurrencyCodeBytes(); /** - * - * *
    * The decimal value of the transaction in the specified currency.
    * 
* * double value = 5; - * * @return The value. */ double getValue(); /** - * - * *
    * The value of shipping in the specified currency. 0 for free or no shipping.
    * 
* * double shipping_value = 12; - * * @return The shippingValue. */ double getShippingValue(); /** - * - * *
    * Destination address if this transaction involves shipping a physical item.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; * @return Whether the shippingAddress field is set. */ boolean hasShippingAddress(); /** - * - * *
    * Destination address if this transaction involves shipping a physical item.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; * @return The shippingAddress. */ com.google.recaptchaenterprise.v1beta1.TransactionData.Address getShippingAddress(); /** - * - * *
    * Destination address if this transaction involves shipping a physical item.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6; */ - com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder - getShippingAddressOrBuilder(); + com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder getShippingAddressOrBuilder(); /** - * - * *
    * Address associated with the payment method when applicable.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; * @return Whether the billingAddress field is set. */ boolean hasBillingAddress(); /** - * - * *
    * Address associated with the payment method when applicable.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; * @return The billingAddress. */ com.google.recaptchaenterprise.v1beta1.TransactionData.Address getBillingAddress(); /** - * - * *
    * Address associated with the payment method when applicable.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7; */ - com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder - getBillingAddressOrBuilder(); + com.google.recaptchaenterprise.v1beta1.TransactionData.AddressOrBuilder getBillingAddressOrBuilder(); /** - * - * *
    * Information about the user paying/initiating the transaction.
    * 
* * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User user = 8; - * * @return Whether the user field is set. */ boolean hasUser(); /** - * - * *
    * Information about the user paying/initiating the transaction.
    * 
* * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User user = 8; - * * @return The user. */ com.google.recaptchaenterprise.v1beta1.TransactionData.User getUser(); /** - * - * *
    * Information about the user paying/initiating the transaction.
    * 
@@ -327,156 +245,117 @@ public interface TransactionDataOrBuilder com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder getUserOrBuilder(); /** - * - * *
    * Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ - java.util.List getMerchantsList(); + java.util.List + getMerchantsList(); /** - * - * *
    * Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ com.google.recaptchaenterprise.v1beta1.TransactionData.User getMerchants(int index); /** - * - * *
    * Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ int getMerchantsCount(); /** - * - * *
    * Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ - java.util.List + java.util.List getMerchantsOrBuilderList(); /** - * - * *
    * Information about the user or users fulfilling the transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13; */ com.google.recaptchaenterprise.v1beta1.TransactionData.UserOrBuilder getMerchantsOrBuilder( int index); /** - * - * *
    * Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ - java.util.List getItemsList(); + java.util.List + getItemsList(); /** - * - * *
    * Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ com.google.recaptchaenterprise.v1beta1.TransactionData.Item getItems(int index); /** - * - * *
    * Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ int getItemsCount(); /** - * - * *
    * Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ - java.util.List + java.util.List getItemsOrBuilderList(); /** - * - * *
    * Items purchased in this transaction.
    * 
* - * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; - * + * repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14; */ - com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder getItemsOrBuilder(int index); + com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder getItemsOrBuilder( + int index); /** - * - * *
    * Information about the payment gateway's response to the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; * @return Whether the gatewayInfo field is set. */ boolean hasGatewayInfo(); /** - * - * *
    * Information about the payment gateway's response to the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; * @return The gatewayInfo. */ com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo getGatewayInfo(); /** - * - * *
    * Information about the payment gateway's response to the transaction.
    * 
* - * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10; */ - com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder - getGatewayInfoOrBuilder(); + com.google.recaptchaenterprise.v1beta1.TransactionData.GatewayInfoOrBuilder getGatewayInfoOrBuilder(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEvent.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEvent.java similarity index 73% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEvent.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEvent.java index c0295eb0362f..40f5bef23334 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEvent.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEvent.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; /** - * - * *
  * Describes an event in the lifecycle of a payment transaction.
  * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionEvent} */ -public final class TransactionEvent extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TransactionEvent extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.TransactionEvent) TransactionEventOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TransactionEvent.newBuilder() to construct. private TransactionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TransactionEvent() { eventType_ = 0; reason_ = ""; @@ -44,39 +26,34 @@ private TransactionEvent() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TransactionEvent(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TransactionEvent.class, - com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder.class); + com.google.recaptchaenterprise.v1beta1.TransactionEvent.class, com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder.class); } /** - * - * *
    * Enum that represents an event in the payment transaction lifecycle.
    * 
* - * Protobuf enum {@code - * google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType} + * Protobuf enum {@code google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType} */ - public enum TransactionEventType implements com.google.protobuf.ProtocolMessageEnum { + public enum TransactionEventType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default, unspecified event type.
      * 
@@ -85,8 +62,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE */ TRANSACTION_EVENT_TYPE_UNSPECIFIED(0), /** - * - * *
      * Indicates that the transaction is approved by the merchant. The
      * accompanying reasons can include terms such as 'INHOUSE', 'ACCERTIFY',
@@ -97,8 +72,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     MERCHANT_APPROVE(1),
     /**
-     *
-     *
      * 
      * Indicates that the transaction is denied and concluded due to risks
      * detected by the merchant. The accompanying reasons can include terms such
@@ -109,8 +82,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     MERCHANT_DENY(2),
     /**
-     *
-     *
      * 
      * Indicates that the transaction is being evaluated by a human, due to
      * suspicion or risk.
@@ -120,8 +91,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     MANUAL_REVIEW(3),
     /**
-     *
-     *
      * 
      * Indicates that the authorization attempt with the card issuer succeeded.
      * 
@@ -130,8 +99,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE */ AUTHORIZATION(4), /** - * - * *
      * Indicates that the authorization attempt with the card issuer failed.
      * The accompanying reasons can include Visa's '54' indicating that the card
@@ -142,8 +109,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     AUTHORIZATION_DECLINE(5),
     /**
-     *
-     *
      * 
      * Indicates that the transaction is completed because the funds were
      * settled.
@@ -153,8 +118,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     PAYMENT_CAPTURE(6),
     /**
-     *
-     *
      * 
      * Indicates that the transaction could not be completed because the funds
      * were not settled.
@@ -164,8 +127,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     PAYMENT_CAPTURE_DECLINE(7),
     /**
-     *
-     *
      * 
      * Indicates that the transaction has been canceled. Specify the reason
      * for the cancellation. For example, 'INSUFFICIENT_INVENTORY'.
@@ -175,8 +136,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     CANCEL(8),
     /**
-     *
-     *
      * 
      * Indicates that the merchant has received a chargeback inquiry due to
      * fraud for the transaction, requesting additional information before a
@@ -188,8 +147,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     CHARGEBACK_INQUIRY(9),
     /**
-     *
-     *
      * 
      * Indicates that the merchant has received a chargeback alert due to fraud
      * for the transaction. The process of resolving the dispute without
@@ -200,8 +157,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     CHARGEBACK_ALERT(10),
     /**
-     *
-     *
      * 
      * Indicates that a fraud notification is issued for the transaction, sent
      * by the payment instrument's issuing bank because the transaction appears
@@ -214,8 +169,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     FRAUD_NOTIFICATION(11),
     /**
-     *
-     *
      * 
      * Indicates that the merchant is informed by the payment network that the
      * transaction has entered the chargeback process due to fraud. Reason code
@@ -227,8 +180,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     CHARGEBACK(12),
     /**
-     *
-     *
      * 
      * Indicates that the transaction has entered the chargeback process due to
      * fraud, and that the merchant has chosen to enter representment. Reason
@@ -240,8 +191,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     CHARGEBACK_REPRESENTMENT(13),
     /**
-     *
-     *
      * 
      * Indicates that the transaction has had a fraud chargeback which was
      * illegitimate and was reversed as a result. For partial chargebacks, we
@@ -252,8 +201,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     CHARGEBACK_REVERSE(14),
     /**
-     *
-     *
      * 
      * Indicates that the merchant has received a refund for a completed
      * transaction. For partial refunds, we recommend that you include an amount
@@ -265,8 +212,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     REFUND_REQUEST(15),
     /**
-     *
-     *
      * 
      * Indicates that the merchant has received a refund request for this
      * transaction, but that they have declined it. For partial refunds, we
@@ -278,8 +223,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     REFUND_DECLINE(16),
     /**
-     *
-     *
      * 
      * Indicates that the completed transaction was refunded by the merchant.
      * For partial refunds, we recommend that you include an amount in the
@@ -291,8 +234,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     REFUND(17),
     /**
-     *
-     *
      * 
      * Indicates that the completed transaction was refunded by the merchant,
      * and that this refund was reversed. For partial refunds, we recommend that
@@ -306,8 +247,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
     ;
 
     /**
-     *
-     *
      * 
      * Default, unspecified event type.
      * 
@@ -316,8 +255,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE */ public static final int TRANSACTION_EVENT_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Indicates that the transaction is approved by the merchant. The
      * accompanying reasons can include terms such as 'INHOUSE', 'ACCERTIFY',
@@ -328,8 +265,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int MERCHANT_APPROVE_VALUE = 1;
     /**
-     *
-     *
      * 
      * Indicates that the transaction is denied and concluded due to risks
      * detected by the merchant. The accompanying reasons can include terms such
@@ -340,8 +275,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int MERCHANT_DENY_VALUE = 2;
     /**
-     *
-     *
      * 
      * Indicates that the transaction is being evaluated by a human, due to
      * suspicion or risk.
@@ -351,8 +284,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int MANUAL_REVIEW_VALUE = 3;
     /**
-     *
-     *
      * 
      * Indicates that the authorization attempt with the card issuer succeeded.
      * 
@@ -361,8 +292,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE */ public static final int AUTHORIZATION_VALUE = 4; /** - * - * *
      * Indicates that the authorization attempt with the card issuer failed.
      * The accompanying reasons can include Visa's '54' indicating that the card
@@ -373,8 +302,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int AUTHORIZATION_DECLINE_VALUE = 5;
     /**
-     *
-     *
      * 
      * Indicates that the transaction is completed because the funds were
      * settled.
@@ -384,8 +311,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int PAYMENT_CAPTURE_VALUE = 6;
     /**
-     *
-     *
      * 
      * Indicates that the transaction could not be completed because the funds
      * were not settled.
@@ -395,8 +320,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int PAYMENT_CAPTURE_DECLINE_VALUE = 7;
     /**
-     *
-     *
      * 
      * Indicates that the transaction has been canceled. Specify the reason
      * for the cancellation. For example, 'INSUFFICIENT_INVENTORY'.
@@ -406,8 +329,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int CANCEL_VALUE = 8;
     /**
-     *
-     *
      * 
      * Indicates that the merchant has received a chargeback inquiry due to
      * fraud for the transaction, requesting additional information before a
@@ -419,8 +340,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int CHARGEBACK_INQUIRY_VALUE = 9;
     /**
-     *
-     *
      * 
      * Indicates that the merchant has received a chargeback alert due to fraud
      * for the transaction. The process of resolving the dispute without
@@ -431,8 +350,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int CHARGEBACK_ALERT_VALUE = 10;
     /**
-     *
-     *
      * 
      * Indicates that a fraud notification is issued for the transaction, sent
      * by the payment instrument's issuing bank because the transaction appears
@@ -445,8 +362,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int FRAUD_NOTIFICATION_VALUE = 11;
     /**
-     *
-     *
      * 
      * Indicates that the merchant is informed by the payment network that the
      * transaction has entered the chargeback process due to fraud. Reason code
@@ -458,8 +373,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int CHARGEBACK_VALUE = 12;
     /**
-     *
-     *
      * 
      * Indicates that the transaction has entered the chargeback process due to
      * fraud, and that the merchant has chosen to enter representment. Reason
@@ -471,8 +384,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int CHARGEBACK_REPRESENTMENT_VALUE = 13;
     /**
-     *
-     *
      * 
      * Indicates that the transaction has had a fraud chargeback which was
      * illegitimate and was reversed as a result. For partial chargebacks, we
@@ -483,8 +394,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int CHARGEBACK_REVERSE_VALUE = 14;
     /**
-     *
-     *
      * 
      * Indicates that the merchant has received a refund for a completed
      * transaction. For partial refunds, we recommend that you include an amount
@@ -496,8 +405,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int REFUND_REQUEST_VALUE = 15;
     /**
-     *
-     *
      * 
      * Indicates that the merchant has received a refund request for this
      * transaction, but that they have declined it. For partial refunds, we
@@ -509,8 +416,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int REFUND_DECLINE_VALUE = 16;
     /**
-     *
-     *
      * 
      * Indicates that the completed transaction was refunded by the merchant.
      * For partial refunds, we recommend that you include an amount in the
@@ -522,8 +427,6 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int REFUND_VALUE = 17;
     /**
-     *
-     *
      * 
      * Indicates that the completed transaction was refunded by the merchant,
      * and that this refund was reversed. For partial refunds, we recommend that
@@ -534,6 +437,7 @@ public enum TransactionEventType implements com.google.protobuf.ProtocolMessageE
      */
     public static final int REFUND_REVERSE_VALUE = 18;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -558,46 +462,26 @@ public static TransactionEventType valueOf(int value) {
      */
     public static TransactionEventType forNumber(int value) {
       switch (value) {
-        case 0:
-          return TRANSACTION_EVENT_TYPE_UNSPECIFIED;
-        case 1:
-          return MERCHANT_APPROVE;
-        case 2:
-          return MERCHANT_DENY;
-        case 3:
-          return MANUAL_REVIEW;
-        case 4:
-          return AUTHORIZATION;
-        case 5:
-          return AUTHORIZATION_DECLINE;
-        case 6:
-          return PAYMENT_CAPTURE;
-        case 7:
-          return PAYMENT_CAPTURE_DECLINE;
-        case 8:
-          return CANCEL;
-        case 9:
-          return CHARGEBACK_INQUIRY;
-        case 10:
-          return CHARGEBACK_ALERT;
-        case 11:
-          return FRAUD_NOTIFICATION;
-        case 12:
-          return CHARGEBACK;
-        case 13:
-          return CHARGEBACK_REPRESENTMENT;
-        case 14:
-          return CHARGEBACK_REVERSE;
-        case 15:
-          return REFUND_REQUEST;
-        case 16:
-          return REFUND_DECLINE;
-        case 17:
-          return REFUND;
-        case 18:
-          return REFUND_REVERSE;
-        default:
-          return null;
+        case 0: return TRANSACTION_EVENT_TYPE_UNSPECIFIED;
+        case 1: return MERCHANT_APPROVE;
+        case 2: return MERCHANT_DENY;
+        case 3: return MANUAL_REVIEW;
+        case 4: return AUTHORIZATION;
+        case 5: return AUTHORIZATION_DECLINE;
+        case 6: return PAYMENT_CAPTURE;
+        case 7: return PAYMENT_CAPTURE_DECLINE;
+        case 8: return CANCEL;
+        case 9: return CHARGEBACK_INQUIRY;
+        case 10: return CHARGEBACK_ALERT;
+        case 11: return FRAUD_NOTIFICATION;
+        case 12: return CHARGEBACK;
+        case 13: return CHARGEBACK_REPRESENTMENT;
+        case 14: return CHARGEBACK_REVERSE;
+        case 15: return REFUND_REQUEST;
+        case 16: return REFUND_DECLINE;
+        case 17: return REFUND;
+        case 18: return REFUND_REVERSE;
+        default: return null;
       }
     }
 
@@ -605,31 +489,29 @@ public static TransactionEventType forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        TransactionEventType> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public TransactionEventType findValueByNumber(int number) {
+              return TransactionEventType.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public TransactionEventType findValueByNumber(int number) {
-                return TransactionEventType.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final TransactionEventType[] VALUES = values();
@@ -637,7 +519,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static TransactionEventType valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -657,53 +540,33 @@ private TransactionEventType(int value) {
   public static final int EVENT_TYPE_FIELD_NUMBER = 1;
   private int eventType_ = 0;
   /**
-   *
-   *
    * 
    * Optional. The type of this transaction event.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for eventType. */ - @java.lang.Override - public int getEventTypeValue() { + @java.lang.Override public int getEventTypeValue() { return eventType_; } /** - * - * *
    * Optional. The type of this transaction event.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The eventType. */ - @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType - getEventType() { - com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType result = - com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType.forNumber( - eventType_); - return result == null - ? com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType getEventType() { + com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType result = com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType.forNumber(eventType_); + return result == null ? com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType.UNRECOGNIZED : result; } public static final int REASON_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object reason_ = ""; /** - * - * *
    * Optional. The reason or standardized code that corresponds with this
    * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -711,7 +574,6 @@ public int getEventTypeValue() {
    * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The reason. */ @java.lang.Override @@ -720,15 +582,14 @@ public java.lang.String getReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reason_ = s; return s; } } /** - * - * *
    * Optional. The reason or standardized code that corresponds with this
    * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -736,15 +597,16 @@ public java.lang.String getReason() {
    * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for reason. */ @java.lang.Override - public com.google.protobuf.ByteString getReasonBytes() { + public com.google.protobuf.ByteString + getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reason_ = b; return b; } else { @@ -755,8 +617,6 @@ public com.google.protobuf.ByteString getReasonBytes() { public static final int VALUE_FIELD_NUMBER = 3; private double value_ = 0D; /** - * - * *
    * Optional. The value that corresponds with this transaction event, if one
    * exists. For example, a refund event where $5.00 was refunded. Currency is
@@ -764,7 +624,6 @@ public com.google.protobuf.ByteString getReasonBytes() {
    * 
* * double value = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The value. */ @java.lang.Override @@ -775,16 +634,12 @@ public double getValue() { public static final int EVENT_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp eventTime_; /** - * - * *
    * Optional. Timestamp when this transaction event occurred; otherwise assumed
    * to be the time of the API call.
    * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the eventTime field is set. */ @java.lang.Override @@ -792,16 +647,12 @@ public boolean hasEventTime() { return eventTime_ != null; } /** - * - * *
    * Optional. Timestamp when this transaction event occurred; otherwise assumed
    * to be the time of the API call.
    * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The eventTime. */ @java.lang.Override @@ -809,15 +660,12 @@ public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } /** - * - * *
    * Optional. Timestamp when this transaction event occurred; otherwise assumed
    * to be the time of the API call.
    * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { @@ -825,7 +673,6 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -837,11 +684,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (eventType_ - != com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType - .TRANSACTION_EVENT_TYPE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (eventType_ != com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType.TRANSACTION_EVENT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, eventType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { @@ -862,20 +707,20 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (eventType_ - != com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType - .TRANSACTION_EVENT_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, eventType_); + if (eventType_ != com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType.TRANSACTION_EVENT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, eventType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, reason_); } if (java.lang.Double.doubleToRawLongBits(value_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, value_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, value_); } if (eventTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEventTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getEventTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -885,21 +730,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.TransactionEvent)) { return super.equals(obj); } - com.google.recaptchaenterprise.v1beta1.TransactionEvent other = - (com.google.recaptchaenterprise.v1beta1.TransactionEvent) obj; + com.google.recaptchaenterprise.v1beta1.TransactionEvent other = (com.google.recaptchaenterprise.v1beta1.TransactionEvent) obj; if (eventType_ != other.eventType_) return false; - if (!getReason().equals(other.getReason())) return false; + if (!getReason() + .equals(other.getReason())) return false; if (java.lang.Double.doubleToLongBits(getValue()) - != java.lang.Double.doubleToLongBits(other.getValue())) return false; + != java.lang.Double.doubleToLongBits( + other.getValue())) return false; if (hasEventTime() != other.hasEventTime()) return false; if (hasEventTime()) { - if (!getEventTime().equals(other.getEventTime())) return false; + if (!getEventTime() + .equals(other.getEventTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -917,9 +764,8 @@ public int hashCode() { hash = (37 * hash) + REASON_FIELD_NUMBER; hash = (53 * hash) + getReason().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getValue())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getValue())); if (hasEventTime()) { hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER; hash = (53 * hash) + getEventTime().hashCode(); @@ -930,136 +776,131 @@ public int hashCode() { } public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.recaptchaenterprise.v1beta1.TransactionEvent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.recaptchaenterprise.v1beta1.TransactionEvent prototype) { + public static Builder newBuilder(com.google.recaptchaenterprise.v1beta1.TransactionEvent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Describes an event in the lifecycle of a payment transaction.
    * 
* * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.TransactionEvent} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.TransactionEvent) com.google.recaptchaenterprise.v1beta1.TransactionEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_fieldAccessorTable + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.recaptchaenterprise.v1beta1.TransactionEvent.class, - com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder.class); + com.google.recaptchaenterprise.v1beta1.TransactionEvent.class, com.google.recaptchaenterprise.v1beta1.TransactionEvent.Builder.class); } // Construct using com.google.recaptchaenterprise.v1beta1.TransactionEvent.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1076,9 +917,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto - .internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto.internal_static_google_cloud_recaptchaenterprise_v1beta1_TransactionEvent_descriptor; } @java.lang.Override @@ -1097,11 +938,8 @@ public com.google.recaptchaenterprise.v1beta1.TransactionEvent build() { @java.lang.Override public com.google.recaptchaenterprise.v1beta1.TransactionEvent buildPartial() { - com.google.recaptchaenterprise.v1beta1.TransactionEvent result = - new com.google.recaptchaenterprise.v1beta1.TransactionEvent(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.recaptchaenterprise.v1beta1.TransactionEvent result = new com.google.recaptchaenterprise.v1beta1.TransactionEvent(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1118,7 +956,9 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.TransactionEve result.value_ = value_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.eventTime_ = eventTimeBuilder_ == null ? eventTime_ : eventTimeBuilder_.build(); + result.eventTime_ = eventTimeBuilder_ == null + ? eventTime_ + : eventTimeBuilder_.build(); } } @@ -1126,39 +966,38 @@ private void buildPartial0(com.google.recaptchaenterprise.v1beta1.TransactionEve public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.recaptchaenterprise.v1beta1.TransactionEvent) { - return mergeFrom((com.google.recaptchaenterprise.v1beta1.TransactionEvent) other); + return mergeFrom((com.google.recaptchaenterprise.v1beta1.TransactionEvent)other); } else { super.mergeFrom(other); return this; @@ -1166,8 +1005,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.recaptchaenterprise.v1beta1.TransactionEvent other) { - if (other == com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDefaultInstance()) - return this; + if (other == com.google.recaptchaenterprise.v1beta1.TransactionEvent.getDefaultInstance()) return this; if (other.eventType_ != 0) { setEventTypeValue(other.getEventTypeValue()); } @@ -1208,37 +1046,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - eventType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - reason_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 25: - { - value_ = input.readDouble(); - bitField0_ |= 0x00000004; - break; - } // case 25 - case 34: - { - input.readMessage(getEventTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + eventType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + reason_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 25: { + value_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 34: { + input.readMessage( + getEventTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1248,38 +1083,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int eventType_ = 0; /** - * - * *
      * Optional. The type of this transaction event.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for eventType. */ - @java.lang.Override - public int getEventTypeValue() { + @java.lang.Override public int getEventTypeValue() { return eventType_; } /** - * - * *
      * Optional. The type of this transaction event.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for eventType to set. * @return This builder for chaining. */ @@ -1290,45 +1113,28 @@ public Builder setEventTypeValue(int value) { return this; } /** - * - * *
      * Optional. The type of this transaction event.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The eventType. */ @java.lang.Override - public com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType - getEventType() { - com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType result = - com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType.forNumber( - eventType_); - return result == null - ? com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType - .UNRECOGNIZED - : result; + public com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType getEventType() { + com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType result = com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType.forNumber(eventType_); + return result == null ? com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The type of this transaction event.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param value The eventType to set. * @return This builder for chaining. */ - public Builder setEventType( - com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType value) { + public Builder setEventType(com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType value) { if (value == null) { throw new NullPointerException(); } @@ -1338,16 +1144,11 @@ public Builder setEventType( return this; } /** - * - * *
      * Optional. The type of this transaction event.
      * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearEventType() { @@ -1359,8 +1160,6 @@ public Builder clearEventType() { private java.lang.Object reason_ = ""; /** - * - * *
      * Optional. The reason or standardized code that corresponds with this
      * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -1368,13 +1167,13 @@ public Builder clearEventType() {
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The reason. */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reason_ = s; return s; @@ -1383,8 +1182,6 @@ public java.lang.String getReason() { } } /** - * - * *
      * Optional. The reason or standardized code that corresponds with this
      * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -1392,14 +1189,15 @@ public java.lang.String getReason() {
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for reason. */ - public com.google.protobuf.ByteString getReasonBytes() { + public com.google.protobuf.ByteString + getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reason_ = b; return b; } else { @@ -1407,8 +1205,6 @@ public com.google.protobuf.ByteString getReasonBytes() { } } /** - * - * *
      * Optional. The reason or standardized code that corresponds with this
      * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -1416,22 +1212,18 @@ public com.google.protobuf.ByteString getReasonBytes() {
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The reason to set. * @return This builder for chaining. */ - public Builder setReason(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReason( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } reason_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The reason or standardized code that corresponds with this
      * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -1439,7 +1231,6 @@ public Builder setReason(java.lang.String value) {
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearReason() { @@ -1449,8 +1240,6 @@ public Builder clearReason() { return this; } /** - * - * *
      * Optional. The reason or standardized code that corresponds with this
      * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -1458,14 +1247,12 @@ public Builder clearReason() {
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for reason to set. * @return This builder for chaining. */ - public Builder setReasonBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReasonBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reason_ = value; bitField0_ |= 0x00000002; @@ -1473,10 +1260,8 @@ public Builder setReasonBytes(com.google.protobuf.ByteString value) { return this; } - private double value_; + private double value_ ; /** - * - * *
      * Optional. The value that corresponds with this transaction event, if one
      * exists. For example, a refund event where $5.00 was refunded. Currency is
@@ -1484,7 +1269,6 @@ public Builder setReasonBytes(com.google.protobuf.ByteString value) {
      * 
* * double value = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The value. */ @java.lang.Override @@ -1492,8 +1276,6 @@ public double getValue() { return value_; } /** - * - * *
      * Optional. The value that corresponds with this transaction event, if one
      * exists. For example, a refund event where $5.00 was refunded. Currency is
@@ -1501,7 +1283,6 @@ public double getValue() {
      * 
* * double value = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The value to set. * @return This builder for chaining. */ @@ -1513,8 +1294,6 @@ public Builder setValue(double value) { return this; } /** - * - * *
      * Optional. The value that corresponds with this transaction event, if one
      * exists. For example, a refund event where $5.00 was refunded. Currency is
@@ -1522,7 +1301,6 @@ public Builder setValue(double value) {
      * 
* * double value = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -1534,37 +1312,26 @@ public Builder clearValue() { private com.google.protobuf.Timestamp eventTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - eventTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> eventTimeBuilder_; /** - * - * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the eventTime field is set. */ public boolean hasEventTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The eventTime. */ public com.google.protobuf.Timestamp getEventTime() { @@ -1575,15 +1342,12 @@ public com.google.protobuf.Timestamp getEventTime() { } } /** - * - * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEventTime(com.google.protobuf.Timestamp value) { if (eventTimeBuilder_ == null) { @@ -1599,17 +1363,15 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEventTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (eventTimeBuilder_ == null) { eventTime_ = builderForValue.build(); } else { @@ -1620,21 +1382,18 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { if (eventTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && eventTime_ != null - && eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + eventTime_ != null && + eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEventTimeBuilder().mergeFrom(value); } else { eventTime_ = value; @@ -1647,15 +1406,12 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearEventTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1668,15 +1424,12 @@ public Builder clearEventTime() { return this; } /** - * - * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { bitField0_ |= 0x00000008; @@ -1684,53 +1437,45 @@ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { return getEventTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { if (eventTimeBuilder_ != null) { return eventTimeBuilder_.getMessageOrBuilder(); } else { - return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + return eventTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } } /** - * - * *
      * Optional. Timestamp when this transaction event occurred; otherwise assumed
      * to be the time of the API call.
      * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEventTimeFieldBuilder() { if (eventTimeBuilder_ == null) { - eventTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEventTime(), getParentForChildren(), isClean()); + eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEventTime(), + getParentForChildren(), + isClean()); eventTime_ = null; } return eventTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1740,12 +1485,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.TransactionEvent) } // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.TransactionEvent) private static final com.google.recaptchaenterprise.v1beta1.TransactionEvent DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.TransactionEvent(); } @@ -1754,27 +1499,27 @@ public static com.google.recaptchaenterprise.v1beta1.TransactionEvent getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransactionEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransactionEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1789,4 +1534,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.recaptchaenterprise.v1beta1.TransactionEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEventOrBuilder.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEventOrBuilder.java similarity index 67% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEventOrBuilder.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEventOrBuilder.java index e4f24b2a994c..3c3d27297805 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEventOrBuilder.java +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TransactionEventOrBuilder.java @@ -1,60 +1,32 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto package com.google.recaptchaenterprise.v1beta1; -public interface TransactionEventOrBuilder - extends +public interface TransactionEventOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.TransactionEvent) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The type of this transaction event.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for eventType. */ int getEventTypeValue(); /** - * - * *
    * Optional. The type of this transaction event.
    * 
* - * - * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The eventType. */ com.google.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType getEventType(); /** - * - * *
    * Optional. The reason or standardized code that corresponds with this
    * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -62,13 +34,10 @@ public interface TransactionEventOrBuilder
    * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The reason. */ java.lang.String getReason(); /** - * - * *
    * Optional. The reason or standardized code that corresponds with this
    * transaction event, if one exists. For example, a CHARGEBACK event with code
@@ -76,14 +45,12 @@ public interface TransactionEventOrBuilder
    * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for reason. */ - com.google.protobuf.ByteString getReasonBytes(); + com.google.protobuf.ByteString + getReasonBytes(); /** - * - * *
    * Optional. The value that corresponds with this transaction event, if one
    * exists. For example, a refund event where $5.00 was refunded. Currency is
@@ -91,49 +58,37 @@ public interface TransactionEventOrBuilder
    * 
* * double value = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The value. */ double getValue(); /** - * - * *
    * Optional. Timestamp when this transaction event occurred; otherwise assumed
    * to be the time of the API call.
    * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the eventTime field is set. */ boolean hasEventTime(); /** - * - * *
    * Optional. Timestamp when this transaction event occurred; otherwise assumed
    * to be the time of the API call.
    * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The eventTime. */ com.google.protobuf.Timestamp getEventTime(); /** - * - * *
    * Optional. Timestamp when this transaction event occurred; otherwise assumed
    * to be the time of the API call.
    * 
* - * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/proto/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/proto/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto similarity index 98% rename from java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/proto/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/proto/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto index 40f2ef8fa2e2..3172a6047fa4 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/proto/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto +++ b/owl-bot-staging/java-recaptchaenterprise/v1beta1/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/proto/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto @@ -295,15 +295,14 @@ message AnnotateAssessmentRequest { // whether the event is legitimate or fraudulent. Annotation annotation = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Optional reasons for the annotation that will be assigned to the - // Event. + // Optional. Reasons for the annotation that are assigned to the event. repeated Reason reasons = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Optional unique stable hashed user identifier to apply to the - // assessment. This is an alternative to setting the hashed_account_id in - // CreateAssessment, for example when the account identifier is not yet known - // in the initial request. It is recommended that the identifier is hashed - // using hmac-sha256 with stable secret. + // Optional. Unique stable hashed user identifier to apply to the assessment. + // This is an alternative to setting the `hashed_account_id` in + // `CreateAssessment`, for example, when the account identifier is not yet + // known in the initial request. It is recommended that the identifier is + // hashed using hmac-sha256 with stable secret. bytes hashed_account_id = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. If the assessment is part of a payment transaction, provide @@ -435,7 +434,6 @@ message Event { } // Transaction data associated with a payment protected by reCAPTCHA Enterprise. -// All fields are optional. message TransactionData { // Structured address format for billing and shipping addresses. message Address { diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/AsyncAnnotateAssessment.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/AsyncAnnotateAssessment.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/AsyncAnnotateAssessment.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/AsyncAnnotateAssessment.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessment.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessment.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessment.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessment.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetCredentialsProvider.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/create/SyncCreateSetEndpoint.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/AsyncCreateAssessment.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/AsyncCreateAssessment.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/AsyncCreateAssessment.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/AsyncCreateAssessment.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessment.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessment.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessment.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessment.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessmentProjectnameAssessment.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessmentProjectnameAssessment.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessmentProjectnameAssessment.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessmentProjectnameAssessment.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessmentStringAssessment.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessmentStringAssessment.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessmentStringAssessment.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1/createassessment/SyncCreateAssessmentStringAssessment.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1settings/createassessment/SyncCreateAssessment.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1settings/createassessment/SyncCreateAssessment.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1settings/createassessment/SyncCreateAssessment.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1settings/createassessment/SyncCreateAssessment.java diff --git a/java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/stub/recaptchaenterpriseservicev1beta1stubsettings/createassessment/SyncCreateAssessment.java b/owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/stub/recaptchaenterpriseservicev1beta1stubsettings/createassessment/SyncCreateAssessment.java similarity index 100% rename from java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/stub/recaptchaenterpriseservicev1beta1stubsettings/createassessment/SyncCreateAssessment.java rename to owl-bot-staging/java-recaptchaenterprise/v1beta1/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/stub/recaptchaenterpriseservicev1beta1stubsettings/createassessment/SyncCreateAssessment.java